elsa-core/scripts/k8s/postgres/deployment.yaml
Sipke Schoorstra adf36927dc Update Docker and k8s configs, enhance OTEL tracing
Updated `docker-compose-datadog.yml` with new environment variables and updated image versions, enhancing trace sampling and service autodiscovery. Added Kubernetes deployment, service, and role files for `elsa-server`, `elsa-studio`, `plant-uml`, `postgres`, and `trace-lens`, improving the project's infrastructure. Enhanced OpenTelemetry middleware for better error handling and detailed tracing of activity and workflow executions.
2024-09-23 23:35:30 +02:00

41 lines
1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: postgres-deployment
spec:
replicas: 1
selector:
matchLabels:
app: postgres
template:
metadata:
labels:
app: postgres
spec:
containers:
- name: postgres
imagePullPolicy: Always
image: postgres:latest
# command: ["-c", "max_connections=2000"]
volumeMounts:
- name: postgres-data
mountPath: /var/lib/postgresql/data
- name: init-db
mountPath: /docker-entrypoint-initdb.d/init-db.sh
subPath: init-db.sh
ports:
- containerPort: 5432
env:
- name: POSTGRES_USER
value: "elsa"
- name: POSTGRES_PASSWORD
value: "elsa"
- name: POSTGRES_DB
value: "elsa"
volumes:
- name: postgres-data
emptyDir: {}
- name: init-db
configMap:
name: init-db-config