apiVersion: apps/v1 kind: Deployment metadata: name: dutchie-backend namespace: default labels: app: dutchie-backend spec: replicas: 2 selector: matchLabels: app: dutchie-backend template: metadata: labels: app: dutchie-backend spec: containers: - name: backend image: YOUR_REGISTRY/dutchie-backend:latest # Replace with your Docker registry ports: - containerPort: 3010 name: http envFrom: - configMapRef: name: dutchie-backend-config - secretRef: name: dutchie-backend-secret env: - name: IP2LOCATION_DB_PATH value: /data/ip2location/IP2LOCATION-LITE-DB5.BIN volumeMounts: - name: ip2location-data mountPath: /data/ip2location resources: requests: memory: "256Mi" cpu: "250m" limits: memory: "512Mi" cpu: "500m" livenessProbe: httpGet: path: /health port: 3010 initialDelaySeconds: 30 periodSeconds: 10 readinessProbe: httpGet: path: /health port: 3010 initialDelaySeconds: 5 periodSeconds: 5 volumes: - name: ip2location-data persistentVolumeClaim: claimName: ip2location-pvc