Initial commit with 2026 World Cup Quant Platform core modules and CI/CD
This commit is contained in:
47
platform/deploy/k3s/postgres-deployment.yaml
Normal file
47
platform/deploy/k3s/postgres-deployment.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: fifa2026-postgres
|
||||
namespace: fifa2026
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: fifa2026-postgres
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: fifa2026-postgres
|
||||
spec:
|
||||
containers:
|
||||
- name: postgres
|
||||
image: postgres:16-alpine
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: POSTGRES_DB
|
||||
value: fifa2026
|
||||
- name: POSTGRES_USER
|
||||
value: fifa_user
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: change_me
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
volumeMounts:
|
||||
- name: pgdata
|
||||
mountPath: /var/lib/postgresql/data
|
||||
volumes:
|
||||
- name: pgdata
|
||||
emptyDir: {}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: fifa2026-postgres
|
||||
namespace: fifa2026
|
||||
spec:
|
||||
selector:
|
||||
app: fifa2026-postgres
|
||||
ports:
|
||||
- port: 5432
|
||||
targetPort: 5432
|
||||
|
||||
Reference in New Issue
Block a user