apiVersion: apps/v1 kind: Deployment metadata: name: nuq-postgres namespace: firecrawl labels: app.kubernetes.io/name: firecrawl app.kubernetes.io/component: database app.kubernetes.io/part-of: firecrawl spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: nuq-postgres template: metadata: labels: app: nuq-postgres app.kubernetes.io/name: firecrawl app.kubernetes.io/component: database spec: containers: - name: postgres image: the-seas.local.mk-labs.cloud/library/firecrawl-postgres:latest imagePullPolicy: Always ports: - name: postgres containerPort: 5432 protocol: TCP env: - name: POSTGRES_USER valueFrom: configMapKeyRef: name: firecrawl-config key: POSTGRES_USER - name: POSTGRES_DB valueFrom: configMapKeyRef: name: firecrawl-config key: POSTGRES_DB - name: POSTGRES_PASSWORD valueFrom: secretKeyRef: name: firecrawl-secrets key: POSTGRES_PASSWORD - name: PGDATA value: /var/lib/postgresql/data/pgdata volumeMounts: - name: postgres-data mountPath: /var/lib/postgresql/data resources: requests: cpu: 500m memory: 1Gi limits: cpu: 1000m memory: 2Gi livenessProbe: exec: command: - pg_isready - -U - postgres initialDelaySeconds: 30 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 3 readinessProbe: exec: command: - pg_isready - -U - postgres initialDelaySeconds: 5 periodSeconds: 5 timeoutSeconds: 3 failureThreshold: 3 volumes: - name: postgres-data persistentVolumeClaim: claimName: postgres-data