apiVersion: apps/v1 kind: Deployment metadata: name: notesnook-identity namespace: notesnook spec: replicas: 1 selector: matchLabels: app: notesnook-identity template: metadata: labels: app: notesnook-identity spec: containers: - name: identity image: streetwriters/identity:latest envFrom: - configMapRef: { name: notesnook-config } - secretRef: { name: notesnook-secret } env: - name: MONGODB_CONNECTION_STRING value: "mongodb://notesnook-db:27017/identity?replSet=rs0" - name: MONGODB_DATABASE_NAME value: "identity" ports: - { containerPort: 8264, name: http } readinessProbe: httpGet: { path: /health, port: 8264 } initialDelaySeconds: 20 periodSeconds: 15 livenessProbe: httpGet: { path: /health, port: 8264 } initialDelaySeconds: 60 periodSeconds: 30 resources: requests: { cpu: "50m", memory: "128Mi" } limits: { cpu: "500m", memory: "512Mi" }