95 lines
2.7 KiB
YAML
95 lines
2.7 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: sarex-subscriptions
|
|
namespace: subscriptions
|
|
labels:
|
|
app: sarex-subscriptions
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: sarex-subscriptions
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: sarex-subscriptions
|
|
spec:
|
|
containers:
|
|
- name: subscriptions
|
|
image: cr.yandex/crp3ccidau046kdj8g9q/subscriptions:prod_a50928e1
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- name: http
|
|
containerPort: 8000
|
|
protocol: TCP
|
|
env:
|
|
- name: DATABASE_HOST
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: hostname
|
|
name: postgresql-secret
|
|
- name: DATABASE_PORT
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: port
|
|
name: postgresql-secret
|
|
- name: DATABASE_NAME
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: database
|
|
name: postgresql-secret
|
|
- name: DATABASE_USER
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: username
|
|
name: postgresql-secret
|
|
- name: DATABASE_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: password
|
|
name: postgresql-secret
|
|
- name: API_ADDRESS
|
|
value: "8000"
|
|
- name: SYSTEM_LOG_HOST
|
|
value: http://api-service.system-log
|
|
- name: USER_SERVICE_HOST
|
|
value: http://backend.django.svc.cluster.local:8000
|
|
- name: IS_USE_TELEGRAM
|
|
value: "false"
|
|
- name: IS_MAILGUN_USE
|
|
value: "0"
|
|
- name: SMTP_EMAIL_FROM
|
|
value: sarex@rwb.ru
|
|
- name: SMTP_EMAIL_HOST
|
|
value: mail.rwb.ru
|
|
- name: SMTP_EMAIL_PORT
|
|
value: "465"
|
|
- name: YC_S3_ACCESS_KEY_ID
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: username
|
|
name: s3-secret
|
|
- name: YC_S3_SECRET_ACCESS_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: password
|
|
name: s3-secret
|
|
- name: YC_S3_BUCKET_NAME
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: bucket
|
|
name: s3-secret
|
|
- name: YC_S3_ENDPOINT_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: host
|
|
name: s3-secret
|
|
resources:
|
|
requests:
|
|
cpu: "1"
|
|
memory: 1Gi
|
|
imagePullSecrets:
|
|
- name: regcred
|