++
This commit is contained in:
parent
d203bacdfb
commit
955c3db1d1
@ -1,4 +1,3 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@ -17,19 +16,24 @@ spec:
|
|||||||
app: backend
|
app: backend
|
||||||
spec:
|
spec:
|
||||||
volumes:
|
volumes:
|
||||||
defaultMode: 420
|
- name: django-configmap
|
||||||
items:
|
configMap:
|
||||||
- key: production.py
|
name: django-configmap
|
||||||
path: production.py
|
items:
|
||||||
name: django-configmap
|
- key: production.py
|
||||||
|
path: production.py
|
||||||
|
defaultMode: 420
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: backend
|
- name: backend
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/eav:prod_0fb73247
|
image: cr.yandex/crp3ccidau046kdj8g9q/eav:prod_0fb73247
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8000
|
containerPort: 8000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- name: KAFKA_ENABLED
|
- name: KAFKA_ENABLED
|
||||||
value: "False"
|
value: "False"
|
||||||
@ -43,53 +47,63 @@ spec:
|
|||||||
value: http://minio-svc.minio.svc.cluster.local:9000
|
value: http://minio-svc.minio.svc.cluster.local:9000
|
||||||
- name: YC_S3_BUCKET_NAME
|
- name: YC_S3_BUCKET_NAME
|
||||||
value: eav
|
value: eav
|
||||||
|
|
||||||
- name: DJANGO_POSTGRES_HOST
|
- name: DJANGO_POSTGRES_HOST
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: hostname
|
|
||||||
name: postgresql-secret
|
name: postgresql-secret
|
||||||
|
key: hostname
|
||||||
|
|
||||||
- name: DJANGO_POSTGRES_USER
|
- name: DJANGO_POSTGRES_USER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: username
|
|
||||||
name: postgresql-secret
|
name: postgresql-secret
|
||||||
|
key: username
|
||||||
|
|
||||||
- name: DJANGO_POSTGRES_PASSWORD
|
- name: DJANGO_POSTGRES_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: password
|
|
||||||
name: postgresql-secret
|
name: postgresql-secret
|
||||||
|
key: password
|
||||||
|
|
||||||
- name: DJANGO_POSTGRES_PORT
|
- name: DJANGO_POSTGRES_PORT
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: port
|
|
||||||
name: postgresql-secret
|
name: postgresql-secret
|
||||||
|
key: port
|
||||||
|
|
||||||
- name: JWT_PRIVATE_KEY
|
- name: JWT_PRIVATE_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: ssh_private.key
|
|
||||||
name: backend-secret
|
name: backend-secret
|
||||||
|
key: ssh_private.key
|
||||||
|
|
||||||
- name: JWT_PUBLIC_KEY
|
- name: JWT_PUBLIC_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: ssh_public.key
|
|
||||||
name: backend-secret
|
name: backend-secret
|
||||||
|
key: ssh_public.key
|
||||||
|
|
||||||
- name: YC_S3_ACCESS_KEY_ID
|
- name: YC_S3_ACCESS_KEY_ID
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: login
|
|
||||||
name: s3-secret
|
name: s3-secret
|
||||||
|
key: login
|
||||||
|
|
||||||
- name: YC_S3_SECRET_ACCESS_KEY
|
- name: YC_S3_SECRET_ACCESS_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: password
|
|
||||||
name: s3-secret
|
name: s3-secret
|
||||||
|
key: password
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /server/config/settings/production.py
|
- name: django-configmap
|
||||||
name: django-configmap
|
mountPath: /server/config/settings/production.py
|
||||||
subPath: production.py
|
subPath: production.py
|
||||||
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
@ -99,6 +113,7 @@ spec:
|
|||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
periodSeconds: 60
|
periodSeconds: 60
|
||||||
failureThreshold: 10
|
failureThreshold: 10
|
||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /ping
|
path: /ping
|
||||||
@ -106,5 +121,6 @@ spec:
|
|||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
failureThreshold: 20
|
failureThreshold: 20
|
||||||
|
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: regcred
|
- name: regcred
|
||||||
Loading…
Reference in New Issue
Block a user