128 lines
3.9 KiB
YAML
128 lines
3.9 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: backend
|
|
namespace: comparisons
|
|
labels:
|
|
app: backend
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: backend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: backend
|
|
spec:
|
|
volumes:
|
|
- name: tasks-execution-config
|
|
configMap:
|
|
name: tasks-execution-config-comparisons-v2
|
|
items:
|
|
- key: tasks-execution-config-comparisons-v2.json
|
|
path: tasks-execution-config.json
|
|
containers:
|
|
- name: backend
|
|
image: cr.yandex/crp3ccidau046kdj8g9q/comparisons:prod_863df9f0
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- name: http
|
|
containerPort: 8000
|
|
protocol: TCP
|
|
env:
|
|
- name: APP_NAME
|
|
value: comparisons
|
|
- name: APP_VERSION
|
|
value: 0.0.1
|
|
- name: LOGGER_LOG_LEVEL
|
|
value: info
|
|
- name: ENABLE_SSL
|
|
value: "false"
|
|
- name: POSTGRES_POOL_SIZE
|
|
value: "10"
|
|
- name: HTTP_PORT
|
|
value: "8000"
|
|
- name: DOCUMENTATIONS_INTERNAL_HOST
|
|
value: http://documentations-service.documentations
|
|
- name: DOCUMENTATIONS_EXTERNAL_HOST
|
|
value: https://api.sarex.io/documentations
|
|
- name: WORKFLOWS_HOST
|
|
value: http://workflows-service.processing
|
|
- name: WORKFLOWS_IMAGE_VERSION
|
|
value: master
|
|
- name: WORKFLOWS_DJANGO_HOST
|
|
value: https://lk.sarex.io
|
|
- name: WORKFLOWS_BIMV2_INTERNAL_HOST
|
|
value: http://bim-backend-v2-service.bim-api
|
|
- name: WORKSPACES_HOST
|
|
value: http://workspaces-service.workspaces
|
|
- name: EAV_HOST
|
|
value: https://api.sarex.io/eav
|
|
- name: LAST_MASTER_BIM
|
|
value: "36311"
|
|
- name: LAST_SLAVE_1_BIM
|
|
value: "94015"
|
|
- name: LAST_SLAVE_2_BIM
|
|
value: "135771"
|
|
- name: ABAP_FIXED_CONC
|
|
value: "0"
|
|
- name: WORKFLOWS_CONFIG_FILEPATH
|
|
value: /etc/app/tasks-execution-config.json
|
|
- name: POSTGRES_ADDRESS
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: postgresql-secrets
|
|
key: host
|
|
- name: POSTGRES_PORT
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: postgresql-secrets
|
|
key: port
|
|
- name: POSTGRES_DB
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: postgresql-secrets
|
|
key: database
|
|
- name: POSTGRES_USER
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: postgresql-secrets
|
|
key: username
|
|
- name: POSTGRES_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: postgresql-secrets
|
|
key: password
|
|
- name: AUTH_PUBLIC_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: auth-public-key
|
|
key: public_key
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 100Mi
|
|
volumeMounts:
|
|
- name: tasks-execution-config
|
|
readOnly: true
|
|
mountPath: /etc/app/tasks-execution-config.json
|
|
subPath: tasks-execution-config.json
|
|
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
|