apiVersion: apps/v1 kind: Deployment metadata: name: overpass spec: selector: matchLabels: app: overpass template: metadata: labels: app: overpass spec: containers: - name: overpass image: overpass # the actual image name is specified in the kustomization.yaml resources: requests: memory: "1Gi" cpu: "50m" limits: memory: "9Gi" # we don't expect high CPU usage even during many requests cpu: "1" envFrom: - configMapRef: name: overpass-config ports: - containerPort: 12345 startupProbe: # Gives the container 180m = 3h to start up httpGet: path: /api/interpreter port: 12345 periodSeconds: 60 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 180 # readinessProbe: # # Mark the conainer as unready when requests are not being served # httpGet: # path: /api/interpreter # port: 12345 # initialDelaySeconds: 3600 # periodSeconds: 60 # timeoutSeconds: 5 # successThreshold: 1 livenessProbe: # Mark the container as unhealthy when requests are not being served httpGet: path: /api/interpreter port: 12345 periodSeconds: 30 timeoutSeconds: 5 failureThreshold: 2 # livenessProbe: TODO volumeMounts: - name: overpass-data mountPath: /db volumes: - name: overpass-data persistentVolumeClaim: claimName: overpass-data