154 lines
3.5 KiB
YAML
154 lines
3.5 KiB
YAML
---
|
|
# ENV-файл env-file (secret sarex-env, ключ .env) содержит остальные секреты
|
|
# приложения (DB/S3/Kafka и т.п.) — в дампе кластера Secret'ы не выгружены,
|
|
# сам файл-секрет должен уже существовать в неймспейсе pm.
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: backend
|
|
namespace: pm
|
|
|
|
spec:
|
|
interval: 10m
|
|
|
|
chart:
|
|
spec:
|
|
chart: universal-chart
|
|
version: "0.1.7"
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: yc-oci-charts
|
|
namespace: flux-system
|
|
interval: 10m
|
|
|
|
install:
|
|
remediation:
|
|
retries: 3
|
|
|
|
upgrade:
|
|
remediation:
|
|
retries: 3
|
|
|
|
values:
|
|
global:
|
|
env: _default
|
|
|
|
services:
|
|
backend:
|
|
enabled: true
|
|
|
|
image:
|
|
name:
|
|
_default: cr.yandex/crp3ccidau046kdj8g9q/pm-backend:production_fa0f1551
|
|
pullPolicy:
|
|
_default: IfNotPresent
|
|
|
|
deployment:
|
|
enabled: true
|
|
|
|
name:
|
|
_default: backend
|
|
|
|
replicaCount:
|
|
_default: 1
|
|
|
|
port:
|
|
_default: 8000
|
|
|
|
probes:
|
|
liveness:
|
|
enabled: false
|
|
readiness:
|
|
enabled: false
|
|
|
|
service:
|
|
enabled: true
|
|
|
|
name:
|
|
_default: backend-service
|
|
|
|
type:
|
|
_default: ClusterIP
|
|
|
|
port:
|
|
_default: 8000
|
|
|
|
targetPort:
|
|
_default: 8000
|
|
|
|
portName:
|
|
_default: http
|
|
|
|
imagePullSecrets:
|
|
enabled:
|
|
_default: true
|
|
name:
|
|
_default: dockerhub
|
|
|
|
volumes:
|
|
_default:
|
|
- name: uwsgi-configmap
|
|
mountPath:
|
|
_default: /opt/sarex/uwsgi.ini
|
|
subPath:
|
|
_default: uwsgi.ini
|
|
readOnly:
|
|
_default: true
|
|
configMap:
|
|
name:
|
|
_default: backend-configmap
|
|
items:
|
|
- key: uwsgi.ini
|
|
path:
|
|
_default: uwsgi.ini
|
|
|
|
- name: env-file
|
|
mountPath:
|
|
_default: /opt/sarex/.env
|
|
subPath:
|
|
_default: .env
|
|
readOnly:
|
|
_default: true
|
|
secret:
|
|
secretName:
|
|
_default: sarex-env
|
|
items:
|
|
- key: .env
|
|
path:
|
|
_default: .env
|
|
|
|
- name: kafka-cert-volume
|
|
mountPath:
|
|
_default: /usr/local/share/ca-certificates
|
|
readOnly:
|
|
_default: true
|
|
configMap:
|
|
name:
|
|
_default: kafka-cert
|
|
|
|
envs:
|
|
- name: USERS_INTERNAL_HOST
|
|
value:
|
|
_default: "http://backend.django.svc.cluster.local:8000"
|
|
|
|
- name: RESOURCES_INTERNAL_HOST
|
|
value:
|
|
_default: "http://resources-service.resources.svc.cluster.local:8000"
|
|
|
|
- name: EAV_HOST
|
|
value:
|
|
_default: "http://eav-service.eav.svc.cluster.local:8000"
|
|
|
|
- name: EAV_API_PREFIX
|
|
value:
|
|
_default: "/api/v0"
|
|
|
|
- name: EAV_API_PREFIX_V1
|
|
value:
|
|
_default: "/api/v1"
|
|
|
|
commitSha: ""
|
|
gitlabUri: ""
|
|
gitlabJobUrl: ""
|
|
owner: ""
|