--- apiVersion: apps/v1 kind: Deployment metadata: name: backend namespace: notes labels: app: backend spec: replicas: 1 selector: matchLabels: app: backend template: metadata: labels: app: backend service: main spec: containers: - name: main image: cr.yandex/crp3ccidau046kdj8g9q/notes-backend:production_81366854 imagePullPolicy: IfNotPresent ports: - name: http containerPort: 8000 protocol: TCP env: - name: PG_SSL_MODE value: 'disable' - name: DJANGO_HOST value: https://lk.sarex.io - name: BASE_HOST value: https://api.sarex.io/notes - name: TIMEOUT value: "120" - name: FAAS_SERVICE value: https://api.sarex.io/lambdas - name: WORKSPACE_URL value: https://api.sarex.io/workspaces/api/v1 - name: WORKFLOW_HOST value: https://api.sarex.io/workflows/api/v1 - name: WORKFLOW_TAG value: stable - name: RESOURCE_URL value: https://api.sarex.io/resources/api/v1 - name: SYNC_RESOURCE_ID value: "0" - name: ENABLE_ND value: "0" - name: ATTACHMENT_HOST value: http://attachments-service.attachments.svc.cluster.local:80/api/v1 - name: PG_PORT value: "5432" - name: PG_DB valueFrom: secretKeyRef: name: postgresql-secrets key: database - name: PG_LOGIN valueFrom: secretKeyRef: name: postgresql-secrets key: username - name: PG_PASSWORD valueFrom: secretKeyRef: name: postgresql-secrets key: password - name: PG_HOST valueFrom: secretKeyRef: name: postgresql-secrets key: hostname - name: DJANGO_TOKEN valueFrom: secretKeyRef: name: django-secret key: token resources: requests: cpu: "1" memory: 512Mi livenessProbe: httpGet: path: /ping port: 8000 initialDelaySeconds: 10 periodSeconds: 60 failureThreshold: 10 readinessProbe: httpGet: path: /ping port: 8000 initialDelaySeconds: 5 periodSeconds: 5 failureThreshold: 20 imagePullSecrets: - name: regcred