++
This commit is contained in:
parent
2296dae803
commit
c7b749fd09
@ -4,5 +4,5 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: auth-flow
|
name: auth-flow
|
||||||
labels:
|
labels:
|
||||||
istio-injection: disabled
|
istio-injection: enabled
|
||||||
security.deckhouse.io/pod-policy: privileged
|
security.deckhouse.io/pod-policy: privileged
|
||||||
|
|||||||
@ -1,108 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: backend
|
|
||||||
namespace: bim
|
|
||||||
labels:
|
|
||||||
app: backend
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: backend
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: backend
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: bim
|
|
||||||
vault.hashicorp.com/agent-inject-secret-bim-postgresql: secrets/data/postgresql/apps/bim
|
|
||||||
vault.hashicorp.com/agent-inject-template-bim-postgresql: |-
|
|
||||||
{{- with secret "secrets/data/postgresql/apps/bim" -}}
|
|
||||||
POSTGRES_ADDRESS=postgresql.bim.svc.cluster.local
|
|
||||||
POSTGRES_ADDRESS_2=postgresql.bim.svc.cluster.local
|
|
||||||
POSTGRES_ADDRESS_3=postgresql.bim.svc.cluster.local
|
|
||||||
POSTGRES_ADDRESS_4=postgresql.bim.svc.cluster.local
|
|
||||||
POSTGRES_PORT=5432
|
|
||||||
POSTGRES_PORT_2=5432
|
|
||||||
POSTGRES_PORT_3=5432
|
|
||||||
POSTGRES_PORT_4=5432
|
|
||||||
POSTGRES_DB=bim_db
|
|
||||||
POSTGRES_DB_2=bim_db
|
|
||||||
POSTGRES_DB_3=bim_db
|
|
||||||
POSTGRES_DB_4=bim_db
|
|
||||||
POSTGRES_USER={{ index .Data.data "username" }}
|
|
||||||
POSTGRES_USER_2={{ index .Data.data "username" }}
|
|
||||||
POSTGRES_USER_3={{ index .Data.data "username" }}
|
|
||||||
POSTGRES_USER_4={{ index .Data.data "username" }}
|
|
||||||
POSTGRES_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
POSTGRES_PASSWORD_2={{ index .Data.data "password" }}
|
|
||||||
POSTGRES_PASSWORD_3={{ index .Data.data "password" }}
|
|
||||||
POSTGRES_PASSWORD_4={{ index .Data.data "password" }}
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
|
||||||
serviceAccountName: bim-vault
|
|
||||||
containers:
|
|
||||||
- name: backend
|
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/bim-api:contour_3d704fef
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
command: ["/bin/sh", "-ec"]
|
|
||||||
args:
|
|
||||||
- |
|
|
||||||
set -a
|
|
||||||
[ -f /vault/secrets/bim-postgresql ] && . /vault/secrets/bim-postgresql
|
|
||||||
set +a
|
|
||||||
exec ./httpserver
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: LAST_MASTER_BIM
|
|
||||||
value: "100000"
|
|
||||||
- name: LAST_MASTER_BIM_V3
|
|
||||||
value: "100000"
|
|
||||||
- name: DB_CERT_PATH_4
|
|
||||||
value: /root/yandex_pg.pem
|
|
||||||
- name: DB_CERT_PATH_3
|
|
||||||
value: /root/yandex_pg.pem
|
|
||||||
- name: DB_CERT_PATH_2
|
|
||||||
value: /root/yandex_pg.pem
|
|
||||||
- name: LAST_SLAVE_1_BIM
|
|
||||||
value: "1000000"
|
|
||||||
- name: POSTGRES_POOL_SIZE
|
|
||||||
value: "30"
|
|
||||||
- name: API_ADDRESS
|
|
||||||
value: 0.0.0.0:8000
|
|
||||||
- name: DJANGO_HOST
|
|
||||||
value: http://backend.django.svc.cluster.local:8000
|
|
||||||
- name: ENABLE_SQL_QUERY
|
|
||||||
value: "0"
|
|
||||||
- name: ENABLE_SSL
|
|
||||||
value: "0"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 25m
|
|
||||||
memory: 100Mi
|
|
||||||
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
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: backend-svc
|
|
||||||
namespace: bim
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: backend
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
targetPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
217
apps/bim/base/backend.yaml
Normal file
217
apps/bim/base/backend.yaml
Normal file
@ -0,0 +1,217 @@
|
|||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: backend
|
||||||
|
namespace: bim
|
||||||
|
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: universal-chart
|
||||||
|
version: "0.1.9"
|
||||||
|
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
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: bim-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/bim-api:contour_3d704fef
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: backend
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
command:
|
||||||
|
_default: ["/bin/sh", "-ec"]
|
||||||
|
args:
|
||||||
|
_default:
|
||||||
|
- |
|
||||||
|
set -a
|
||||||
|
[ -f /vault/secrets/bim-postgresql ] && . /vault/secrets/bim-postgresql
|
||||||
|
set +a
|
||||||
|
exec ./httpserver
|
||||||
|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu:
|
||||||
|
_default: 25m
|
||||||
|
memory:
|
||||||
|
_default: 100Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
type:
|
||||||
|
_default: httpGet
|
||||||
|
httpGet:
|
||||||
|
path:
|
||||||
|
_default: /ping
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
initialDelaySeconds:
|
||||||
|
_default: 10
|
||||||
|
periodSeconds:
|
||||||
|
_default: 60
|
||||||
|
failureThreshold:
|
||||||
|
_default: 10
|
||||||
|
readiness:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
type:
|
||||||
|
_default: httpGet
|
||||||
|
httpGet:
|
||||||
|
path:
|
||||||
|
_default: /ping
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
initialDelaySeconds:
|
||||||
|
_default: 5
|
||||||
|
periodSeconds:
|
||||||
|
_default: 5
|
||||||
|
failureThreshold:
|
||||||
|
_default: 20
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: backend-svc
|
||||||
|
|
||||||
|
type:
|
||||||
|
_default: ClusterIP
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 80
|
||||||
|
|
||||||
|
targetPort:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
portName:
|
||||||
|
_default: http
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: LAST_MASTER_BIM
|
||||||
|
value:
|
||||||
|
_default: "100000"
|
||||||
|
|
||||||
|
- name: LAST_MASTER_BIM_V3
|
||||||
|
value:
|
||||||
|
_default: "100000"
|
||||||
|
|
||||||
|
- name: DB_CERT_PATH_4
|
||||||
|
value:
|
||||||
|
_default: "/root/yandex_pg.pem"
|
||||||
|
|
||||||
|
- name: DB_CERT_PATH_3
|
||||||
|
value:
|
||||||
|
_default: "/root/yandex_pg.pem"
|
||||||
|
|
||||||
|
- name: DB_CERT_PATH_2
|
||||||
|
value:
|
||||||
|
_default: "/root/yandex_pg.pem"
|
||||||
|
|
||||||
|
- name: LAST_SLAVE_1_BIM
|
||||||
|
value:
|
||||||
|
_default: "1000000"
|
||||||
|
|
||||||
|
- name: POSTGRES_POOL_SIZE
|
||||||
|
value:
|
||||||
|
_default: "30"
|
||||||
|
|
||||||
|
- name: API_ADDRESS
|
||||||
|
value:
|
||||||
|
_default: "0.0.0.0:8000"
|
||||||
|
|
||||||
|
- name: DJANGO_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend.django.svc.cluster.local:8000"
|
||||||
|
|
||||||
|
- name: ENABLE_SQL_QUERY
|
||||||
|
value:
|
||||||
|
_default: "0"
|
||||||
|
|
||||||
|
- name: ENABLE_SSL
|
||||||
|
value:
|
||||||
|
_default: "0"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: bim
|
||||||
|
vault.hashicorp.com/agent-inject-secret-bim-postgresql: secrets/data/postgresql/apps/bim
|
||||||
|
vault.hashicorp.com/agent-inject-template-bim-postgresql: |-
|
||||||
|
{{- with secret "secrets/data/postgresql/apps/bim" -}}
|
||||||
|
POSTGRES_ADDRESS=postgresql.bim.svc.cluster.local
|
||||||
|
POSTGRES_ADDRESS_2=postgresql.bim.svc.cluster.local
|
||||||
|
POSTGRES_ADDRESS_3=postgresql.bim.svc.cluster.local
|
||||||
|
POSTGRES_ADDRESS_4=postgresql.bim.svc.cluster.local
|
||||||
|
POSTGRES_PORT=5432
|
||||||
|
POSTGRES_PORT_2=5432
|
||||||
|
POSTGRES_PORT_3=5432
|
||||||
|
POSTGRES_PORT_4=5432
|
||||||
|
POSTGRES_DB=bim_db
|
||||||
|
POSTGRES_DB_2=bim_db
|
||||||
|
POSTGRES_DB_3=bim_db
|
||||||
|
POSTGRES_DB_4=bim_db
|
||||||
|
POSTGRES_USER={{ index .Data.data "username" }}
|
||||||
|
POSTGRES_USER_2={{ index .Data.data "username" }}
|
||||||
|
POSTGRES_USER_3={{ index .Data.data "username" }}
|
||||||
|
POSTGRES_USER_4={{ index .Data.data "username" }}
|
||||||
|
POSTGRES_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
POSTGRES_PASSWORD_2={{ index .Data.data "password" }}
|
||||||
|
POSTGRES_PASSWORD_3={{ index .Data.data "password" }}
|
||||||
|
POSTGRES_PASSWORD_4={{ index .Data.data "password" }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
@ -4,6 +4,4 @@ kind: Kustomization
|
|||||||
namespace: bim
|
namespace: bim
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- serviceaccount.yaml
|
- backend.yaml
|
||||||
- backend-deployment.yaml
|
|
||||||
- backend-service.yaml
|
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: bim-vault
|
|
||||||
namespace: bim
|
|
||||||
10
apps/bim/d8-ugmk-prod/kustomization.yaml
Normal file
10
apps/bim/d8-ugmk-prod/kustomization.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../base
|
||||||
|
patches:
|
||||||
|
- path: namespace.yaml
|
||||||
|
target:
|
||||||
|
kind: Namespace
|
||||||
|
name: bim
|
||||||
8
apps/bim/d8-ugmk-prod/namespace.yaml
Normal file
8
apps/bim/d8-ugmk-prod/namespace.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: bim
|
||||||
|
labels:
|
||||||
|
istio-injection: enabled
|
||||||
|
security.deckhouse.io/pod-policy: privileged
|
||||||
@ -1,53 +1,98 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: backend
|
name: backend
|
||||||
namespace: bim
|
namespace: bim
|
||||||
spec:
|
spec:
|
||||||
template:
|
values:
|
||||||
spec:
|
services:
|
||||||
containers:
|
backend:
|
||||||
- name: backend
|
image:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/bim-backend-v2:1d961a7b125ae0e69bd5717658d927091d8c05cc
|
name:
|
||||||
env:
|
_default: cr.yandex/crp3ccidau046kdj8g9q/bim-backend-v2:1d961a7b125ae0e69bd5717658d927091d8c05cc
|
||||||
- name: LAST_MASTER_BIM
|
|
||||||
value: '100000'
|
envs:
|
||||||
- name: LAST_SLAVE_1_BIM
|
- name: LAST_MASTER_BIM
|
||||||
value: '94015'
|
value:
|
||||||
- name: LAST_MASTER_BIM_V3
|
_default: "100000"
|
||||||
value: '100000'
|
|
||||||
- name: LAST_SLAVE_1_BIM_V3
|
- name: LAST_SLAVE_1_BIM
|
||||||
value: '0'
|
value:
|
||||||
- name: DB_CERT_PATH_3
|
_default: "94015"
|
||||||
value: /root/yandex_pg.pem
|
|
||||||
- name: POSTGRES_ADDRESS_3
|
- name: LAST_MASTER_BIM_V3
|
||||||
value: postgres-service
|
value:
|
||||||
- name: POSTGRES_PORT_3
|
_default: "100000"
|
||||||
value: '5432'
|
|
||||||
- name: POSTGRES_DB_3
|
- name: LAST_SLAVE_1_BIM_V3
|
||||||
value: bimapidb
|
value:
|
||||||
- name: DB_CERT_PATH_2
|
_default: "0"
|
||||||
value: /root/yandex_pg.pem
|
|
||||||
- name: POSTGRES_ADDRESS_2
|
- name: DB_CERT_PATH_3
|
||||||
value: postgres-service
|
value:
|
||||||
- name: POSTGRES_PORT_2
|
_default: "/root/yandex_pg.pem"
|
||||||
value: '5432'
|
|
||||||
- name: POSTGRES_DB_2
|
- name: POSTGRES_ADDRESS_3
|
||||||
value: bimapidb
|
value:
|
||||||
- name: POSTGRES_ADDRESS
|
_default: "postgres-service"
|
||||||
value: postgres-service
|
|
||||||
- name: POSTGRES_PORT
|
- name: POSTGRES_PORT_3
|
||||||
value: '5432'
|
value:
|
||||||
- name: POSTGRES_DB
|
_default: "5432"
|
||||||
value: bimapidb
|
|
||||||
- name: POSTGRES_POOL_SIZE
|
- name: POSTGRES_DB_3
|
||||||
value: '30'
|
value:
|
||||||
- name: API_ADDRESS
|
_default: "bimapidb"
|
||||||
value: 0.0.0.0:8000
|
|
||||||
- name: DJANGO_HOST
|
- name: DB_CERT_PATH_2
|
||||||
value: http://backend.django.svc.cluster.local:8000
|
value:
|
||||||
- name: ENABLE_SQL_QUERY
|
_default: "/root/yandex_pg.pem"
|
||||||
value: '0'
|
|
||||||
- name: ENABLE_SSL
|
- name: POSTGRES_ADDRESS_2
|
||||||
value: '0'
|
value:
|
||||||
|
_default: "postgres-service"
|
||||||
|
|
||||||
|
- name: POSTGRES_PORT_2
|
||||||
|
value:
|
||||||
|
_default: "5432"
|
||||||
|
|
||||||
|
- name: POSTGRES_DB_2
|
||||||
|
value:
|
||||||
|
_default: "bimapidb"
|
||||||
|
|
||||||
|
- name: POSTGRES_ADDRESS
|
||||||
|
value:
|
||||||
|
_default: "postgres-service"
|
||||||
|
|
||||||
|
- name: POSTGRES_PORT
|
||||||
|
value:
|
||||||
|
_default: "5432"
|
||||||
|
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value:
|
||||||
|
_default: "bimapidb"
|
||||||
|
|
||||||
|
- name: POSTGRES_POOL_SIZE
|
||||||
|
value:
|
||||||
|
_default: "30"
|
||||||
|
|
||||||
|
- name: API_ADDRESS
|
||||||
|
value:
|
||||||
|
_default: "0.0.0.0:8000"
|
||||||
|
|
||||||
|
- name: DJANGO_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend.django.svc.cluster.local:8000"
|
||||||
|
|
||||||
|
- name: ENABLE_SQL_QUERY
|
||||||
|
value:
|
||||||
|
_default: "0"
|
||||||
|
|
||||||
|
- name: ENABLE_SSL
|
||||||
|
value:
|
||||||
|
_default: "0"
|
||||||
|
|
||||||
|
- name: DB_CERT_PATH_4
|
||||||
|
value:
|
||||||
|
_default: "/root/yandex_pg.pem"
|
||||||
|
|||||||
@ -9,5 +9,5 @@ resources:
|
|||||||
patches:
|
patches:
|
||||||
- path: backend.yaml
|
- path: backend.yaml
|
||||||
target:
|
target:
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
name: backend
|
name: backend
|
||||||
|
|||||||
@ -7,5 +7,5 @@ resources:
|
|||||||
patches:
|
patches:
|
||||||
- path: replicas.yaml
|
- path: replicas.yaml
|
||||||
target:
|
target:
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
name: backend
|
name: backend
|
||||||
|
|||||||
@ -1,8 +1,13 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: backend
|
name: backend
|
||||||
namespace: bim
|
namespace: bim
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
values:
|
||||||
|
services:
|
||||||
|
backend:
|
||||||
|
deployment:
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|||||||
@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: cde-svc
|
|
||||||
namespace: faas
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: cde
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
targetPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
@ -1,60 +1,116 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: cde-flowscallback
|
name: cde-flowscallback
|
||||||
namespace: cde
|
namespace: cde
|
||||||
labels:
|
|
||||||
app: cde-flowscallback
|
|
||||||
service: cde-flowscallback
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
interval: 10m
|
||||||
selector:
|
|
||||||
matchLabels:
|
chart:
|
||||||
app: cde-flowscallback
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: cde-flowscallback
|
|
||||||
service: cde-flowscallback
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: cde
|
|
||||||
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
|
||||||
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
|
||||||
{{- with secret "secrets/data/vault/apps/cde" -}}
|
|
||||||
{{- range $k, $v := .Data.data }}
|
|
||||||
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: cde-vault
|
chart: universal-chart
|
||||||
containers:
|
version: "0.1.9"
|
||||||
- name: cde-flowscallback
|
sourceRef:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/flowscallback-worker:prod_9f3c1d2a
|
kind: HelmRepository
|
||||||
imagePullPolicy: IfNotPresent
|
name: yc-oci-charts
|
||||||
|
namespace: flux-system
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
values:
|
||||||
|
global:
|
||||||
|
env: _default
|
||||||
|
|
||||||
|
services:
|
||||||
|
cde-flowscallback:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: cde-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/flowscallback-worker:prod_9f3c1d2a
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: cde-flowscallback
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
_default: ["/bin/bash", "-lc"]
|
||||||
- -lc
|
|
||||||
args:
|
args:
|
||||||
- |
|
_default:
|
||||||
set -e
|
- |
|
||||||
source /vault/secrets/cde-env
|
set -e
|
||||||
exec /worker
|
source /vault/secrets/cde-env
|
||||||
ports:
|
exec /worker
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: S3_IS_CONTOUR
|
|
||||||
value: "true"
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "25m"
|
cpu:
|
||||||
memory: 128Mi
|
_default: 25m
|
||||||
imagePullSecrets:
|
memory:
|
||||||
- name: regcred
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: S3_IS_CONTOUR
|
||||||
|
value:
|
||||||
|
_default: "true"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: cde
|
||||||
|
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
||||||
|
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
||||||
|
{{- with secret "secrets/data/vault/apps/cde" -}}
|
||||||
|
{{- range $k, $v := .Data.data }}
|
||||||
|
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
|
|||||||
@ -1,60 +1,116 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: cde-splitpdf
|
name: cde-splitpdf
|
||||||
namespace: cde
|
namespace: cde
|
||||||
labels:
|
|
||||||
app: cde-splitpdf
|
|
||||||
service: cde-splitpdf
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
interval: 10m
|
||||||
selector:
|
|
||||||
matchLabels:
|
chart:
|
||||||
app: cde-splitpdf
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: cde-splitpdf
|
|
||||||
service: cde-splitpdf
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: cde
|
|
||||||
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
|
||||||
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
|
||||||
{{- with secret "secrets/data/vault/apps/cde" -}}
|
|
||||||
{{- range $k, $v := .Data.data }}
|
|
||||||
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: cde-vault
|
chart: universal-chart
|
||||||
containers:
|
version: "0.1.9"
|
||||||
- name: cde-splitpdf
|
sourceRef:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/splitpdf-worker:prod_9f3c1d2a
|
kind: HelmRepository
|
||||||
imagePullPolicy: IfNotPresent
|
name: yc-oci-charts
|
||||||
|
namespace: flux-system
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
values:
|
||||||
|
global:
|
||||||
|
env: _default
|
||||||
|
|
||||||
|
services:
|
||||||
|
cde-splitpdf:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: cde-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/splitpdf-worker:prod_9f3c1d2a
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: cde-splitpdf
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
_default: ["/bin/bash", "-lc"]
|
||||||
- -lc
|
|
||||||
args:
|
args:
|
||||||
- |
|
_default:
|
||||||
set -e
|
- |
|
||||||
source /vault/secrets/cde-env
|
set -e
|
||||||
exec /worker
|
source /vault/secrets/cde-env
|
||||||
ports:
|
exec /worker
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: S3_IS_CONTOUR
|
|
||||||
value: "true"
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "25m"
|
cpu:
|
||||||
memory: 128Mi
|
_default: 25m
|
||||||
imagePullSecrets:
|
memory:
|
||||||
- name: regcred
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: S3_IS_CONTOUR
|
||||||
|
value:
|
||||||
|
_default: "true"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: cde
|
||||||
|
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
||||||
|
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
||||||
|
{{- with secret "secrets/data/vault/apps/cde" -}}
|
||||||
|
{{- range $k, $v := .Data.data }}
|
||||||
|
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
|
|||||||
@ -1,60 +1,116 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: cde-worker-copy
|
name: cde-worker-copy
|
||||||
namespace: cde
|
namespace: cde
|
||||||
labels:
|
|
||||||
app: cde-worker-copy
|
|
||||||
service: cde-worker-copy
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
interval: 10m
|
||||||
selector:
|
|
||||||
matchLabels:
|
chart:
|
||||||
app: cde-worker-copy
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: cde-worker-copy
|
|
||||||
service: cde-worker-copy
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: cde
|
|
||||||
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
|
||||||
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
|
||||||
{{- with secret "secrets/data/vault/apps/cde" -}}
|
|
||||||
{{- range $k, $v := .Data.data }}
|
|
||||||
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: cde-vault
|
chart: universal-chart
|
||||||
containers:
|
version: "0.1.9"
|
||||||
- name: cde-worker-copy
|
sourceRef:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/copy-worker:prod_9f3c1d2a
|
kind: HelmRepository
|
||||||
imagePullPolicy: IfNotPresent
|
name: yc-oci-charts
|
||||||
|
namespace: flux-system
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
values:
|
||||||
|
global:
|
||||||
|
env: _default
|
||||||
|
|
||||||
|
services:
|
||||||
|
cde-worker-copy:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: cde-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/copy-worker:prod_9f3c1d2a
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: cde-worker-copy
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
_default: ["/bin/bash", "-lc"]
|
||||||
- -lc
|
|
||||||
args:
|
args:
|
||||||
- |
|
_default:
|
||||||
set -e
|
- |
|
||||||
source /vault/secrets/cde-env
|
set -e
|
||||||
exec /worker
|
source /vault/secrets/cde-env
|
||||||
ports:
|
exec /worker
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: S3_IS_CONTOUR
|
|
||||||
value: "true"
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "25m"
|
cpu:
|
||||||
memory: 128Mi
|
_default: 25m
|
||||||
imagePullSecrets:
|
memory:
|
||||||
- name: regcred
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: S3_IS_CONTOUR
|
||||||
|
value:
|
||||||
|
_default: "true"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: cde
|
||||||
|
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
||||||
|
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
||||||
|
{{- with secret "secrets/data/vault/apps/cde" -}}
|
||||||
|
{{- range $k, $v := .Data.data }}
|
||||||
|
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
|
|||||||
@ -1,60 +1,116 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: cde-worker-create-versions
|
name: cde-worker-create-versions
|
||||||
namespace: cde
|
namespace: cde
|
||||||
labels:
|
|
||||||
app: cde-worker-create-versions
|
|
||||||
service: cde-worker-create-versions
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
interval: 10m
|
||||||
selector:
|
|
||||||
matchLabels:
|
chart:
|
||||||
app: cde-worker-create-versions
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: cde-worker-create-versions
|
|
||||||
service: cde-worker-create-versions
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: cde
|
|
||||||
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
|
||||||
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
|
||||||
{{- with secret "secrets/data/vault/apps/cde" -}}
|
|
||||||
{{- range $k, $v := .Data.data }}
|
|
||||||
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: cde-vault
|
chart: universal-chart
|
||||||
containers:
|
version: "0.1.9"
|
||||||
- name: cde-worker-create-versions
|
sourceRef:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/createversions-worker:prod_9f3c1d2a
|
kind: HelmRepository
|
||||||
imagePullPolicy: IfNotPresent
|
name: yc-oci-charts
|
||||||
|
namespace: flux-system
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
values:
|
||||||
|
global:
|
||||||
|
env: _default
|
||||||
|
|
||||||
|
services:
|
||||||
|
cde-worker-create-versions:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: cde-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/createversions-worker:prod_9f3c1d2a
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: cde-worker-create-versions
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
_default: ["/bin/bash", "-lc"]
|
||||||
- -lc
|
|
||||||
args:
|
args:
|
||||||
- |
|
_default:
|
||||||
set -e
|
- |
|
||||||
source /vault/secrets/cde-env
|
set -e
|
||||||
exec /worker
|
source /vault/secrets/cde-env
|
||||||
ports:
|
exec /worker
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: S3_IS_CONTOUR
|
|
||||||
value: "true"
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "25m"
|
cpu:
|
||||||
memory: 128Mi
|
_default: 25m
|
||||||
imagePullSecrets:
|
memory:
|
||||||
- name: regcred
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: S3_IS_CONTOUR
|
||||||
|
value:
|
||||||
|
_default: "true"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: cde
|
||||||
|
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
||||||
|
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
||||||
|
{{- with secret "secrets/data/vault/apps/cde" -}}
|
||||||
|
{{- range $k, $v := .Data.data }}
|
||||||
|
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
|
|||||||
@ -1,60 +1,116 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: cde-worker-markings
|
name: cde-worker-markings
|
||||||
namespace: cde
|
namespace: cde
|
||||||
labels:
|
|
||||||
app: cde-worker-markings
|
|
||||||
service: cde-worker-markings
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
interval: 10m
|
||||||
selector:
|
|
||||||
matchLabels:
|
chart:
|
||||||
app: cde-worker-markings
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: cde-worker-markings
|
|
||||||
service: cde-worker-markings
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: cde
|
|
||||||
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
|
||||||
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
|
||||||
{{- with secret "secrets/data/vault/apps/cde" -}}
|
|
||||||
{{- range $k, $v := .Data.data }}
|
|
||||||
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: cde-vault
|
chart: universal-chart
|
||||||
containers:
|
version: "0.1.9"
|
||||||
- name: cde-worker-markings
|
sourceRef:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/markings-worker:prod_9f3c1d2a
|
kind: HelmRepository
|
||||||
imagePullPolicy: IfNotPresent
|
name: yc-oci-charts
|
||||||
|
namespace: flux-system
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
values:
|
||||||
|
global:
|
||||||
|
env: _default
|
||||||
|
|
||||||
|
services:
|
||||||
|
cde-worker-markings:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: cde-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/markings-worker:prod_9f3c1d2a
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: cde-worker-markings
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
_default: ["/bin/bash", "-lc"]
|
||||||
- -lc
|
|
||||||
args:
|
args:
|
||||||
- |
|
_default:
|
||||||
set -e
|
- |
|
||||||
source /vault/secrets/cde-env
|
set -e
|
||||||
exec /worker
|
source /vault/secrets/cde-env
|
||||||
ports:
|
exec /worker
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: S3_IS_CONTOUR
|
|
||||||
value: "true"
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "25m"
|
cpu:
|
||||||
memory: 128Mi
|
_default: 25m
|
||||||
imagePullSecrets:
|
memory:
|
||||||
- name: regcred
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: S3_IS_CONTOUR
|
||||||
|
value:
|
||||||
|
_default: "true"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: cde
|
||||||
|
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
||||||
|
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
||||||
|
{{- with secret "secrets/data/vault/apps/cde" -}}
|
||||||
|
{{- range $k, $v := .Data.data }}
|
||||||
|
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
|
|||||||
@ -1,60 +1,116 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: cde-worker-sign
|
name: cde-worker-sign
|
||||||
namespace: cde
|
namespace: cde
|
||||||
labels:
|
|
||||||
app: cde-worker-sign
|
|
||||||
service: cde-worker-sign
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
interval: 10m
|
||||||
selector:
|
|
||||||
matchLabels:
|
chart:
|
||||||
app: cde-worker-sign
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: cde-worker-sign
|
|
||||||
service: cde-worker-sign
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: cde
|
|
||||||
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
|
||||||
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
|
||||||
{{- with secret "secrets/data/vault/apps/cde" -}}
|
|
||||||
{{- range $k, $v := .Data.data }}
|
|
||||||
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: cde-vault
|
chart: universal-chart
|
||||||
containers:
|
version: "0.1.9"
|
||||||
- name: cde-worker-sign
|
sourceRef:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/sign-worker:prod_9f3c1d2a
|
kind: HelmRepository
|
||||||
imagePullPolicy: IfNotPresent
|
name: yc-oci-charts
|
||||||
|
namespace: flux-system
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
values:
|
||||||
|
global:
|
||||||
|
env: _default
|
||||||
|
|
||||||
|
services:
|
||||||
|
cde-worker-sign:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: cde-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/sign-worker:prod_9f3c1d2a
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: cde-worker-sign
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
_default: ["/bin/bash", "-lc"]
|
||||||
- -lc
|
|
||||||
args:
|
args:
|
||||||
- |
|
_default:
|
||||||
set -e
|
- |
|
||||||
source /vault/secrets/cde-env
|
set -e
|
||||||
exec /worker
|
source /vault/secrets/cde-env
|
||||||
ports:
|
exec /worker
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: S3_IS_CONTOUR
|
|
||||||
value: "true"
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "25m"
|
cpu:
|
||||||
memory: 128Mi
|
_default: 25m
|
||||||
imagePullSecrets:
|
memory:
|
||||||
- name: regcred
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: S3_IS_CONTOUR
|
||||||
|
value:
|
||||||
|
_default: "true"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: cde
|
||||||
|
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
||||||
|
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
||||||
|
{{- with secret "secrets/data/vault/apps/cde" -}}
|
||||||
|
{{- range $k, $v := .Data.data }}
|
||||||
|
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
|
|||||||
@ -1,60 +1,116 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: cde-worker-update-bundles
|
name: cde-worker-update-bundles
|
||||||
namespace: cde
|
namespace: cde
|
||||||
labels:
|
|
||||||
app: cde-worker-update-bundles
|
|
||||||
service: cde-worker-update-bundles
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
interval: 10m
|
||||||
selector:
|
|
||||||
matchLabels:
|
chart:
|
||||||
app: cde-worker-update-bundles
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: cde-worker-update-bundles
|
|
||||||
service: cde-worker-update-bundles
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: cde
|
|
||||||
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
|
||||||
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
|
||||||
{{- with secret "secrets/data/vault/apps/cde" -}}
|
|
||||||
{{- range $k, $v := .Data.data }}
|
|
||||||
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: cde-vault
|
chart: universal-chart
|
||||||
containers:
|
version: "0.1.9"
|
||||||
- name: cde-worker-update-bundles
|
sourceRef:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/updatebundles-worker:prod_9f3c1d2a
|
kind: HelmRepository
|
||||||
imagePullPolicy: IfNotPresent
|
name: yc-oci-charts
|
||||||
|
namespace: flux-system
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
values:
|
||||||
|
global:
|
||||||
|
env: _default
|
||||||
|
|
||||||
|
services:
|
||||||
|
cde-worker-update-bundles:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: cde-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/updatebundles-worker:prod_9f3c1d2a
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: cde-worker-update-bundles
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
_default: ["/bin/bash", "-lc"]
|
||||||
- -lc
|
|
||||||
args:
|
args:
|
||||||
- |
|
_default:
|
||||||
set -e
|
- |
|
||||||
source /vault/secrets/cde-env
|
set -e
|
||||||
exec /worker
|
source /vault/secrets/cde-env
|
||||||
ports:
|
exec /worker
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: S3_IS_CONTOUR
|
|
||||||
value: "true"
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "25m"
|
cpu:
|
||||||
memory: 128Mi
|
_default: 25m
|
||||||
imagePullSecrets:
|
memory:
|
||||||
- name: regcred
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: S3_IS_CONTOUR
|
||||||
|
value:
|
||||||
|
_default: "true"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: cde
|
||||||
|
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
||||||
|
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
||||||
|
{{- with secret "secrets/data/vault/apps/cde" -}}
|
||||||
|
{{- range $k, $v := .Data.data }}
|
||||||
|
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
|
|||||||
@ -1,60 +1,131 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: cde
|
name: cde
|
||||||
namespace: cde
|
namespace: cde
|
||||||
labels:
|
|
||||||
app: cde
|
|
||||||
service: cde
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
interval: 10m
|
||||||
selector:
|
|
||||||
matchLabels:
|
chart:
|
||||||
app: cde
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: cde
|
|
||||||
service: cde
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: cde
|
|
||||||
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
|
||||||
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
|
||||||
{{- with secret "secrets/data/vault/apps/cde" -}}
|
|
||||||
{{- range $k, $v := .Data.data }}
|
|
||||||
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: cde-vault
|
chart: universal-chart
|
||||||
containers:
|
version: "0.1.9"
|
||||||
- name: api
|
sourceRef:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/cde:prod_9f3c1d2a
|
kind: HelmRepository
|
||||||
imagePullPolicy: IfNotPresent
|
name: yc-oci-charts
|
||||||
|
namespace: flux-system
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
|
||||||
|
values:
|
||||||
|
global:
|
||||||
|
env: _default
|
||||||
|
|
||||||
|
services:
|
||||||
|
cde:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: cde-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/cde:prod_9f3c1d2a
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: cde
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
_default: ["/bin/bash", "-lc"]
|
||||||
- -lc
|
|
||||||
args:
|
args:
|
||||||
- |
|
_default:
|
||||||
set -e
|
- |
|
||||||
source /vault/secrets/cde-env
|
set -e
|
||||||
exec /http
|
source /vault/secrets/cde-env
|
||||||
ports:
|
exec /http
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: S3_IS_CONTOUR
|
|
||||||
value: "true"
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "25m"
|
cpu:
|
||||||
memory: 128Mi
|
_default: 25m
|
||||||
imagePullSecrets:
|
memory:
|
||||||
- name: regcred
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: cde-svc
|
||||||
|
|
||||||
|
type:
|
||||||
|
_default: ClusterIP
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 80
|
||||||
|
|
||||||
|
targetPort:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
portName:
|
||||||
|
_default: http
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: S3_IS_CONTOUR
|
||||||
|
value:
|
||||||
|
_default: "true"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: cde
|
||||||
|
vault.hashicorp.com/agent-inject-secret-cde-env: secrets/data/vault/apps/cde
|
||||||
|
vault.hashicorp.com/agent-inject-template-cde-env: |-
|
||||||
|
{{- with secret "secrets/data/vault/apps/cde" -}}
|
||||||
|
{{- range $k, $v := .Data.data }}
|
||||||
|
export {{ $k }}=$(printf '%b' {{ printf "%q" (printf "%v" $v) }})
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
|
|||||||
@ -4,10 +4,8 @@ kind: Kustomization
|
|||||||
namespace: cde
|
namespace: cde
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- serviceaccount.yaml
|
|
||||||
- cde.yaml
|
- cde.yaml
|
||||||
- cde-splitpdf.yaml
|
- cde-splitpdf.yaml
|
||||||
- backend-service.yaml
|
|
||||||
- cde-flowscallback.yaml
|
- cde-flowscallback.yaml
|
||||||
- cde-worker-copy.yaml
|
- cde-worker-copy.yaml
|
||||||
- cde-worker-create-versions.yaml
|
- cde-worker-create-versions.yaml
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: cde-vault
|
|
||||||
namespace: cde
|
|
||||||
10
apps/cde/d8-ugmk-prod/kustomization.yaml
Normal file
10
apps/cde/d8-ugmk-prod/kustomization.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../base
|
||||||
|
patches:
|
||||||
|
- path: namespace.yaml
|
||||||
|
target:
|
||||||
|
kind: Namespace
|
||||||
|
name: cde
|
||||||
8
apps/cde/d8-ugmk-prod/namespace.yaml
Normal file
8
apps/cde/d8-ugmk-prod/namespace.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: cde
|
||||||
|
labels:
|
||||||
|
istio-injection: enabled
|
||||||
|
security.deckhouse.io/pod-policy: privileged
|
||||||
@ -4,5 +4,5 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: comparisons
|
name: comparisons
|
||||||
labels:
|
labels:
|
||||||
istio-injection: disabled
|
istio-injection: enabled
|
||||||
security.deckhouse.io/pod-policy: privileged
|
security.deckhouse.io/pod-policy: privileged
|
||||||
|
|||||||
@ -3,5 +3,5 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: control-interface
|
name: control-interface
|
||||||
labels:
|
labels:
|
||||||
istio-injection: disabled
|
istio-injection: enabled
|
||||||
security.deckhouse.io/pod-policy: privileged
|
security.deckhouse.io/pod-policy: privileged
|
||||||
|
|||||||
@ -4,5 +4,5 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: cross-section
|
name: cross-section
|
||||||
labels:
|
labels:
|
||||||
istio-injection: disabled
|
istio-injection: enabled
|
||||||
security.deckhouse.io/pod-policy: privileged
|
security.deckhouse.io/pod-policy: privileged
|
||||||
|
|||||||
@ -4,5 +4,5 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: document-link
|
name: document-link
|
||||||
labels:
|
labels:
|
||||||
istio-injection: disabled
|
istio-injection: enabled
|
||||||
security.deckhouse.io/pod-policy: privileged
|
security.deckhouse.io/pod-policy: privileged
|
||||||
|
|||||||
@ -4,5 +4,5 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: drawings
|
name: drawings
|
||||||
labels:
|
labels:
|
||||||
istio-injection: disabled
|
istio-injection: enabled
|
||||||
security.deckhouse.io/pod-policy: privileged
|
security.deckhouse.io/pod-policy: privileged
|
||||||
|
|||||||
@ -103,10 +103,11 @@ data:
|
|||||||
"django_filters.rest_framework.DjangoFilterBackend"
|
"django_filters.rest_framework.DjangoFilterBackend"
|
||||||
],
|
],
|
||||||
"DEFAULT_AUTHENTICATION_CLASSES": [
|
"DEFAULT_AUTHENTICATION_CLASSES": [
|
||||||
"core.auth.ZitadelJWTAuthentication",
|
#"core.auth.ZitadelJWTAuthentication",
|
||||||
"rest_framework_simplejwt.authentication.JWTAuthentication",
|
"rest_framework_simplejwt.authentication.JWTStatelessUserAuthentication",
|
||||||
"rest_framework.authentication.SessionAuthentication",
|
#"rest_framework_simplejwt.authentication.JWTAuthentication",
|
||||||
"rest_framework.authentication.BasicAuthentication",
|
#"rest_framework.authentication.SessionAuthentication",
|
||||||
|
#"rest_framework.authentication.BasicAuthentication",
|
||||||
],
|
],
|
||||||
"DEFAULT_PERMISSION_CLASSES": [
|
"DEFAULT_PERMISSION_CLASSES": [
|
||||||
"rest_framework.permissions.AllowAny",
|
"rest_framework.permissions.AllowAny",
|
||||||
|
|||||||
@ -4,5 +4,5 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: faas
|
name: faas
|
||||||
labels:
|
labels:
|
||||||
istio-injection: disabled
|
istio-injection: enabled
|
||||||
security.deckhouse.io/pod-policy: privileged
|
security.deckhouse.io/pod-policy: privileged
|
||||||
|
|||||||
@ -1,137 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: backend
|
|
||||||
namespace: flows
|
|
||||||
labels:
|
|
||||||
app: backend
|
|
||||||
service: backend
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: backend
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: backend
|
|
||||||
service: backend
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: flows
|
|
||||||
vault.hashicorp.com/agent-inject-secret-flows-postgresql: secrets/data/postgresql/apps/flows
|
|
||||||
vault.hashicorp.com/agent-inject-template-flows-postgresql: |-
|
|
||||||
{{- with secret "secrets/data/postgresql/apps/flows" -}}
|
|
||||||
PG_DB=flows_db
|
|
||||||
PG_LOGIN={{ index .Data.data "username" }}
|
|
||||||
PG_HOST=postgresql.flows.svc.cluster.local
|
|
||||||
PG_PORT=5432
|
|
||||||
PG_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
DOCUMENTATION_PG_HOST=postgresql.flows.svc.cluster.local
|
|
||||||
DOCUMENTATION_PG_PORT=5432
|
|
||||||
DOCUMENTATION_PG_DATABASE=flows_db
|
|
||||||
DOCUMENTATION_PG_USERNAME={{ index .Data.data "username" }}
|
|
||||||
DOCUMENTATION_PG_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-flows-rabbitmq: secrets/data/rabbitmq/apps/flows
|
|
||||||
vault.hashicorp.com/agent-inject-template-flows-rabbitmq: |-
|
|
||||||
{{- with secret "secrets/data/rabbitmq/apps/flows" -}}
|
|
||||||
RABBITMQ_USERNAME={{ index .Data.data "username" }}
|
|
||||||
RABBITMQ_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
RABBITMQ_VHOST={{ index .Data.data "vhost" }}
|
|
||||||
RABBITMQ_HOST=rabbitmq.rabbitmq.svc.cluster.local
|
|
||||||
RABBITMQ_PORT=5672
|
|
||||||
ADMIN_PANEL_SECRET_KEY=rabbitmq.rabbitmq:5672
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-flows-django-auth: secrets/data/vault/common/django_auth
|
|
||||||
vault.hashicorp.com/agent-inject-template-flows-django-auth: |-
|
|
||||||
{{- with secret "secrets/data/vault/common/django_auth" -}}
|
|
||||||
DJANGO_TOKEN={{ index .Data.data "key" }}
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-flows-jwt-public: secrets/data/vault/common/rsa_keys
|
|
||||||
vault.hashicorp.com/agent-inject-template-flows-jwt-public: |-
|
|
||||||
{{- with secret "secrets/data/vault/common/rsa_keys" -}}
|
|
||||||
{{ index .Data.data "public_key" }}
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
|
||||||
serviceAccountName: flows-vault
|
|
||||||
containers:
|
|
||||||
- name: backend
|
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/flows-backend:production_2a439111
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
command: ["/bin/sh", "-ec"]
|
|
||||||
args:
|
|
||||||
- |
|
|
||||||
set -a
|
|
||||||
[ -f /vault/secrets/flows-postgresql ] && . /vault/secrets/flows-postgresql
|
|
||||||
[ -f /vault/secrets/flows-rabbitmq ] && . /vault/secrets/flows-rabbitmq
|
|
||||||
[ -f /vault/secrets/flows-django-auth ] && . /vault/secrets/flows-django-auth
|
|
||||||
[ -f /vault/secrets/flows-jwt-public ] && export JWT_PUBLIC_KEY="$(cat /vault/secrets/flows-jwt-public)"
|
|
||||||
set +a
|
|
||||||
exec /opt/entrypoint.sh
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: LOG_LEVEL
|
|
||||||
value: DEBUG
|
|
||||||
- name: BASE_HOST
|
|
||||||
value: https://srx.wb.ru
|
|
||||||
- name: CELERY_QUEUE
|
|
||||||
value: flow
|
|
||||||
- name: EAV_HOST
|
|
||||||
value: http://backend-svc.eav.svc.cluster.local:80
|
|
||||||
- name: DJANGO_HOST
|
|
||||||
value: http://backend-svc.django.svc.cluster.local:80/api
|
|
||||||
- name: PLANNING_HOST
|
|
||||||
value: http://backend-svc.pm.svc.cluster.local:80/api/pm/msp
|
|
||||||
- name: PLANNING_USE
|
|
||||||
value: "True"
|
|
||||||
- name: DOCUMENTATION_HOST
|
|
||||||
value: http://backend-api-svc.documentations.svc.cluster.local:80/internal/v1
|
|
||||||
- name: DOCUMENTATION_EXTERNAL_HOST
|
|
||||||
value: http://backend-api-svc.documentations.svc.cluster.local:80/api/v1
|
|
||||||
- name: ENABLE_ANALYTICS
|
|
||||||
value: "1"
|
|
||||||
- name: ENABLE_CELERY
|
|
||||||
value: "1"
|
|
||||||
- name: ENABLE_MAILGUN
|
|
||||||
value: "0"
|
|
||||||
- name: ENABLE_METRICS
|
|
||||||
value: "0"
|
|
||||||
- name: FROM_EMAIL
|
|
||||||
value: sarex@rwb.ru
|
|
||||||
- name: GATEWAY_URL
|
|
||||||
value: http://pdm-api.documentations.svc.cluster.local:8080
|
|
||||||
- name: RESOURCE_URL
|
|
||||||
value: http://resources-service.resources.svc.cluster.local:8000
|
|
||||||
- name: SERVICE_HOST
|
|
||||||
value: https://srx.wb.ru/flows/api/v1
|
|
||||||
- name: SMTP_HOST
|
|
||||||
value: mail.rwb.ru
|
|
||||||
- name: CHECKLIST_HOST
|
|
||||||
value: http://checklists-backend-service.checklists.svc.cluster.local:80
|
|
||||||
- name: SMTP_PORT
|
|
||||||
value: "465"
|
|
||||||
- name: SYNC_RESOURCE_ID
|
|
||||||
value: "1"
|
|
||||||
- name: TIMEOUT
|
|
||||||
value: "120"
|
|
||||||
- name: WORKFLOWS_HOST
|
|
||||||
value: http://workflows-api-service.workflow.svc.cluster.local:8000/api/v1
|
|
||||||
- name: WORKFLOWS_TIMEOUT
|
|
||||||
value: "60"
|
|
||||||
- name: DOCUMENTATION_TIMEOUT
|
|
||||||
value: "60"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: "25m"
|
|
||||||
memory: 128Mi
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: regcred
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: backend-svc
|
|
||||||
namespace: flows
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: backend
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
targetPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
258
apps/flows/base/backend.yaml
Normal file
258
apps/flows/base/backend.yaml
Normal file
@ -0,0 +1,258 @@
|
|||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: backend
|
||||||
|
namespace: flows
|
||||||
|
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: universal-chart
|
||||||
|
version: "0.1.9"
|
||||||
|
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
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: flows-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/flows-backend:production_2a439111
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: backend
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
command:
|
||||||
|
_default: ["/bin/sh", "-ec"]
|
||||||
|
args:
|
||||||
|
_default:
|
||||||
|
- |
|
||||||
|
set -a
|
||||||
|
[ -f /vault/secrets/flows-postgresql ] && . /vault/secrets/flows-postgresql
|
||||||
|
[ -f /vault/secrets/flows-rabbitmq ] && . /vault/secrets/flows-rabbitmq
|
||||||
|
[ -f /vault/secrets/flows-django-auth ] && . /vault/secrets/flows-django-auth
|
||||||
|
[ -f /vault/secrets/flows-jwt-public ] && export JWT_PUBLIC_KEY="$(cat /vault/secrets/flows-jwt-public)"
|
||||||
|
set +a
|
||||||
|
exec /opt/entrypoint.sh
|
||||||
|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu:
|
||||||
|
_default: 25m
|
||||||
|
memory:
|
||||||
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: backend-svc
|
||||||
|
|
||||||
|
type:
|
||||||
|
_default: ClusterIP
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 80
|
||||||
|
|
||||||
|
targetPort:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
portName:
|
||||||
|
_default: http
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: LOG_LEVEL
|
||||||
|
value:
|
||||||
|
_default: "DEBUG"
|
||||||
|
|
||||||
|
- name: BASE_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://srx.wb.ru"
|
||||||
|
|
||||||
|
- name: CELERY_QUEUE
|
||||||
|
value:
|
||||||
|
_default: "flow"
|
||||||
|
|
||||||
|
- name: EAV_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-svc.eav.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: DJANGO_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-svc.django.svc.cluster.local:80/api"
|
||||||
|
|
||||||
|
- name: PLANNING_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-svc.pm.svc.cluster.local:80/api/pm/msp"
|
||||||
|
|
||||||
|
- name: PLANNING_USE
|
||||||
|
value:
|
||||||
|
_default: "True"
|
||||||
|
|
||||||
|
- name: DOCUMENTATION_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-api-svc.documentations.svc.cluster.local:80/internal/v1"
|
||||||
|
|
||||||
|
- name: DOCUMENTATION_EXTERNAL_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-api-svc.documentations.svc.cluster.local:80/api/v1"
|
||||||
|
|
||||||
|
- name: ENABLE_ANALYTICS
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: ENABLE_CELERY
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: ENABLE_MAILGUN
|
||||||
|
value:
|
||||||
|
_default: "0"
|
||||||
|
|
||||||
|
- name: ENABLE_METRICS
|
||||||
|
value:
|
||||||
|
_default: "0"
|
||||||
|
|
||||||
|
- name: FROM_EMAIL
|
||||||
|
value:
|
||||||
|
_default: "sarex@rwb.ru"
|
||||||
|
|
||||||
|
- name: GATEWAY_URL
|
||||||
|
value:
|
||||||
|
_default: "http://pdm-api.documentations.svc.cluster.local:8080"
|
||||||
|
|
||||||
|
- name: RESOURCE_URL
|
||||||
|
value:
|
||||||
|
_default: "http://resources-service.resources.svc.cluster.local:8000"
|
||||||
|
|
||||||
|
- name: SERVICE_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://srx.wb.ru/flows/api/v1"
|
||||||
|
|
||||||
|
- name: SMTP_HOST
|
||||||
|
value:
|
||||||
|
_default: "mail.rwb.ru"
|
||||||
|
|
||||||
|
- name: CHECKLIST_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://checklists-backend-service.checklists.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: SMTP_PORT
|
||||||
|
value:
|
||||||
|
_default: "465"
|
||||||
|
|
||||||
|
- name: SYNC_RESOURCE_ID
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "120"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://workflows-api-service.workflow.svc.cluster.local:8000/api/v1"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "60"
|
||||||
|
|
||||||
|
- name: DOCUMENTATION_TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "60"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: flows
|
||||||
|
vault.hashicorp.com/agent-inject-secret-flows-postgresql: secrets/data/postgresql/apps/flows
|
||||||
|
vault.hashicorp.com/agent-inject-template-flows-postgresql: |-
|
||||||
|
{{- with secret "secrets/data/postgresql/apps/flows" -}}
|
||||||
|
PG_DB=flows_db
|
||||||
|
PG_LOGIN={{ index .Data.data "username" }}
|
||||||
|
PG_HOST=postgresql.flows.svc.cluster.local
|
||||||
|
PG_PORT=5432
|
||||||
|
PG_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
DOCUMENTATION_PG_HOST=postgresql.flows.svc.cluster.local
|
||||||
|
DOCUMENTATION_PG_PORT=5432
|
||||||
|
DOCUMENTATION_PG_DATABASE=flows_db
|
||||||
|
DOCUMENTATION_PG_USERNAME={{ index .Data.data "username" }}
|
||||||
|
DOCUMENTATION_PG_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-flows-rabbitmq: secrets/data/rabbitmq/apps/flows
|
||||||
|
vault.hashicorp.com/agent-inject-template-flows-rabbitmq: |-
|
||||||
|
{{- with secret "secrets/data/rabbitmq/apps/flows" -}}
|
||||||
|
RABBITMQ_USERNAME={{ index .Data.data "username" }}
|
||||||
|
RABBITMQ_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
RABBITMQ_VHOST={{ index .Data.data "vhost" }}
|
||||||
|
RABBITMQ_HOST=rabbitmq.rabbitmq.svc.cluster.local
|
||||||
|
RABBITMQ_PORT=5672
|
||||||
|
ADMIN_PANEL_SECRET_KEY=rabbitmq.rabbitmq:5672
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-flows-django-auth: secrets/data/vault/common/django_auth
|
||||||
|
vault.hashicorp.com/agent-inject-template-flows-django-auth: |-
|
||||||
|
{{- with secret "secrets/data/vault/common/django_auth" -}}
|
||||||
|
DJANGO_TOKEN={{ index .Data.data "key" }}
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-flows-jwt-public: secrets/data/vault/common/rsa_keys
|
||||||
|
vault.hashicorp.com/agent-inject-template-flows-jwt-public: |-
|
||||||
|
{{- with secret "secrets/data/vault/common/rsa_keys" -}}
|
||||||
|
{{ index .Data.data "public_key" }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
@ -1,137 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: celery
|
|
||||||
namespace: flows
|
|
||||||
labels:
|
|
||||||
app: celery
|
|
||||||
service: celery
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: celery
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: celery
|
|
||||||
service: celery
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: flows
|
|
||||||
vault.hashicorp.com/agent-inject-secret-flows-postgresql: secrets/data/postgresql/apps/flows
|
|
||||||
vault.hashicorp.com/agent-inject-template-flows-postgresql: |-
|
|
||||||
{{- with secret "secrets/data/postgresql/apps/flows" -}}
|
|
||||||
PG_DB=flows_db
|
|
||||||
PG_LOGIN={{ index .Data.data "username" }}
|
|
||||||
PG_HOST=postgresql.flows.svc.cluster.local
|
|
||||||
PG_PORT=5432
|
|
||||||
PG_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
DOCUMENTATION_PG_HOST=postgresql.flows.svc.cluster.local
|
|
||||||
DOCUMENTATION_PG_PORT=5432
|
|
||||||
DOCUMENTATION_PG_DATABASE=flows_db
|
|
||||||
DOCUMENTATION_PG_USERNAME={{ index .Data.data "username" }}
|
|
||||||
DOCUMENTATION_PG_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-flows-rabbitmq: secrets/data/rabbitmq/apps/flows
|
|
||||||
vault.hashicorp.com/agent-inject-template-flows-rabbitmq: |-
|
|
||||||
{{- with secret "secrets/data/rabbitmq/apps/flows" -}}
|
|
||||||
RABBITMQ_USERNAME={{ index .Data.data "username" }}
|
|
||||||
RABBITMQ_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
RABBITMQ_VHOST={{ index .Data.data "vhost" }}
|
|
||||||
RABBITMQ_HOST=rabbitmq.rabbitmq.svc.cluster.local
|
|
||||||
RABBITMQ_PORT=5672
|
|
||||||
ADMIN_PANEL_SECRET_KEY=rabbitmq.rabbitmq:5672
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-flows-django-auth: secrets/data/vault/common/django_auth
|
|
||||||
vault.hashicorp.com/agent-inject-template-flows-django-auth: |-
|
|
||||||
{{- with secret "secrets/data/vault/common/django_auth" -}}
|
|
||||||
DJANGO_TOKEN={{ index .Data.data "key" }}
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-flows-jwt-public: secrets/data/vault/common/rsa_keys
|
|
||||||
vault.hashicorp.com/agent-inject-template-flows-jwt-public: |-
|
|
||||||
{{- with secret "secrets/data/vault/common/rsa_keys" -}}
|
|
||||||
{{ index .Data.data "public_key" }}
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
|
||||||
serviceAccountName: flows-vault
|
|
||||||
containers:
|
|
||||||
- name: celery
|
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/flows-backend_worker:production_2a439111
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
command: ["/bin/sh", "-ec"]
|
|
||||||
args:
|
|
||||||
- |
|
|
||||||
set -a
|
|
||||||
[ -f /vault/secrets/flows-postgresql ] && . /vault/secrets/flows-postgresql
|
|
||||||
[ -f /vault/secrets/flows-rabbitmq ] && . /vault/secrets/flows-rabbitmq
|
|
||||||
[ -f /vault/secrets/flows-django-auth ] && . /vault/secrets/flows-django-auth
|
|
||||||
[ -f /vault/secrets/flows-jwt-public ] && export JWT_PUBLIC_KEY="$(cat /vault/secrets/flows-jwt-public)"
|
|
||||||
set +a
|
|
||||||
exec celery -A src.worker worker -l INFO -E --concurrency=1 -Q flow
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: LOG_LEVEL
|
|
||||||
value: DEBUG
|
|
||||||
- name: BASE_HOST
|
|
||||||
value: https://srx.wb.ru
|
|
||||||
- name: CELERY_QUEUE
|
|
||||||
value: flow
|
|
||||||
- name: EAV_HOST
|
|
||||||
value: http://backend-svc.eav.svc.cluster.local:80
|
|
||||||
- name: DJANGO_HOST
|
|
||||||
value: http://backend-svc.django.svc.cluster.local:80/api
|
|
||||||
- name: PLANNING_HOST
|
|
||||||
value: http://backend-service.pm.svc.cluster.local:80/api/pm/msp
|
|
||||||
- name: PLANNING_USE
|
|
||||||
value: "True"
|
|
||||||
- name: DOCUMENTATION_HOST
|
|
||||||
value: http://backend-api-svc.documentations.svc.cluster.local:80/internal/v1
|
|
||||||
- name: DOCUMENTATION_EXTERNAL_HOST
|
|
||||||
value: http://backend-api-svc.documentations.svc.cluster.local:80/api/v1
|
|
||||||
- name: ENABLE_ANALYTICS
|
|
||||||
value: "1"
|
|
||||||
- name: ENABLE_CELERY
|
|
||||||
value: "1"
|
|
||||||
- name: ENABLE_MAILGUN
|
|
||||||
value: "0"
|
|
||||||
- name: ENABLE_METRICS
|
|
||||||
value: "0"
|
|
||||||
- name: FROM_EMAIL
|
|
||||||
value: sarex@rwb.ru
|
|
||||||
- name: GATEWAY_URL
|
|
||||||
value: http://pdm-api.documentations.svc.cluster.local:8080
|
|
||||||
- name: RESOURCE_URL
|
|
||||||
value: http://resources-service.resources.svc.cluster.local:8000
|
|
||||||
- name: SERVICE_HOST
|
|
||||||
value: https://srx.wb.ru/flows/api/v1
|
|
||||||
- name: SMTP_HOST
|
|
||||||
value: mail.rwb.ru
|
|
||||||
- name: CHECKLIST_HOST
|
|
||||||
value: http://checklists-backend-service.checklists.svc.cluster.local:80
|
|
||||||
- name: SMTP_PORT
|
|
||||||
value: "465"
|
|
||||||
- name: SYNC_RESOURCE_ID
|
|
||||||
value: "1"
|
|
||||||
- name: TIMEOUT
|
|
||||||
value: "120"
|
|
||||||
- name: WORKFLOWS_HOST
|
|
||||||
value: http://workflows-api-service.workflow.svc.cluster.local:8000/api/v1
|
|
||||||
- name: WORKFLOWS_TIMEOUT
|
|
||||||
value: "60"
|
|
||||||
- name: DOCUMENTATION_TIMEOUT
|
|
||||||
value: "60"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: "25m"
|
|
||||||
memory: 128Mi
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: regcred
|
|
||||||
243
apps/flows/base/celery.yaml
Normal file
243
apps/flows/base/celery.yaml
Normal file
@ -0,0 +1,243 @@
|
|||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: celery
|
||||||
|
namespace: flows
|
||||||
|
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: universal-chart
|
||||||
|
version: "0.1.9"
|
||||||
|
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:
|
||||||
|
celery:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: flows-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/flows-backend_worker:production_2a439111
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: celery
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
command:
|
||||||
|
_default: ["/bin/sh", "-ec"]
|
||||||
|
args:
|
||||||
|
_default:
|
||||||
|
- |
|
||||||
|
set -a
|
||||||
|
[ -f /vault/secrets/flows-postgresql ] && . /vault/secrets/flows-postgresql
|
||||||
|
[ -f /vault/secrets/flows-rabbitmq ] && . /vault/secrets/flows-rabbitmq
|
||||||
|
[ -f /vault/secrets/flows-django-auth ] && . /vault/secrets/flows-django-auth
|
||||||
|
[ -f /vault/secrets/flows-jwt-public ] && export JWT_PUBLIC_KEY="$(cat /vault/secrets/flows-jwt-public)"
|
||||||
|
set +a
|
||||||
|
exec celery -A src.worker worker -l INFO -E --concurrency=1 -Q flow
|
||||||
|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu:
|
||||||
|
_default: 25m
|
||||||
|
memory:
|
||||||
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: LOG_LEVEL
|
||||||
|
value:
|
||||||
|
_default: "DEBUG"
|
||||||
|
|
||||||
|
- name: BASE_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://srx.wb.ru"
|
||||||
|
|
||||||
|
- name: CELERY_QUEUE
|
||||||
|
value:
|
||||||
|
_default: "flow"
|
||||||
|
|
||||||
|
- name: EAV_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-svc.eav.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: DJANGO_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-svc.django.svc.cluster.local:80/api"
|
||||||
|
|
||||||
|
- name: PLANNING_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-service.pm.svc.cluster.local:80/api/pm/msp"
|
||||||
|
|
||||||
|
- name: PLANNING_USE
|
||||||
|
value:
|
||||||
|
_default: "True"
|
||||||
|
|
||||||
|
- name: DOCUMENTATION_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-api-svc.documentations.svc.cluster.local:80/internal/v1"
|
||||||
|
|
||||||
|
- name: DOCUMENTATION_EXTERNAL_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-api-svc.documentations.svc.cluster.local:80/api/v1"
|
||||||
|
|
||||||
|
- name: ENABLE_ANALYTICS
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: ENABLE_CELERY
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: ENABLE_MAILGUN
|
||||||
|
value:
|
||||||
|
_default: "0"
|
||||||
|
|
||||||
|
- name: ENABLE_METRICS
|
||||||
|
value:
|
||||||
|
_default: "0"
|
||||||
|
|
||||||
|
- name: FROM_EMAIL
|
||||||
|
value:
|
||||||
|
_default: "sarex@rwb.ru"
|
||||||
|
|
||||||
|
- name: GATEWAY_URL
|
||||||
|
value:
|
||||||
|
_default: "http://pdm-api.documentations.svc.cluster.local:8080"
|
||||||
|
|
||||||
|
- name: RESOURCE_URL
|
||||||
|
value:
|
||||||
|
_default: "http://resources-service.resources.svc.cluster.local:8000"
|
||||||
|
|
||||||
|
- name: SERVICE_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://srx.wb.ru/flows/api/v1"
|
||||||
|
|
||||||
|
- name: SMTP_HOST
|
||||||
|
value:
|
||||||
|
_default: "mail.rwb.ru"
|
||||||
|
|
||||||
|
- name: CHECKLIST_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://checklists-backend-service.checklists.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: SMTP_PORT
|
||||||
|
value:
|
||||||
|
_default: "465"
|
||||||
|
|
||||||
|
- name: SYNC_RESOURCE_ID
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "120"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://workflows-api-service.workflow.svc.cluster.local:8000/api/v1"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "60"
|
||||||
|
|
||||||
|
- name: DOCUMENTATION_TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "60"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: flows
|
||||||
|
vault.hashicorp.com/agent-inject-secret-flows-postgresql: secrets/data/postgresql/apps/flows
|
||||||
|
vault.hashicorp.com/agent-inject-template-flows-postgresql: |-
|
||||||
|
{{- with secret "secrets/data/postgresql/apps/flows" -}}
|
||||||
|
PG_DB=flows_db
|
||||||
|
PG_LOGIN={{ index .Data.data "username" }}
|
||||||
|
PG_HOST=postgresql.flows.svc.cluster.local
|
||||||
|
PG_PORT=5432
|
||||||
|
PG_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
DOCUMENTATION_PG_HOST=postgresql.flows.svc.cluster.local
|
||||||
|
DOCUMENTATION_PG_PORT=5432
|
||||||
|
DOCUMENTATION_PG_DATABASE=flows_db
|
||||||
|
DOCUMENTATION_PG_USERNAME={{ index .Data.data "username" }}
|
||||||
|
DOCUMENTATION_PG_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-flows-rabbitmq: secrets/data/rabbitmq/apps/flows
|
||||||
|
vault.hashicorp.com/agent-inject-template-flows-rabbitmq: |-
|
||||||
|
{{- with secret "secrets/data/rabbitmq/apps/flows" -}}
|
||||||
|
RABBITMQ_USERNAME={{ index .Data.data "username" }}
|
||||||
|
RABBITMQ_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
RABBITMQ_VHOST={{ index .Data.data "vhost" }}
|
||||||
|
RABBITMQ_HOST=rabbitmq.rabbitmq.svc.cluster.local
|
||||||
|
RABBITMQ_PORT=5672
|
||||||
|
ADMIN_PANEL_SECRET_KEY=rabbitmq.rabbitmq:5672
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-flows-django-auth: secrets/data/vault/common/django_auth
|
||||||
|
vault.hashicorp.com/agent-inject-template-flows-django-auth: |-
|
||||||
|
{{- with secret "secrets/data/vault/common/django_auth" -}}
|
||||||
|
DJANGO_TOKEN={{ index .Data.data "key" }}
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-flows-jwt-public: secrets/data/vault/common/rsa_keys
|
||||||
|
vault.hashicorp.com/agent-inject-template-flows-jwt-public: |-
|
||||||
|
{{- with secret "secrets/data/vault/common/rsa_keys" -}}
|
||||||
|
{{ index .Data.data "public_key" }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
@ -1,32 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: frontend
|
|
||||||
namespace: flows
|
|
||||||
labels:
|
|
||||||
app: frontend
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: frontend
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: frontend
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: frontend
|
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/flows-frontend:contour_5b2bd144
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 80
|
|
||||||
protocol: TCP
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 25m
|
|
||||||
memory: 100Mi
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: regcred
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: frontend-svc
|
|
||||||
namespace: flows
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: frontend
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
targetPort: 80
|
|
||||||
protocol: TCP
|
|
||||||
90
apps/flows/base/frontend.yaml
Normal file
90
apps/flows/base/frontend.yaml
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: frontend
|
||||||
|
namespace: flows
|
||||||
|
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: universal-chart
|
||||||
|
version: "0.1.9"
|
||||||
|
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:
|
||||||
|
frontend:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/flows-frontend:contour_5b2bd144
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: frontend
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 80
|
||||||
|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu:
|
||||||
|
_default: 25m
|
||||||
|
memory:
|
||||||
|
_default: 100Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: frontend-svc
|
||||||
|
|
||||||
|
type:
|
||||||
|
_default: ClusterIP
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 80
|
||||||
|
|
||||||
|
targetPort:
|
||||||
|
_default: 80
|
||||||
|
|
||||||
|
portName:
|
||||||
|
_default: http
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
@ -4,9 +4,6 @@ kind: Kustomization
|
|||||||
namespace: flows
|
namespace: flows
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- serviceaccount.yaml
|
- backend.yaml
|
||||||
- backend-deployment.yaml
|
- celery.yaml
|
||||||
- celery-deployment.yaml
|
- frontend.yaml
|
||||||
- frontend-deployment.yaml
|
|
||||||
- backend-service.yaml
|
|
||||||
- frontend-service.yaml
|
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: flows-vault
|
|
||||||
namespace: flows
|
|
||||||
10
apps/flows/d8-ugmk-prod/kustomization.yaml
Normal file
10
apps/flows/d8-ugmk-prod/kustomization.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../base
|
||||||
|
patches:
|
||||||
|
- path: namespace.yaml
|
||||||
|
target:
|
||||||
|
kind: Namespace
|
||||||
|
name: flows
|
||||||
8
apps/flows/d8-ugmk-prod/namespace.yaml
Normal file
8
apps/flows/d8-ugmk-prod/namespace.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: flows
|
||||||
|
labels:
|
||||||
|
istio-injection: enabled
|
||||||
|
security.deckhouse.io/pod-policy: privileged
|
||||||
@ -1,92 +1,182 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: backend
|
name: backend
|
||||||
namespace: flows
|
namespace: flows
|
||||||
spec:
|
spec:
|
||||||
replicas: 2
|
values:
|
||||||
template:
|
services:
|
||||||
spec:
|
backend:
|
||||||
containers:
|
image:
|
||||||
- name: backend
|
name:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/flows-backend:production_a5d748f0
|
_default: cr.yandex/crp3ccidau046kdj8g9q/flows-backend:production_a5d748f0
|
||||||
env:
|
|
||||||
- name: DEBUG
|
deployment:
|
||||||
value: 'false'
|
replicaCount:
|
||||||
- name: PLANNING_HOST
|
_default: 2
|
||||||
value: http://backend-service.pm.svc.cluster.local:8000/api/pm/msp
|
|
||||||
- name: PLANNING_USE
|
envs:
|
||||||
value: 'True'
|
- name: LOG_LEVEL
|
||||||
- name: PG_PORT
|
value:
|
||||||
value: '5432'
|
_default: "DEBUG"
|
||||||
- name: EAV_HOST
|
|
||||||
value: http://eav-service.eav.svc.cluster.local:8000
|
- name: BASE_HOST
|
||||||
- name: PROXY_PATH_PREFIX
|
value:
|
||||||
value: /flows
|
_default: "https://sarex.dsinv.ru"
|
||||||
- name: DJANGO_HOST
|
|
||||||
value: http://backend.django.svc.cluster.local:8000/api
|
- name: CELERY_QUEUE
|
||||||
- name: DOCUMENTATION_TIMEOUT
|
value:
|
||||||
value: '240'
|
_default: "flow"
|
||||||
- name: DOCUMENTATION_HOST
|
|
||||||
value: http://documentations-service.documentations.svc.cluster.local:8080/internal/v1
|
- name: EAV_HOST
|
||||||
- name: DOCUMENTATION_EXTERNAL_HOST
|
value:
|
||||||
value: http://documentations-service.documentations.svc.cluster.local:8080/api/v1
|
_default: "http://eav-service.eav.svc.cluster.local:8000"
|
||||||
- name: BASE_HOST
|
|
||||||
value: https://sarex.dsinv.ru
|
- name: DJANGO_HOST
|
||||||
- name: DOCUMENTATION_PG_PORT
|
value:
|
||||||
value: '5432'
|
_default: "http://backend.django.svc.cluster.local:8000/api"
|
||||||
- name: DOCUMENTATION_PG_DATABASE
|
|
||||||
value: documentations
|
- name: PLANNING_HOST
|
||||||
- name: DOCUMENTATION_PG_HOST
|
value:
|
||||||
value: postgres-service.documentations.svc.cluster.local
|
_default: "http://backend-service.pm.svc.cluster.local:8000/api/pm/msp"
|
||||||
- name: WORKFLOWS_HOST
|
|
||||||
value: http://workflows-service.workflow.svc.cluster.local:8000/api/v1
|
- name: PLANNING_USE
|
||||||
- name: WORKFLOWS_NOTIFICATIONS_REGISTRY
|
value:
|
||||||
value: cr.yandex/crp3ccidau046kdj8g9q
|
_default: "True"
|
||||||
- name: WORKFLOWS_NOTIFICATIONS_SMTP_HOST
|
|
||||||
value: relay.dsinv.ru
|
- name: DOCUMENTATION_HOST
|
||||||
- name: WORKFLOWS_NOTIFICATIONS_SMTP_PORT
|
value:
|
||||||
value: '25'
|
_default: "http://documentations-service.documentations.svc.cluster.local:8080/internal/v1"
|
||||||
- name: WORKFLOWS_NOTIFICATIONS_FROM_EMAI
|
|
||||||
value: sarex@dsinv.ru
|
- name: DOCUMENTATION_EXTERNAL_HOST
|
||||||
- name: NOTIFICATION_SETTINGS_USE_MAILGUN
|
value:
|
||||||
value: '0'
|
_default: "http://documentations-service.documentations.svc.cluster.local:8080/api/v1"
|
||||||
- name: RESOURCES_HOST
|
|
||||||
value: http://resources-service.resources.svc.cluster.local:8000
|
- name: ENABLE_ANALYTICS
|
||||||
- name: ENABLE_METRICS
|
value:
|
||||||
value: '0'
|
_default: "1"
|
||||||
- name: ENABLE_MAILGUN
|
|
||||||
value: '0'
|
- name: ENABLE_CELERY
|
||||||
- name: SMTP_HOST
|
value:
|
||||||
value: relay.dsinv.ru
|
_default: "1"
|
||||||
- name: SMTP_PORT
|
|
||||||
value: '25'
|
- name: ENABLE_MAILGUN
|
||||||
- name: FROM_EMAIL
|
value:
|
||||||
value: sarex@dsinv.ru
|
_default: "0"
|
||||||
- name: TIMEOUT
|
|
||||||
value: '240'
|
- name: ENABLE_METRICS
|
||||||
- name: WORKFLOWS_TIMEOUT
|
value:
|
||||||
value: '20'
|
_default: "0"
|
||||||
- name: RESOURCE_URL
|
|
||||||
value: http://resources-service.resources.svc.cluster.local:8000/
|
- name: FROM_EMAIL
|
||||||
- name: GATEWAY_URL
|
value:
|
||||||
value: http://pdm-api.documentations.svc.cluster.local:8080/
|
_default: "sarex@dsinv.ru"
|
||||||
- name: SYNC_RESOURCE_ID
|
|
||||||
value: '1'
|
- name: GATEWAY_URL
|
||||||
- name: SERVICE_HOST
|
value:
|
||||||
value: https://sarex.dsinv.ru/flows/api/v1
|
_default: "http://pdm-api.documentations.svc.cluster.local:8080/"
|
||||||
- name: ENABLE_ANALYTICS
|
|
||||||
value: '1'
|
- name: RESOURCE_URL
|
||||||
- name: ENABLE_CELERY
|
value:
|
||||||
value: '1'
|
_default: "http://resources-service.resources.svc.cluster.local:8000/"
|
||||||
- name: CELERY_QUEUE
|
|
||||||
value: flow
|
- name: SERVICE_HOST
|
||||||
- name: RABBITMQ_HOST
|
value:
|
||||||
value: rabbitmq-service.flows.svc
|
_default: "https://sarex.dsinv.ru/flows/api/v1"
|
||||||
- name: RABBITMQ_PORT
|
|
||||||
value: '5672'
|
- name: SMTP_HOST
|
||||||
- name: RABBITMQ_VHOST
|
value:
|
||||||
value: flow
|
_default: "relay.dsinv.ru"
|
||||||
- name: PG_HOST
|
|
||||||
value: postgres-service.flows.svc.cluster.local
|
- name: CHECKLIST_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://checklists-backend-service.checklists.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: SMTP_PORT
|
||||||
|
value:
|
||||||
|
_default: "25"
|
||||||
|
|
||||||
|
- name: SYNC_RESOURCE_ID
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "240"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://workflows-service.workflow.svc.cluster.local:8000/api/v1"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "20"
|
||||||
|
|
||||||
|
- name: DOCUMENTATION_TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "240"
|
||||||
|
|
||||||
|
- name: DEBUG
|
||||||
|
value:
|
||||||
|
_default: "false"
|
||||||
|
|
||||||
|
- name: PG_PORT
|
||||||
|
value:
|
||||||
|
_default: "5432"
|
||||||
|
|
||||||
|
- name: PROXY_PATH_PREFIX
|
||||||
|
value:
|
||||||
|
_default: "/flows"
|
||||||
|
|
||||||
|
- name: DOCUMENTATION_PG_PORT
|
||||||
|
value:
|
||||||
|
_default: "5432"
|
||||||
|
|
||||||
|
- name: DOCUMENTATION_PG_DATABASE
|
||||||
|
value:
|
||||||
|
_default: "documentations"
|
||||||
|
|
||||||
|
- name: DOCUMENTATION_PG_HOST
|
||||||
|
value:
|
||||||
|
_default: "postgres-service.documentations.svc.cluster.local"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_NOTIFICATIONS_REGISTRY
|
||||||
|
value:
|
||||||
|
_default: "cr.yandex/crp3ccidau046kdj8g9q"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_NOTIFICATIONS_SMTP_HOST
|
||||||
|
value:
|
||||||
|
_default: "relay.dsinv.ru"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_NOTIFICATIONS_SMTP_PORT
|
||||||
|
value:
|
||||||
|
_default: "25"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_NOTIFICATIONS_FROM_EMAI
|
||||||
|
value:
|
||||||
|
_default: "sarex@dsinv.ru"
|
||||||
|
|
||||||
|
- name: NOTIFICATION_SETTINGS_USE_MAILGUN
|
||||||
|
value:
|
||||||
|
_default: "0"
|
||||||
|
|
||||||
|
- name: RESOURCES_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://resources-service.resources.svc.cluster.local:8000"
|
||||||
|
|
||||||
|
- name: RABBITMQ_HOST
|
||||||
|
value:
|
||||||
|
_default: "rabbitmq-service.flows.svc"
|
||||||
|
|
||||||
|
- name: RABBITMQ_PORT
|
||||||
|
value:
|
||||||
|
_default: "5672"
|
||||||
|
|
||||||
|
- name: RABBITMQ_VHOST
|
||||||
|
value:
|
||||||
|
_default: "flow"
|
||||||
|
|
||||||
|
- name: PG_HOST
|
||||||
|
value:
|
||||||
|
_default: "postgres-service.flows.svc.cluster.local"
|
||||||
|
|||||||
@ -1,93 +1,198 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: celery
|
name: celery
|
||||||
namespace: flows
|
namespace: flows
|
||||||
spec:
|
spec:
|
||||||
template:
|
values:
|
||||||
spec:
|
services:
|
||||||
containers:
|
celery:
|
||||||
- name: celery
|
image:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/flows-backend_worker:production_a5d748f0
|
name:
|
||||||
env:
|
_default: cr.yandex/crp3ccidau046kdj8g9q/flows-backend_worker:production_a5d748f0
|
||||||
- name: WORKFLOWS_NOTIFICATIONS_FROM_EMAIL
|
|
||||||
value: sarex@dsinv.ru
|
envs:
|
||||||
- name: ENABLE_METRICS
|
- name: LOG_LEVEL
|
||||||
value: '0'
|
value:
|
||||||
- name: ENABLE_MAILGUN
|
_default: "DEBUG"
|
||||||
value: '0'
|
|
||||||
- name: SMTP_HOST
|
- name: BASE_HOST
|
||||||
value: relay.dsinv.ru
|
value:
|
||||||
- name: SMTP_PORT
|
_default: "https://sarex.dsinv.ru"
|
||||||
value: '25'
|
|
||||||
- name: FROM_EMAIL
|
- name: CELERY_QUEUE
|
||||||
value: sarex@dsinv.ru
|
value:
|
||||||
- name: MAILGUN_HOST
|
_default: "flow"
|
||||||
value: http:localhost:8000
|
|
||||||
- name: MAILGUN_API_KEY
|
- name: EAV_HOST
|
||||||
value: empty
|
value:
|
||||||
- name: NOTIFICATION_SETTINGS_USE_MAILGUN
|
_default: "http://backend-svc.eav.svc.cluster.local:80"
|
||||||
value: '0'
|
|
||||||
- name: WORKFLOWS_HOST
|
- name: DJANGO_HOST
|
||||||
value: http://workflows-service.workflow.svc.cluster.local:8000/api/v1
|
value:
|
||||||
- name: FLOWS_HOST
|
_default: "http://backend.django.svc.cluster.local:8000/api"
|
||||||
value: http://backend-service.flows.svc.cluster.local:8000
|
|
||||||
- name: WORKFLOWS_NOTIFICATIONS_REGISTRY
|
- name: PLANNING_HOST
|
||||||
value: cr.yandex/crp3ccidau046kdj8g9q
|
value:
|
||||||
- name: WORKFLOWS_NOTIFICATIONS_SMTP_HOST
|
_default: "http://backend-service.pm.svc.cluster.local:8000/api/pm/msp"
|
||||||
value: relay.dsinv.ru
|
|
||||||
- name: WORKFLOWS_NOTIFICATIONS_SMTP_PORT
|
- name: PLANNING_USE
|
||||||
value: '25'
|
value:
|
||||||
- name: PLANNING_HOST
|
_default: "True"
|
||||||
value: http://backend-service.pm.svc.cluster.local:8000/api/pm/msp
|
|
||||||
- name: PLANNING_USE
|
- name: DOCUMENTATION_HOST
|
||||||
value: 'True'
|
value:
|
||||||
- name: WORKFLOWS_NOTIFICATIONS_FROM_EMAI
|
_default: "http://documentations-service.documentations.svc.cluster.local:8080/internal/v1"
|
||||||
value: sarex@dsinv.ru
|
|
||||||
- name: FLOWS_DB_HOST
|
- name: DOCUMENTATION_EXTERNAL_HOST
|
||||||
value: postgres-service.flows.svc.cluster.local
|
value:
|
||||||
- name: ISSUES_DB_HOST
|
_default: "http://backend-api-svc.documentations.svc.cluster.local:80/api/v1"
|
||||||
value: postgres-service.issues.svc.cluster.local
|
|
||||||
- name: DEBUG
|
- name: ENABLE_ANALYTICS
|
||||||
value: '0'
|
value:
|
||||||
- name: PG_PORT
|
_default: "1"
|
||||||
value: '5432'
|
|
||||||
- name: FLOWS_DB_PORT
|
- name: ENABLE_CELERY
|
||||||
value: '5432'
|
value:
|
||||||
- name: ISSUES_DB_PORT
|
_default: "1"
|
||||||
value: '5432'
|
|
||||||
- name: DJANGO_HOST
|
- name: ENABLE_MAILGUN
|
||||||
value: http://backend.django.svc.cluster.local:8000/api
|
value:
|
||||||
- name: DJANGO_BASE_HOST
|
_default: "0"
|
||||||
value: https://sarex.dsinv.ru
|
|
||||||
- name: DOCUMENTATION_HOST
|
- name: ENABLE_METRICS
|
||||||
value: http://documentations-service.documentations.svc.cluster.local:8080/internal/v1
|
value:
|
||||||
- name: BASE_HOST
|
_default: "0"
|
||||||
value: https://sarex.dsinv.ru
|
|
||||||
- name: RESOURCES_HOST
|
- name: FROM_EMAIL
|
||||||
value: http://resources-service.resources.svc.cluster.local:8000/
|
value:
|
||||||
- name: TIMEOUT
|
_default: "sarex@dsinv.ru"
|
||||||
value: '120'
|
|
||||||
- name: RESOURCE_URL
|
- name: GATEWAY_URL
|
||||||
value: http://resources-service.resources/api/v1
|
value:
|
||||||
- name: GATEWAY_URL
|
_default: "http://pdm-api.documentations.svc.cluster.local:8080/api/v1"
|
||||||
value: http://pdm-api.documentations.svc.cluster.local:8080/api/v1
|
|
||||||
- name: SYNC_RESOURCE_ID
|
- name: RESOURCE_URL
|
||||||
value: '1'
|
value:
|
||||||
- name: SERVICE_HOST
|
_default: "http://resources-service.resources/api/v1"
|
||||||
value: https://sarex.dsinv.ru/flows/api/v1
|
|
||||||
- name: ENABLE_ANALYTICS
|
- name: SERVICE_HOST
|
||||||
value: '1'
|
value:
|
||||||
- name: ENABLE_CELERY
|
_default: "https://sarex.dsinv.ru/flows/api/v1"
|
||||||
value: '1'
|
|
||||||
- name: CELERY_QUEUE
|
- name: SMTP_HOST
|
||||||
value: flow
|
value:
|
||||||
- name: RABBITMQ_HOST
|
_default: "relay.dsinv.ru"
|
||||||
value: rabbitmq-service.flows.svc
|
|
||||||
- name: RABBITMQ_PORT
|
- name: CHECKLIST_HOST
|
||||||
value: '5672'
|
value:
|
||||||
- name: RABBITMQ_VHOST
|
_default: "http://checklists-backend-service.checklists.svc.cluster.local:80"
|
||||||
value: flow
|
|
||||||
- name: PG_HOST
|
- name: SMTP_PORT
|
||||||
value: postgres-service.flows.svc.cluster.local
|
value:
|
||||||
|
_default: "25"
|
||||||
|
|
||||||
|
- name: SYNC_RESOURCE_ID
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "120"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://workflows-service.workflow.svc.cluster.local:8000/api/v1"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "60"
|
||||||
|
|
||||||
|
- name: DOCUMENTATION_TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "60"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_NOTIFICATIONS_FROM_EMAIL
|
||||||
|
value:
|
||||||
|
_default: "sarex@dsinv.ru"
|
||||||
|
|
||||||
|
- name: MAILGUN_HOST
|
||||||
|
value:
|
||||||
|
_default: "http:localhost:8000"
|
||||||
|
|
||||||
|
- name: MAILGUN_API_KEY
|
||||||
|
value:
|
||||||
|
_default: "empty"
|
||||||
|
|
||||||
|
- name: NOTIFICATION_SETTINGS_USE_MAILGUN
|
||||||
|
value:
|
||||||
|
_default: "0"
|
||||||
|
|
||||||
|
- name: FLOWS_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-service.flows.svc.cluster.local:8000"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_NOTIFICATIONS_REGISTRY
|
||||||
|
value:
|
||||||
|
_default: "cr.yandex/crp3ccidau046kdj8g9q"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_NOTIFICATIONS_SMTP_HOST
|
||||||
|
value:
|
||||||
|
_default: "relay.dsinv.ru"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_NOTIFICATIONS_SMTP_PORT
|
||||||
|
value:
|
||||||
|
_default: "25"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_NOTIFICATIONS_FROM_EMAI
|
||||||
|
value:
|
||||||
|
_default: "sarex@dsinv.ru"
|
||||||
|
|
||||||
|
- name: FLOWS_DB_HOST
|
||||||
|
value:
|
||||||
|
_default: "postgres-service.flows.svc.cluster.local"
|
||||||
|
|
||||||
|
- name: ISSUES_DB_HOST
|
||||||
|
value:
|
||||||
|
_default: "postgres-service.issues.svc.cluster.local"
|
||||||
|
|
||||||
|
- name: DEBUG
|
||||||
|
value:
|
||||||
|
_default: "0"
|
||||||
|
|
||||||
|
- name: PG_PORT
|
||||||
|
value:
|
||||||
|
_default: "5432"
|
||||||
|
|
||||||
|
- name: FLOWS_DB_PORT
|
||||||
|
value:
|
||||||
|
_default: "5432"
|
||||||
|
|
||||||
|
- name: ISSUES_DB_PORT
|
||||||
|
value:
|
||||||
|
_default: "5432"
|
||||||
|
|
||||||
|
- name: DJANGO_BASE_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://sarex.dsinv.ru"
|
||||||
|
|
||||||
|
- name: RESOURCES_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://resources-service.resources.svc.cluster.local:8000/"
|
||||||
|
|
||||||
|
- name: RABBITMQ_HOST
|
||||||
|
value:
|
||||||
|
_default: "rabbitmq-service.flows.svc"
|
||||||
|
|
||||||
|
- name: RABBITMQ_PORT
|
||||||
|
value:
|
||||||
|
_default: "5672"
|
||||||
|
|
||||||
|
- name: RABBITMQ_VHOST
|
||||||
|
value:
|
||||||
|
_default: "flow"
|
||||||
|
|
||||||
|
- name: PG_HOST
|
||||||
|
value:
|
||||||
|
_default: "postgres-service.flows.svc.cluster.local"
|
||||||
|
|||||||
@ -1,12 +1,13 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: frontend
|
name: frontend
|
||||||
namespace: flows
|
namespace: flows
|
||||||
spec:
|
spec:
|
||||||
template:
|
values:
|
||||||
spec:
|
services:
|
||||||
containers:
|
frontend:
|
||||||
- name: frontend
|
image:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/flows-frontend:contour_bad7aeb2
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/flows-frontend:contour_bad7aeb2
|
||||||
|
|||||||
@ -10,13 +10,13 @@ resources:
|
|||||||
patches:
|
patches:
|
||||||
- path: backend.yaml
|
- path: backend.yaml
|
||||||
target:
|
target:
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
name: backend
|
name: backend
|
||||||
- path: celery.yaml
|
- path: celery.yaml
|
||||||
target:
|
target:
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
name: celery
|
name: celery
|
||||||
- path: frontend.yaml
|
- path: frontend.yaml
|
||||||
target:
|
target:
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
name: frontend
|
name: frontend
|
||||||
|
|||||||
@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: rfi-backend-api-svc
|
|
||||||
namespace: rfi
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: rfi-backend-api
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
targetPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
240
apps/inspections/base/backend.yaml
Normal file
240
apps/inspections/base/backend.yaml
Normal file
@ -0,0 +1,240 @@
|
|||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: backend
|
||||||
|
namespace: inspections
|
||||||
|
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: universal-chart
|
||||||
|
version: "0.1.9"
|
||||||
|
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
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: inspections-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/sarex-inspections:production_1a33f6f4
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: inspections-backend
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
command:
|
||||||
|
_default: ["/bin/bash", "-ec"]
|
||||||
|
args:
|
||||||
|
_default:
|
||||||
|
- |
|
||||||
|
set -a
|
||||||
|
[ -f /vault/secrets/inspections-db ] && . /vault/secrets/inspections-db
|
||||||
|
[ -f /vault/secrets/inspections-kafka ] && . /vault/secrets/inspections-kafka
|
||||||
|
[ -f /vault/secrets/inspections-django-auth ] && . /vault/secrets/inspections-django-auth
|
||||||
|
set +a
|
||||||
|
exec ./entrypoint.sh
|
||||||
|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu:
|
||||||
|
_default: 25m
|
||||||
|
memory:
|
||||||
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: backend-svc
|
||||||
|
|
||||||
|
type:
|
||||||
|
_default: ClusterIP
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 80
|
||||||
|
|
||||||
|
targetPort:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
portName:
|
||||||
|
_default: http
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: DEBUG
|
||||||
|
value:
|
||||||
|
_default: "false"
|
||||||
|
|
||||||
|
- name: SERVICE_URL
|
||||||
|
value:
|
||||||
|
_default: "https://srx.wb.ru"
|
||||||
|
|
||||||
|
- name: HTTP_APP_HOST
|
||||||
|
value:
|
||||||
|
_default: "0.0.0.0"
|
||||||
|
|
||||||
|
- name: HTTP_APP_PORT
|
||||||
|
value:
|
||||||
|
_default: "8000"
|
||||||
|
|
||||||
|
- name: HTTP_APP_ROOT_PATH
|
||||||
|
value:
|
||||||
|
_default: "/inspections"
|
||||||
|
|
||||||
|
- name: HTTP_APP_WORKERS
|
||||||
|
value:
|
||||||
|
_default: "3"
|
||||||
|
|
||||||
|
- name: HTTP_APP_ADMIN_ENABLE
|
||||||
|
value:
|
||||||
|
_default: "true"
|
||||||
|
|
||||||
|
- name: KAFKA_SSL_CAFILE
|
||||||
|
value:
|
||||||
|
_default: "/usr/local/share/ca-certificates/Yandex/YandexInternalRootCA.crt"
|
||||||
|
|
||||||
|
- name: KAFKA_EAV_ASSETS_TOPIC
|
||||||
|
value:
|
||||||
|
_default: "assets_broadcast"
|
||||||
|
|
||||||
|
- name: JWT_AUTH_ENABLE
|
||||||
|
value:
|
||||||
|
_default: "true"
|
||||||
|
|
||||||
|
- name: NOTIFICATIONS_ENABLE
|
||||||
|
value:
|
||||||
|
_default: "true"
|
||||||
|
|
||||||
|
- name: NOTIFICATIONS_EMAIL_FROM
|
||||||
|
value:
|
||||||
|
_default: "hello@sarex.io"
|
||||||
|
|
||||||
|
- name: SAREX_BACKEND_URL
|
||||||
|
value:
|
||||||
|
_default: "https://srx.wb.ru"
|
||||||
|
|
||||||
|
- name: SAREX_BACKEND_TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "30"
|
||||||
|
|
||||||
|
- name: EAV_URL
|
||||||
|
value:
|
||||||
|
_default: "http://eav-service.eav"
|
||||||
|
|
||||||
|
- name: EAV_TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "30"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_URL
|
||||||
|
value:
|
||||||
|
_default: "http://workflows-service.processing-prod"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "30"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_EMAIL_DOCKER_IMAGE
|
||||||
|
value:
|
||||||
|
_default: "cr.yandex/crp3ccidau046kdj8g9q/notification:email"
|
||||||
|
|
||||||
|
- name: MOBILE_APP_CURRENT_VERSION
|
||||||
|
value:
|
||||||
|
_default: "1.0.0"
|
||||||
|
|
||||||
|
- name: MOBILE_APP_RECOMMENDED_VERSION
|
||||||
|
value:
|
||||||
|
_default: "1.0.0"
|
||||||
|
|
||||||
|
- name: MOBILE_APP_REQUIRED_VERSION
|
||||||
|
value:
|
||||||
|
_default: "1.0.0"
|
||||||
|
|
||||||
|
- name: MAILER_URL
|
||||||
|
value:
|
||||||
|
_default: "http://mailer-service.mailer:8000"
|
||||||
|
|
||||||
|
- name: MAILER_TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "30"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: inspections
|
||||||
|
vault.hashicorp.com/agent-inject-secret-inspections-db: secrets/data/postgresql/apps/inspections
|
||||||
|
vault.hashicorp.com/agent-inject-template-inspections-db: |-
|
||||||
|
{{- with secret "secrets/data/postgresql/apps/inspections" -}}
|
||||||
|
DATABASE_HOST=postgresql.inspections.svc.cluster.local
|
||||||
|
DATABASE_PORT=5432
|
||||||
|
DATABASE_NAME=inspections_db
|
||||||
|
DATABASE_USER={{ index .Data.data "username" }}
|
||||||
|
DATABASE_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-inspections-kafka: secrets/data/kafka/apps/inspections
|
||||||
|
vault.hashicorp.com/agent-inject-template-inspections-kafka: |-
|
||||||
|
{{- with secret "secrets/data/kafka/apps/inspections" -}}
|
||||||
|
KAFKA_HOST={{ index .Data.data.auth "bootstrap_servers" }}
|
||||||
|
KAFKA_USERNAME={{ index .Data.data "username" }}
|
||||||
|
KAFKA_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-inspections-django-auth: secrets/data/vault/common/django_auth
|
||||||
|
vault.hashicorp.com/agent-inject-template-inspections-django-auth: |-
|
||||||
|
{{- with secret "secrets/data/vault/common/django_auth" -}}
|
||||||
|
SAREX_BACKEND_AUTH={{ index .Data.data "key" }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
@ -4,6 +4,4 @@ kind: Kustomization
|
|||||||
namespace: inspections
|
namespace: inspections
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- serviceaccount.yaml
|
- backend.yaml
|
||||||
- backend-deployment.yaml
|
|
||||||
- backend-service.yaml
|
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: inspections-vault
|
|
||||||
namespace: inspections
|
|
||||||
10
apps/inspections/d8-ugmk-prod/kustomization.yaml
Normal file
10
apps/inspections/d8-ugmk-prod/kustomization.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../base
|
||||||
|
patches:
|
||||||
|
- path: namespace.yaml
|
||||||
|
target:
|
||||||
|
kind: Namespace
|
||||||
|
name: inspections
|
||||||
8
apps/inspections/d8-ugmk-prod/namespace.yaml
Normal file
8
apps/inspections/d8-ugmk-prod/namespace.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: inspections
|
||||||
|
labels:
|
||||||
|
istio-injection: enabled
|
||||||
|
security.deckhouse.io/pod-policy: privileged
|
||||||
@ -1,61 +1,13 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: inspections-backend
|
name: backend
|
||||||
namespace: inspections
|
namespace: inspections
|
||||||
spec:
|
spec:
|
||||||
template:
|
values:
|
||||||
spec:
|
services:
|
||||||
containers:
|
backend:
|
||||||
- name: inspections-backend
|
image:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/sarex-inspections:production_5fcce90d
|
name:
|
||||||
env:
|
_default: cr.yandex/crp3ccidau046kdj8g9q/sarex-inspections:production_5fcce90d
|
||||||
- name: DEBUG
|
|
||||||
value: 'false'
|
|
||||||
- name: SERVICE_URL
|
|
||||||
value: https://srx.wb.ru
|
|
||||||
- name: HTTP_APP_HOST
|
|
||||||
value: 0.0.0.0
|
|
||||||
- name: HTTP_APP_PORT
|
|
||||||
value: '8000'
|
|
||||||
- name: HTTP_APP_ROOT_PATH
|
|
||||||
value: /inspections
|
|
||||||
- name: HTTP_APP_WORKERS
|
|
||||||
value: '3'
|
|
||||||
- name: HTTP_APP_ADMIN_ENABLE
|
|
||||||
value: 'true'
|
|
||||||
- name: KAFKA_SSL_CAFILE
|
|
||||||
value: /usr/local/share/ca-certificates/Yandex/YandexInternalRootCA.crt
|
|
||||||
- name: KAFKA_EAV_ASSETS_TOPIC
|
|
||||||
value: assets_broadcast
|
|
||||||
- name: JWT_AUTH_ENABLE
|
|
||||||
value: 'true'
|
|
||||||
- name: NOTIFICATIONS_ENABLE
|
|
||||||
value: 'true'
|
|
||||||
- name: NOTIFICATIONS_EMAIL_FROM
|
|
||||||
value: hello@sarex.io
|
|
||||||
- name: SAREX_BACKEND_URL
|
|
||||||
value: https://srx.wb.ru
|
|
||||||
- name: SAREX_BACKEND_TIMEOUT
|
|
||||||
value: '30'
|
|
||||||
- name: EAV_URL
|
|
||||||
value: http://eav-service.eav
|
|
||||||
- name: EAV_TIMEOUT
|
|
||||||
value: '30'
|
|
||||||
- name: WORKFLOWS_URL
|
|
||||||
value: http://workflows-service.processing-prod
|
|
||||||
- name: WORKFLOWS_TIMEOUT
|
|
||||||
value: '30'
|
|
||||||
- name: WORKFLOWS_EMAIL_DOCKER_IMAGE
|
|
||||||
value: cr.yandex/crp3ccidau046kdj8g9q/notification:email
|
|
||||||
- name: MOBILE_APP_CURRENT_VERSION
|
|
||||||
value: 1.0.0
|
|
||||||
- name: MOBILE_APP_RECOMMENDED_VERSION
|
|
||||||
value: 1.0.0
|
|
||||||
- name: MOBILE_APP_REQUIRED_VERSION
|
|
||||||
value: 1.0.0
|
|
||||||
- name: MAILER_URL
|
|
||||||
value: http://mailer-service.mailer:8000
|
|
||||||
- name: MAILER_TIMEOUT
|
|
||||||
value: '30'
|
|
||||||
|
|||||||
@ -9,5 +9,5 @@ resources:
|
|||||||
patches:
|
patches:
|
||||||
- path: inspections-backend.yaml
|
- path: inspections-backend.yaml
|
||||||
target:
|
target:
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
name: inspections-backend
|
name: backend
|
||||||
|
|||||||
@ -1,135 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: backend
|
|
||||||
namespace: issues
|
|
||||||
labels:
|
|
||||||
app: backend
|
|
||||||
service: backend
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: backend
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: backend
|
|
||||||
service: backend
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: issues
|
|
||||||
vault.hashicorp.com/agent-inject-secret-issues-db: secrets/data/postgresql/apps/issues
|
|
||||||
vault.hashicorp.com/agent-inject-template-issues-db: |-
|
|
||||||
{{- with secret "secrets/data/postgresql/apps/issues" -}}
|
|
||||||
DATABASE_PORT=5432
|
|
||||||
DATABASE_HOST=postgresql.issues.svc.cluster.local
|
|
||||||
DATABASE_USER={{ index .Data.data "username" }}
|
|
||||||
DATABASE_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
DATABASE_NAME=issues_db
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-issues-rabbitmq: secrets/data/rabbitmq/apps/issues
|
|
||||||
vault.hashicorp.com/agent-inject-template-issues-rabbitmq: |-
|
|
||||||
{{- with secret "secrets/data/rabbitmq/apps/issues" -}}
|
|
||||||
RABBITMQ_VHOST={{ index .Data.data "vhost" }}
|
|
||||||
RABBITMQ_USERNAME={{ index .Data.data "username" }}
|
|
||||||
RABBITMQ_HOSTNAME=rabbitmq.rabbitmq.svc.cluster.local
|
|
||||||
RABBITMQ_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-issues-s3: secrets/data/minio/apps/issues
|
|
||||||
vault.hashicorp.com/agent-inject-template-issues-s3: |-
|
|
||||||
{{- with secret "secrets/data/minio/apps/issues" -}}
|
|
||||||
YC_S3_ACCESS_KEY_ID={{ index .Data.data "access_key" }}
|
|
||||||
YC_S3_SECRET_ACCESS_KEY={{ index .Data.data "secret_key" }}
|
|
||||||
YC_S3_BUCKET_NAME=rfi
|
|
||||||
YC_S3_ENDPOINT_URL=https://minio.contour.infra.sarex.tech
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-issues-django-auth: secrets/data/vault/common/django_auth
|
|
||||||
vault.hashicorp.com/agent-inject-template-issues-django-auth: |-
|
|
||||||
{{- with secret "secrets/data/vault/common/django_auth" -}}
|
|
||||||
DJANGO_TOKEN={{ index .Data.data "key" }}
|
|
||||||
SAREX_USERNAME={{ index .Data.data "username" }}
|
|
||||||
SAREX_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-issues-jwt-private: secrets/data/vault/common/rsa_keys
|
|
||||||
vault.hashicorp.com/agent-inject-template-issues-jwt-private: |-
|
|
||||||
{{- with secret "secrets/data/vault/common/rsa_keys" -}}
|
|
||||||
{{ index .Data.data "private_key" }}
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-issues-jwt-public: secrets/data/vault/common/rsa_keys
|
|
||||||
vault.hashicorp.com/agent-inject-template-issues-jwt-public: |-
|
|
||||||
{{- with secret "secrets/data/vault/common/rsa_keys" -}}
|
|
||||||
{{ index .Data.data "public_key" }}
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
|
||||||
serviceAccountName: issues-vault
|
|
||||||
volumes:
|
|
||||||
- name: production-configmap
|
|
||||||
configMap:
|
|
||||||
name: production-configmap
|
|
||||||
items:
|
|
||||||
- key: production.py
|
|
||||||
path: production.py
|
|
||||||
defaultMode: 420
|
|
||||||
containers:
|
|
||||||
- name: backend
|
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/issues:production_17c438aa
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
command: ["/bin/sh", "-ec"]
|
|
||||||
args:
|
|
||||||
- |
|
|
||||||
set -a
|
|
||||||
[ -f /vault/secrets/issues-db ] && . /vault/secrets/issues-db
|
|
||||||
[ -f /vault/secrets/issues-rabbitmq ] && . /vault/secrets/issues-rabbitmq
|
|
||||||
[ -f /vault/secrets/issues-s3 ] && . /vault/secrets/issues-s3
|
|
||||||
[ -f /vault/secrets/issues-django-auth ] && . /vault/secrets/issues-django-auth
|
|
||||||
[ -f /vault/secrets/issues-jwt-private ] && export JWT_PRIVATE_KEY="$(cat /vault/secrets/issues-jwt-private)"
|
|
||||||
[ -f /vault/secrets/issues-jwt-public ] && export JWT_PUBLIC_KEY="$(cat /vault/secrets/issues-jwt-public)"
|
|
||||||
set +a
|
|
||||||
exec /src/entrypoint.sh
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: ENVIRONMENT
|
|
||||||
value: production
|
|
||||||
- name: AERO_PUBLIC_HOST
|
|
||||||
value: https://sarex.contour.infra.sarex.tech
|
|
||||||
- name: AERO_HOST
|
|
||||||
value: https://sarex.contour.infra.sarex.tech
|
|
||||||
- name: BASE_AERO_URL
|
|
||||||
value: https://sarex.contour.infra.sarex.tech
|
|
||||||
- name: BASE_AUTH_URL
|
|
||||||
value: http://backend-svc.django.svc.cluster.local:80
|
|
||||||
- name: WORKFLOWS_HOST
|
|
||||||
value: http://backend-svc.workflow.svc.cluster.local:80
|
|
||||||
- name: WORKFLOWS_URL
|
|
||||||
value: http://backend-svc.workflow.svc.cluster.local:80
|
|
||||||
- name: RESOURCES_API_HOST
|
|
||||||
value: http://backend-svc.resources.svc.cluster.local:80
|
|
||||||
- name: EAV_HOST
|
|
||||||
value: http://backend-svc.eav.svc.cluster.local:80
|
|
||||||
- name: SAREX_API
|
|
||||||
value: https://sarex.contour.infra.sarex.tech
|
|
||||||
- name: DOCUMENTATIONS_URL
|
|
||||||
value: http://documentations-api-svc.documentations.svc.cluster.local:80
|
|
||||||
- name: DJANGO_SETTINGS_MODULE
|
|
||||||
value: config.settings.production
|
|
||||||
- name: API_ADDRESS
|
|
||||||
value: "8000"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: "25m"
|
|
||||||
memory: 128Mi
|
|
||||||
volumeMounts:
|
|
||||||
- name: production-configmap
|
|
||||||
mountPath: /src/config/settings/production.py
|
|
||||||
subPath: production.py
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: regcred
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: backend-svc
|
|
||||||
namespace: issues
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: backend
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
targetPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
237
apps/issues/base/backend.yaml
Normal file
237
apps/issues/base/backend.yaml
Normal file
@ -0,0 +1,237 @@
|
|||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: backend
|
||||||
|
namespace: issues
|
||||||
|
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: universal-chart
|
||||||
|
version: "0.1.9"
|
||||||
|
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
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: issues-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/issues:production_17c438aa
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: backend
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
command:
|
||||||
|
_default: ["/bin/sh", "-ec"]
|
||||||
|
args:
|
||||||
|
_default:
|
||||||
|
- |
|
||||||
|
set -a
|
||||||
|
[ -f /vault/secrets/issues-db ] && . /vault/secrets/issues-db
|
||||||
|
[ -f /vault/secrets/issues-rabbitmq ] && . /vault/secrets/issues-rabbitmq
|
||||||
|
[ -f /vault/secrets/issues-s3 ] && . /vault/secrets/issues-s3
|
||||||
|
[ -f /vault/secrets/issues-django-auth ] && . /vault/secrets/issues-django-auth
|
||||||
|
[ -f /vault/secrets/issues-jwt-private ] && export JWT_PRIVATE_KEY="$(cat /vault/secrets/issues-jwt-private)"
|
||||||
|
[ -f /vault/secrets/issues-jwt-public ] && export JWT_PUBLIC_KEY="$(cat /vault/secrets/issues-jwt-public)"
|
||||||
|
set +a
|
||||||
|
exec /src/entrypoint.sh
|
||||||
|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu:
|
||||||
|
_default: 25m
|
||||||
|
memory:
|
||||||
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: backend-svc
|
||||||
|
|
||||||
|
type:
|
||||||
|
_default: ClusterIP
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 80
|
||||||
|
|
||||||
|
targetPort:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
portName:
|
||||||
|
_default: http
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
_default:
|
||||||
|
- name: production-configmap
|
||||||
|
mountPath:
|
||||||
|
_default: /src/config/settings/production.py
|
||||||
|
subPath:
|
||||||
|
_default: production.py
|
||||||
|
readOnly:
|
||||||
|
_default: true
|
||||||
|
configMap:
|
||||||
|
name:
|
||||||
|
_default: production-configmap
|
||||||
|
items:
|
||||||
|
- key: production.py
|
||||||
|
path:
|
||||||
|
_default: production.py
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: ENVIRONMENT
|
||||||
|
value:
|
||||||
|
_default: "production"
|
||||||
|
|
||||||
|
- name: AERO_PUBLIC_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://sarex.contour.infra.sarex.tech"
|
||||||
|
|
||||||
|
- name: AERO_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://sarex.contour.infra.sarex.tech"
|
||||||
|
|
||||||
|
- name: BASE_AERO_URL
|
||||||
|
value:
|
||||||
|
_default: "https://sarex.contour.infra.sarex.tech"
|
||||||
|
|
||||||
|
- name: BASE_AUTH_URL
|
||||||
|
value:
|
||||||
|
_default: "http://backend-svc.django.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-svc.workflow.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_URL
|
||||||
|
value:
|
||||||
|
_default: "http://backend-svc.workflow.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: RESOURCES_API_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-svc.resources.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: EAV_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-svc.eav.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: SAREX_API
|
||||||
|
value:
|
||||||
|
_default: "https://sarex.contour.infra.sarex.tech"
|
||||||
|
|
||||||
|
- name: DOCUMENTATIONS_URL
|
||||||
|
value:
|
||||||
|
_default: "http://documentations-api-svc.documentations.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: DJANGO_SETTINGS_MODULE
|
||||||
|
value:
|
||||||
|
_default: "config.settings.production"
|
||||||
|
|
||||||
|
- name: API_ADDRESS
|
||||||
|
value:
|
||||||
|
_default: "8000"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: issues
|
||||||
|
vault.hashicorp.com/agent-inject-secret-issues-db: secrets/data/postgresql/apps/issues
|
||||||
|
vault.hashicorp.com/agent-inject-template-issues-db: |-
|
||||||
|
{{- with secret "secrets/data/postgresql/apps/issues" -}}
|
||||||
|
DATABASE_PORT=5432
|
||||||
|
DATABASE_HOST=postgresql.issues.svc.cluster.local
|
||||||
|
DATABASE_USER={{ index .Data.data "username" }}
|
||||||
|
DATABASE_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
DATABASE_NAME=issues_db
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-issues-rabbitmq: secrets/data/rabbitmq/apps/issues
|
||||||
|
vault.hashicorp.com/agent-inject-template-issues-rabbitmq: |-
|
||||||
|
{{- with secret "secrets/data/rabbitmq/apps/issues" -}}
|
||||||
|
RABBITMQ_VHOST={{ index .Data.data "vhost" }}
|
||||||
|
RABBITMQ_USERNAME={{ index .Data.data "username" }}
|
||||||
|
RABBITMQ_HOSTNAME=rabbitmq.rabbitmq.svc.cluster.local
|
||||||
|
RABBITMQ_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-issues-s3: secrets/data/minio/apps/issues
|
||||||
|
vault.hashicorp.com/agent-inject-template-issues-s3: |-
|
||||||
|
{{- with secret "secrets/data/minio/apps/issues" -}}
|
||||||
|
YC_S3_ACCESS_KEY_ID={{ index .Data.data "access_key" }}
|
||||||
|
YC_S3_SECRET_ACCESS_KEY={{ index .Data.data "secret_key" }}
|
||||||
|
YC_S3_BUCKET_NAME=rfi
|
||||||
|
YC_S3_ENDPOINT_URL=https://minio.contour.infra.sarex.tech
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-issues-django-auth: secrets/data/vault/common/django_auth
|
||||||
|
vault.hashicorp.com/agent-inject-template-issues-django-auth: |-
|
||||||
|
{{- with secret "secrets/data/vault/common/django_auth" -}}
|
||||||
|
DJANGO_TOKEN={{ index .Data.data "key" }}
|
||||||
|
SAREX_USERNAME={{ index .Data.data "username" }}
|
||||||
|
SAREX_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-issues-jwt-private: secrets/data/vault/common/rsa_keys
|
||||||
|
vault.hashicorp.com/agent-inject-template-issues-jwt-private: |-
|
||||||
|
{{- with secret "secrets/data/vault/common/rsa_keys" -}}
|
||||||
|
{{ index .Data.data "private_key" }}
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-issues-jwt-public: secrets/data/vault/common/rsa_keys
|
||||||
|
vault.hashicorp.com/agent-inject-template-issues-jwt-public: |-
|
||||||
|
{{- with secret "secrets/data/vault/common/rsa_keys" -}}
|
||||||
|
{{ index .Data.data "public_key" }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
@ -1,135 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: celery
|
|
||||||
namespace: issues
|
|
||||||
labels:
|
|
||||||
app: celery
|
|
||||||
service: celery
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: celery
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: celery
|
|
||||||
service: celery
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: issues
|
|
||||||
vault.hashicorp.com/agent-inject-secret-issues-db: secrets/data/postgresql/apps/issues
|
|
||||||
vault.hashicorp.com/agent-inject-template-issues-db: |-
|
|
||||||
{{- with secret "secrets/data/postgresql/apps/issues" -}}
|
|
||||||
DATABASE_PORT=5432
|
|
||||||
DATABASE_HOST=postgresql.issues.svc.cluster.local
|
|
||||||
DATABASE_USER={{ index .Data.data "username" }}
|
|
||||||
DATABASE_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
DATABASE_NAME=issues_db
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-issues-rabbitmq: secrets/data/rabbitmq/apps/issues
|
|
||||||
vault.hashicorp.com/agent-inject-template-issues-rabbitmq: |-
|
|
||||||
{{- with secret "secrets/data/rabbitmq/apps/issues" -}}
|
|
||||||
RABBITMQ_VHOST={{ index .Data.data "vhost" }}
|
|
||||||
RABBITMQ_USERNAME={{ index .Data.data "username" }}
|
|
||||||
RABBITMQ_HOSTNAME=rabbitmq.rabbitmq.svc.cluster.local
|
|
||||||
RABBITMQ_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-issues-s3: secrets/data/minio/apps/issues
|
|
||||||
vault.hashicorp.com/agent-inject-template-issues-s3: |-
|
|
||||||
{{- with secret "secrets/data/minio/apps/issues" -}}
|
|
||||||
YC_S3_ACCESS_KEY_ID={{ index .Data.data "access_key" }}
|
|
||||||
YC_S3_SECRET_ACCESS_KEY={{ index .Data.data "secret_key" }}
|
|
||||||
YC_S3_BUCKET_NAME=rfi
|
|
||||||
YC_S3_ENDPOINT_URL=https://minio.contour.infra.sarex.tech
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-issues-django-auth: secrets/data/vault/common/django_auth
|
|
||||||
vault.hashicorp.com/agent-inject-template-issues-django-auth: |-
|
|
||||||
{{- with secret "secrets/data/vault/common/django_auth" -}}
|
|
||||||
DJANGO_TOKEN={{ index .Data.data "key" }}
|
|
||||||
SAREX_USERNAME={{ index .Data.data "username" }}
|
|
||||||
SAREX_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-issues-jwt-private: secrets/data/vault/common/rsa_keys
|
|
||||||
vault.hashicorp.com/agent-inject-template-issues-jwt-private: |-
|
|
||||||
{{- with secret "secrets/data/vault/common/rsa_keys" -}}
|
|
||||||
{{ index .Data.data "private_key" }}
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-issues-jwt-public: secrets/data/vault/common/rsa_keys
|
|
||||||
vault.hashicorp.com/agent-inject-template-issues-jwt-public: |-
|
|
||||||
{{- with secret "secrets/data/vault/common/rsa_keys" -}}
|
|
||||||
{{ index .Data.data "public_key" }}
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
|
||||||
serviceAccountName: issues-vault
|
|
||||||
volumes:
|
|
||||||
- name: production-configmap
|
|
||||||
configMap:
|
|
||||||
name: production-configmap
|
|
||||||
items:
|
|
||||||
- key: production.py
|
|
||||||
path: production.py
|
|
||||||
defaultMode: 420
|
|
||||||
containers:
|
|
||||||
- name: celery
|
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/issues:production_17c438aa
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
command: ["/bin/sh", "-ec"]
|
|
||||||
args:
|
|
||||||
- |
|
|
||||||
set -a
|
|
||||||
[ -f /vault/secrets/issues-db ] && . /vault/secrets/issues-db
|
|
||||||
[ -f /vault/secrets/issues-rabbitmq ] && . /vault/secrets/issues-rabbitmq
|
|
||||||
[ -f /vault/secrets/issues-s3 ] && . /vault/secrets/issues-s3
|
|
||||||
[ -f /vault/secrets/issues-django-auth ] && . /vault/secrets/issues-django-auth
|
|
||||||
[ -f /vault/secrets/issues-jwt-private ] && export JWT_PRIVATE_KEY="$(cat /vault/secrets/issues-jwt-private)"
|
|
||||||
[ -f /vault/secrets/issues-jwt-public ] && export JWT_PUBLIC_KEY="$(cat /vault/secrets/issues-jwt-public)"
|
|
||||||
set +a
|
|
||||||
exec celery -A config worker -l info -E
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: ENVIRONMENT
|
|
||||||
value: production
|
|
||||||
- name: AERO_PUBLIC_HOST
|
|
||||||
value: https://srx.wb.ru
|
|
||||||
- name: AERO_HOST
|
|
||||||
value: https://srx.wb.ru
|
|
||||||
- name: BASE_AERO_URL
|
|
||||||
value: https://srx.wb.ru
|
|
||||||
- name: BASE_AUTH_URL
|
|
||||||
value: http://backend-svc.django.svc.cluster.local:80
|
|
||||||
- name: WORKFLOWS_HOST
|
|
||||||
value: http://workflows-api-service.workflow.svc.cluster.local:8000
|
|
||||||
- name: WORKFLOWS_URL
|
|
||||||
value: http://workflows-api-service.workflow.svc.cluster.local:8000
|
|
||||||
- name: RESOURCES_API_HOST
|
|
||||||
value: http://backend-svc.resources.svc.cluster.local:80
|
|
||||||
- name: EAV_HOST
|
|
||||||
value: http://backend-svc.eav.svc.cluster.local:80
|
|
||||||
- name: SAREX_API
|
|
||||||
value: https://srx.wb.ru
|
|
||||||
- name: DOCUMENTATIONS_URL
|
|
||||||
value: http://backend-api-svc.documentations.svc.cluster.local:80
|
|
||||||
- name: DJANGO_SETTINGS_MODULE
|
|
||||||
value: config.settings.production
|
|
||||||
- name: API_ADDRESS
|
|
||||||
value: "8000"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: "25m"
|
|
||||||
memory: 128Mi
|
|
||||||
volumeMounts:
|
|
||||||
- name: production-configmap
|
|
||||||
mountPath: /src/config/settings/production.py
|
|
||||||
subPath: production.py
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: regcred
|
|
||||||
222
apps/issues/base/celery.yaml
Normal file
222
apps/issues/base/celery.yaml
Normal file
@ -0,0 +1,222 @@
|
|||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: celery
|
||||||
|
namespace: issues
|
||||||
|
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: universal-chart
|
||||||
|
version: "0.1.9"
|
||||||
|
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:
|
||||||
|
celery:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: issues-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/issues:production_17c438aa
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: celery
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
command:
|
||||||
|
_default: ["/bin/sh", "-ec"]
|
||||||
|
args:
|
||||||
|
_default:
|
||||||
|
- |
|
||||||
|
set -a
|
||||||
|
[ -f /vault/secrets/issues-db ] && . /vault/secrets/issues-db
|
||||||
|
[ -f /vault/secrets/issues-rabbitmq ] && . /vault/secrets/issues-rabbitmq
|
||||||
|
[ -f /vault/secrets/issues-s3 ] && . /vault/secrets/issues-s3
|
||||||
|
[ -f /vault/secrets/issues-django-auth ] && . /vault/secrets/issues-django-auth
|
||||||
|
[ -f /vault/secrets/issues-jwt-private ] && export JWT_PRIVATE_KEY="$(cat /vault/secrets/issues-jwt-private)"
|
||||||
|
[ -f /vault/secrets/issues-jwt-public ] && export JWT_PUBLIC_KEY="$(cat /vault/secrets/issues-jwt-public)"
|
||||||
|
set +a
|
||||||
|
exec celery -A config worker -l info -E
|
||||||
|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu:
|
||||||
|
_default: 25m
|
||||||
|
memory:
|
||||||
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
_default:
|
||||||
|
- name: production-configmap
|
||||||
|
mountPath:
|
||||||
|
_default: /src/config/settings/production.py
|
||||||
|
subPath:
|
||||||
|
_default: production.py
|
||||||
|
readOnly:
|
||||||
|
_default: true
|
||||||
|
configMap:
|
||||||
|
name:
|
||||||
|
_default: production-configmap
|
||||||
|
items:
|
||||||
|
- key: production.py
|
||||||
|
path:
|
||||||
|
_default: production.py
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: ENVIRONMENT
|
||||||
|
value:
|
||||||
|
_default: "production"
|
||||||
|
|
||||||
|
- name: AERO_PUBLIC_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://srx.wb.ru"
|
||||||
|
|
||||||
|
- name: AERO_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://srx.wb.ru"
|
||||||
|
|
||||||
|
- name: BASE_AERO_URL
|
||||||
|
value:
|
||||||
|
_default: "https://srx.wb.ru"
|
||||||
|
|
||||||
|
- name: BASE_AUTH_URL
|
||||||
|
value:
|
||||||
|
_default: "http://backend-svc.django.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://workflows-api-service.workflow.svc.cluster.local:8000"
|
||||||
|
|
||||||
|
- name: WORKFLOWS_URL
|
||||||
|
value:
|
||||||
|
_default: "http://workflows-api-service.workflow.svc.cluster.local:8000"
|
||||||
|
|
||||||
|
- name: RESOURCES_API_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-svc.resources.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: EAV_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-svc.eav.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: SAREX_API
|
||||||
|
value:
|
||||||
|
_default: "https://srx.wb.ru"
|
||||||
|
|
||||||
|
- name: DOCUMENTATIONS_URL
|
||||||
|
value:
|
||||||
|
_default: "http://backend-api-svc.documentations.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: DJANGO_SETTINGS_MODULE
|
||||||
|
value:
|
||||||
|
_default: "config.settings.production"
|
||||||
|
|
||||||
|
- name: API_ADDRESS
|
||||||
|
value:
|
||||||
|
_default: "8000"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: issues
|
||||||
|
vault.hashicorp.com/agent-inject-secret-issues-db: secrets/data/postgresql/apps/issues
|
||||||
|
vault.hashicorp.com/agent-inject-template-issues-db: |-
|
||||||
|
{{- with secret "secrets/data/postgresql/apps/issues" -}}
|
||||||
|
DATABASE_PORT=5432
|
||||||
|
DATABASE_HOST=postgresql.issues.svc.cluster.local
|
||||||
|
DATABASE_USER={{ index .Data.data "username" }}
|
||||||
|
DATABASE_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
DATABASE_NAME=issues_db
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-issues-rabbitmq: secrets/data/rabbitmq/apps/issues
|
||||||
|
vault.hashicorp.com/agent-inject-template-issues-rabbitmq: |-
|
||||||
|
{{- with secret "secrets/data/rabbitmq/apps/issues" -}}
|
||||||
|
RABBITMQ_VHOST={{ index .Data.data "vhost" }}
|
||||||
|
RABBITMQ_USERNAME={{ index .Data.data "username" }}
|
||||||
|
RABBITMQ_HOSTNAME=rabbitmq.rabbitmq.svc.cluster.local
|
||||||
|
RABBITMQ_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-issues-s3: secrets/data/minio/apps/issues
|
||||||
|
vault.hashicorp.com/agent-inject-template-issues-s3: |-
|
||||||
|
{{- with secret "secrets/data/minio/apps/issues" -}}
|
||||||
|
YC_S3_ACCESS_KEY_ID={{ index .Data.data "access_key" }}
|
||||||
|
YC_S3_SECRET_ACCESS_KEY={{ index .Data.data "secret_key" }}
|
||||||
|
YC_S3_BUCKET_NAME=rfi
|
||||||
|
YC_S3_ENDPOINT_URL=https://minio.contour.infra.sarex.tech
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-issues-django-auth: secrets/data/vault/common/django_auth
|
||||||
|
vault.hashicorp.com/agent-inject-template-issues-django-auth: |-
|
||||||
|
{{- with secret "secrets/data/vault/common/django_auth" -}}
|
||||||
|
DJANGO_TOKEN={{ index .Data.data "key" }}
|
||||||
|
SAREX_USERNAME={{ index .Data.data "username" }}
|
||||||
|
SAREX_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-issues-jwt-private: secrets/data/vault/common/rsa_keys
|
||||||
|
vault.hashicorp.com/agent-inject-template-issues-jwt-private: |-
|
||||||
|
{{- with secret "secrets/data/vault/common/rsa_keys" -}}
|
||||||
|
{{ index .Data.data "private_key" }}
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-issues-jwt-public: secrets/data/vault/common/rsa_keys
|
||||||
|
vault.hashicorp.com/agent-inject-template-issues-jwt-public: |-
|
||||||
|
{{- with secret "secrets/data/vault/common/rsa_keys" -}}
|
||||||
|
{{ index .Data.data "public_key" }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
@ -1,32 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: frontend
|
|
||||||
namespace: issues
|
|
||||||
labels:
|
|
||||||
app: frontend
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: frontend
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: frontend
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: frontend
|
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/contour_issues-frontend:716a2b73
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 80
|
|
||||||
protocol: TCP
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 25m
|
|
||||||
memory: 100Mi
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: regcred
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: frontend-svc
|
|
||||||
namespace: issues
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: frontend
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
targetPort: 80
|
|
||||||
protocol: TCP
|
|
||||||
90
apps/issues/base/frontend.yaml
Normal file
90
apps/issues/base/frontend.yaml
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: frontend
|
||||||
|
namespace: issues
|
||||||
|
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: universal-chart
|
||||||
|
version: "0.1.9"
|
||||||
|
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:
|
||||||
|
frontend:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/contour_issues-frontend:716a2b73
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: frontend
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 80
|
||||||
|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu:
|
||||||
|
_default: 25m
|
||||||
|
memory:
|
||||||
|
_default: 100Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: frontend-svc
|
||||||
|
|
||||||
|
type:
|
||||||
|
_default: ClusterIP
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 80
|
||||||
|
|
||||||
|
targetPort:
|
||||||
|
_default: 80
|
||||||
|
|
||||||
|
portName:
|
||||||
|
_default: http
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
@ -4,10 +4,7 @@ kind: Kustomization
|
|||||||
namespace: issues
|
namespace: issues
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- serviceaccount.yaml
|
- backend.yaml
|
||||||
- backend-deployment.yaml
|
- celery.yaml
|
||||||
- celery-deployment.yaml
|
- frontend.yaml
|
||||||
- frontend-deployment.yaml
|
|
||||||
- backend-service.yaml
|
|
||||||
- frontend-service.yaml
|
|
||||||
- production-configmap.yaml
|
- production-configmap.yaml
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: issues-vault
|
|
||||||
namespace: issues
|
|
||||||
10
apps/issues/d8-ugmk-prod/kustomization.yaml
Normal file
10
apps/issues/d8-ugmk-prod/kustomization.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../base
|
||||||
|
patches:
|
||||||
|
- path: namespace.yaml
|
||||||
|
target:
|
||||||
|
kind: Namespace
|
||||||
|
name: issues
|
||||||
8
apps/issues/d8-ugmk-prod/namespace.yaml
Normal file
8
apps/issues/d8-ugmk-prod/namespace.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: issues
|
||||||
|
labels:
|
||||||
|
istio-injection: enabled
|
||||||
|
security.deckhouse.io/pod-policy: privileged
|
||||||
@ -1,53 +1,102 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: backend
|
name: backend
|
||||||
namespace: issues
|
namespace: issues
|
||||||
spec:
|
spec:
|
||||||
template:
|
values:
|
||||||
spec:
|
services:
|
||||||
containers:
|
backend:
|
||||||
- name: backend
|
image:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/issues:production_31aef17b
|
name:
|
||||||
env:
|
_default: cr.yandex/crp3ccidau046kdj8g9q/issues:production_31aef17b
|
||||||
- name: ENABLE_MAILGUN
|
|
||||||
value: 'False'
|
envs:
|
||||||
- name: SMTP_HOST
|
- name: ENVIRONMENT
|
||||||
value: relay.dsinv.ru
|
value:
|
||||||
- name: SMTP_PORT
|
_default: "production"
|
||||||
value: '25'
|
|
||||||
- name: EMAIL_FROM
|
- name: AERO_PUBLIC_HOST
|
||||||
value: sarex@dsinv.ru
|
value:
|
||||||
- name: USE_NOTIFICATIONS
|
_default: "https://sarex.dsinv.ru"
|
||||||
value: 'True'
|
|
||||||
- name: DJANGO_SETTINGS_MODULE
|
- name: AERO_HOST
|
||||||
value: config.settings.production
|
value:
|
||||||
- name: REDIS_HOST
|
_default: "https://sarex.contour.infra.sarex.tech"
|
||||||
value: redis-service.issues.svc.cluster.local
|
|
||||||
- name: DATABASE_HOST
|
- name: BASE_AERO_URL
|
||||||
value: postgres-service.issues.svc.cluster.local
|
value:
|
||||||
- name: DATABASE_PORT
|
_default: "http://backend.django.svc.cluster.local:8000"
|
||||||
value: '5432'
|
|
||||||
- name: DATABASE_NAME
|
- name: BASE_AUTH_URL
|
||||||
value: issues
|
value:
|
||||||
- name: API_ADDRESS
|
_default: "http://backend.django.svc.cluster.local:8000"
|
||||||
value: '8000'
|
|
||||||
- name: ENVIRONMENT
|
- name: WORKFLOWS_HOST
|
||||||
value: production
|
value:
|
||||||
- name: AERO_PUBLIC_HOST
|
_default: "http://workflows-service.workflow.svc.cluster.local:8000"
|
||||||
value: https://sarex.dsinv.ru
|
|
||||||
- name: BASE_AERO_URL
|
- name: WORKFLOWS_URL
|
||||||
value: http://backend.django.svc.cluster.local:8000
|
value:
|
||||||
- name: BASE_AUTH_URL
|
_default: "https://sarex.dsinv.ru"
|
||||||
value: http://backend.django.svc.cluster.local:8000
|
|
||||||
- name: WORKFLOWS_HOST
|
- name: RESOURCES_API_HOST
|
||||||
value: http://workflows-service.workflow.svc.cluster.local:8000
|
value:
|
||||||
- name: WORKFLOWS_URL
|
_default: "http://resources-service.resources.svc.cluster.local:8000"
|
||||||
value: https://sarex.dsinv.ru
|
|
||||||
- name: RESOURCES_API_HOST
|
- name: EAV_HOST
|
||||||
value: http://resources-service.resources.svc.cluster.local:8000
|
value:
|
||||||
- name: EAV_HOST
|
_default: "http://eav-service.eav.svc.cluster.local:8000"
|
||||||
value: http://eav-service.eav.svc.cluster.local:8000
|
|
||||||
- name: SAREX_API
|
- name: SAREX_API
|
||||||
value: http://backend.django.svc.cluster.local:8000
|
value:
|
||||||
|
_default: "http://backend.django.svc.cluster.local:8000"
|
||||||
|
|
||||||
|
- name: DOCUMENTATIONS_URL
|
||||||
|
value:
|
||||||
|
_default: "http://documentations-api-svc.documentations.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: DJANGO_SETTINGS_MODULE
|
||||||
|
value:
|
||||||
|
_default: "config.settings.production"
|
||||||
|
|
||||||
|
- name: API_ADDRESS
|
||||||
|
value:
|
||||||
|
_default: "8000"
|
||||||
|
|
||||||
|
- name: ENABLE_MAILGUN
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SMTP_HOST
|
||||||
|
value:
|
||||||
|
_default: "relay.dsinv.ru"
|
||||||
|
|
||||||
|
- name: SMTP_PORT
|
||||||
|
value:
|
||||||
|
_default: "25"
|
||||||
|
|
||||||
|
- name: EMAIL_FROM
|
||||||
|
value:
|
||||||
|
_default: "sarex@dsinv.ru"
|
||||||
|
|
||||||
|
- name: USE_NOTIFICATIONS
|
||||||
|
value:
|
||||||
|
_default: "True"
|
||||||
|
|
||||||
|
- name: REDIS_HOST
|
||||||
|
value:
|
||||||
|
_default: "redis-service.issues.svc.cluster.local"
|
||||||
|
|
||||||
|
- name: DATABASE_HOST
|
||||||
|
value:
|
||||||
|
_default: "postgres-service.issues.svc.cluster.local"
|
||||||
|
|
||||||
|
- name: DATABASE_PORT
|
||||||
|
value:
|
||||||
|
_default: "5432"
|
||||||
|
|
||||||
|
- name: DATABASE_NAME
|
||||||
|
value:
|
||||||
|
_default: "issues"
|
||||||
|
|||||||
@ -1,57 +1,110 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: celery
|
name: celery
|
||||||
namespace: issues
|
namespace: issues
|
||||||
spec:
|
spec:
|
||||||
template:
|
values:
|
||||||
spec:
|
services:
|
||||||
containers:
|
celery:
|
||||||
- name: celery
|
image:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/issues:production_31aef17b
|
name:
|
||||||
env:
|
_default: cr.yandex/crp3ccidau046kdj8g9q/issues:production_31aef17b
|
||||||
- name: KAFKA_EAV_ASSETS_TOPIC
|
|
||||||
value: sarex
|
envs:
|
||||||
- name: AERO_PUBLIC_HOST
|
- name: ENVIRONMENT
|
||||||
value: https://sarex.dsinv.ru
|
value:
|
||||||
- name: ENABLE_MAILGUN
|
_default: "production"
|
||||||
value: 'False'
|
|
||||||
- name: SMTP_HOST
|
- name: AERO_PUBLIC_HOST
|
||||||
value: relay.dsinv.ru
|
value:
|
||||||
- name: SMTP_PORT
|
_default: "https://sarex.dsinv.ru"
|
||||||
value: '25'
|
|
||||||
- name: EMAIL_FROM
|
- name: AERO_HOST
|
||||||
value: sarex@dsinv.ru
|
value:
|
||||||
- name: REDIS_HOST
|
_default: "https://sarex.dsinv.ru"
|
||||||
value: redis-service.issues.svc.cluster.local
|
|
||||||
- name: DATABASE_HOST
|
- name: BASE_AERO_URL
|
||||||
value: postgres-service.issues.svc.cluster.local
|
value:
|
||||||
- name: DATABASE_PORT
|
_default: "http://backend.django.svc.cluster.local:8000"
|
||||||
value: '5432'
|
|
||||||
- name: DATABASE_NAME
|
- name: BASE_AUTH_URL
|
||||||
value: issues
|
value:
|
||||||
- name: USE_NOTIFICATIONS
|
_default: "https://sarex.dsinv.ru"
|
||||||
value: 'True'
|
|
||||||
- name: API_ADDRESS
|
- name: WORKFLOWS_HOST
|
||||||
value: '8000'
|
value:
|
||||||
- name: YC_S3_VERIFY
|
_default: "http://workflows-service.workflow.svc.cluster.local:8000"
|
||||||
value: 'False'
|
|
||||||
- name: ENVIRONMENT
|
- name: WORKFLOWS_URL
|
||||||
value: production
|
value:
|
||||||
- name: AERO_HOST
|
_default: "https://sarex.dsinv.ru"
|
||||||
value: https://sarex.dsinv.ru
|
|
||||||
- name: BASE_AERO_URL
|
- name: RESOURCES_API_HOST
|
||||||
value: http://backend.django.svc.cluster.local:8000
|
value:
|
||||||
- name: BASE_AUTH_URL
|
_default: "http://resources-service.resources.svc.cluster.local:8000"
|
||||||
value: https://sarex.dsinv.ru
|
|
||||||
- name: WORKFLOWS_HOST
|
- name: EAV_HOST
|
||||||
value: http://workflows-service.workflow.svc.cluster.local:8000
|
value:
|
||||||
- name: WORKFLOWS_URL
|
_default: "http://eav-service.eav.svc.cluster.local:8000"
|
||||||
value: https://sarex.dsinv.ru
|
|
||||||
- name: RESOURCES_API_HOST
|
- name: SAREX_API
|
||||||
value: http://resources-service.resources.svc.cluster.local:8000
|
value:
|
||||||
- name: EAV_HOST
|
_default: "http://backend.django.svc.cluster.local:8000"
|
||||||
value: http://eav-service.eav.svc.cluster.local:8000
|
|
||||||
- name: SAREX_API
|
- name: DOCUMENTATIONS_URL
|
||||||
value: http://backend.django.svc.cluster.local:8000
|
value:
|
||||||
|
_default: "http://backend-api-svc.documentations.svc.cluster.local:80"
|
||||||
|
|
||||||
|
- name: DJANGO_SETTINGS_MODULE
|
||||||
|
value:
|
||||||
|
_default: "config.settings.production"
|
||||||
|
|
||||||
|
- name: API_ADDRESS
|
||||||
|
value:
|
||||||
|
_default: "8000"
|
||||||
|
|
||||||
|
- name: KAFKA_EAV_ASSETS_TOPIC
|
||||||
|
value:
|
||||||
|
_default: "sarex"
|
||||||
|
|
||||||
|
- name: ENABLE_MAILGUN
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SMTP_HOST
|
||||||
|
value:
|
||||||
|
_default: "relay.dsinv.ru"
|
||||||
|
|
||||||
|
- name: SMTP_PORT
|
||||||
|
value:
|
||||||
|
_default: "25"
|
||||||
|
|
||||||
|
- name: EMAIL_FROM
|
||||||
|
value:
|
||||||
|
_default: "sarex@dsinv.ru"
|
||||||
|
|
||||||
|
- name: REDIS_HOST
|
||||||
|
value:
|
||||||
|
_default: "redis-service.issues.svc.cluster.local"
|
||||||
|
|
||||||
|
- name: DATABASE_HOST
|
||||||
|
value:
|
||||||
|
_default: "postgres-service.issues.svc.cluster.local"
|
||||||
|
|
||||||
|
- name: DATABASE_PORT
|
||||||
|
value:
|
||||||
|
_default: "5432"
|
||||||
|
|
||||||
|
- name: DATABASE_NAME
|
||||||
|
value:
|
||||||
|
_default: "issues"
|
||||||
|
|
||||||
|
- name: USE_NOTIFICATIONS
|
||||||
|
value:
|
||||||
|
_default: "True"
|
||||||
|
|
||||||
|
- name: YC_S3_VERIFY
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|||||||
@ -1,12 +1,13 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: frontend
|
name: frontend
|
||||||
namespace: issues
|
namespace: issues
|
||||||
spec:
|
spec:
|
||||||
template:
|
values:
|
||||||
spec:
|
services:
|
||||||
containers:
|
frontend:
|
||||||
- name: frontend
|
image:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/contour_issues-frontend:24ab8d2b
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/contour_issues-frontend:24ab8d2b
|
||||||
|
|||||||
@ -7,13 +7,13 @@ resources:
|
|||||||
patches:
|
patches:
|
||||||
- path: backend.yaml
|
- path: backend.yaml
|
||||||
target:
|
target:
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
name: backend
|
name: backend
|
||||||
- path: celery.yaml
|
- path: celery.yaml
|
||||||
target:
|
target:
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
name: celery
|
name: celery
|
||||||
- path: frontend.yaml
|
- path: frontend.yaml
|
||||||
target:
|
target:
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
name: frontend
|
name: frontend
|
||||||
|
|||||||
@ -4,5 +4,5 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: mapper
|
name: mapper
|
||||||
labels:
|
labels:
|
||||||
istio-injection: disabled
|
istio-injection: enabled
|
||||||
security.deckhouse.io/pod-policy: privileged
|
security.deckhouse.io/pod-policy: privileged
|
||||||
|
|||||||
@ -4,5 +4,5 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: measurements
|
name: measurements
|
||||||
labels:
|
labels:
|
||||||
istio-injection: disabled
|
istio-injection: enabled
|
||||||
security.deckhouse.io/pod-policy: privileged
|
security.deckhouse.io/pod-policy: privileged
|
||||||
|
|||||||
@ -1,96 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: message-hub
|
|
||||||
namespace: message-hub
|
|
||||||
labels:
|
|
||||||
app: message-hub
|
|
||||||
service: message-hub
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: message-hub
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: message-hub
|
|
||||||
service: message-hub
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: message-hub
|
|
||||||
vault.hashicorp.com/agent-inject-secret-message-hub-db: secrets/data/postgresql/apps/message-hub
|
|
||||||
vault.hashicorp.com/agent-inject-template-message-hub-db: |-
|
|
||||||
{{- with secret "secrets/data/postgresql/apps/message-hub" -}}
|
|
||||||
DB_USERNAME={{ index .Data.data "username" }}
|
|
||||||
DB_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
DB_DATABASE=pm_db
|
|
||||||
DB_HOST=postgresql.pm.svc.cluster.local
|
|
||||||
DB_PORT=5432
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-message-hub-s3: secrets/data/minio/apps/message-hub
|
|
||||||
vault.hashicorp.com/agent-inject-template-message-hub-s3: |-
|
|
||||||
{{- with secret "secrets/data/minio/apps/message-hub" -}}
|
|
||||||
S3_HOST={{ index .Data.data.client "endpoint" }}
|
|
||||||
S3_LOGIN={{ index .Data.data "access_key" }}
|
|
||||||
S3_PASSWORD={{ index .Data.data "secret_key" }}
|
|
||||||
{{- $buckets := index .Data.data "buckets" }}
|
|
||||||
S3_BUCKET={{- if gt (len $buckets) 0 -}}{{ index (index $buckets 0) "name" }}{{- else -}}rfi{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-message-hub-kafka: secrets/data/kafka/apps/message-hub
|
|
||||||
vault.hashicorp.com/agent-inject-template-message-hub-kafka: |-
|
|
||||||
{{- with secret "secrets/data/kafka/apps/message-hub" -}}
|
|
||||||
KAFKA_USERNAME={{ index .Data.data "username" }}
|
|
||||||
KAFKA_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
KAFKA_HOST=kafka-kafka-contour-controller-headless.kafka.svc.cluster.local
|
|
||||||
KAFKA_PORT=9094
|
|
||||||
KAFKA_SECURITY_PROTOCOL={{ index .Data.data.auth "security_protocol" }}
|
|
||||||
KAFKA_SASL_MECHANISM={{ index .Data.data.auth "sasl_mechanism" }}
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
|
||||||
serviceAccountName: message-hub-vault
|
|
||||||
containers:
|
|
||||||
- name: message-hub
|
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/message-hub:production_24425472
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
command: ["/bin/bash", "-ec"]
|
|
||||||
args:
|
|
||||||
- |
|
|
||||||
set -a
|
|
||||||
[ -f /vault/secrets/message-hub-db ] && . /vault/secrets/message-hub-db
|
|
||||||
[ -f /vault/secrets/message-hub-s3 ] && . /vault/secrets/message-hub-s3
|
|
||||||
[ -f /vault/secrets/message-hub-kafka ] && . /vault/secrets/message-hub-kafka
|
|
||||||
set +a
|
|
||||||
exec /opt/entrypoint.sh
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: WORKER_TIMEOUT
|
|
||||||
value: "60"
|
|
||||||
- name: PYTHONPATH
|
|
||||||
value: src
|
|
||||||
- name: SETTINGS_MAX_RETRIES
|
|
||||||
value: "1"
|
|
||||||
- name: SETTINGS_TOPICS
|
|
||||||
value: '{"planning": "pm", "assets": "assets_broadcast", "project_entity": "issues_broadcast"}'
|
|
||||||
- name: SETTINGS_PDF_CONVERTER_HOST
|
|
||||||
value: http://export-project-service.django.svc.cluster.local:8000
|
|
||||||
- name: SAREX_BASE_HOST
|
|
||||||
value: http://backend-service.pm.svc.cluster.local:8000
|
|
||||||
- name: CACHE_HOST
|
|
||||||
value: redis.pm.svc.cluster.local
|
|
||||||
- name: CACHE_PORT
|
|
||||||
value: "6379"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: "25m"
|
|
||||||
memory: 128Mi
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: regcred
|
|
||||||
@ -4,6 +4,4 @@ kind: Kustomization
|
|||||||
namespace: message-hub
|
namespace: message-hub
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- serviceaccount.yaml
|
- message-hub.yaml
|
||||||
- deployment.yaml
|
|
||||||
- service.yaml
|
|
||||||
|
|||||||
183
apps/message-hub/base/message-hub.yaml
Normal file
183
apps/message-hub/base/message-hub.yaml
Normal file
@ -0,0 +1,183 @@
|
|||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: message-hub
|
||||||
|
namespace: message-hub
|
||||||
|
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: universal-chart
|
||||||
|
version: "0.1.9"
|
||||||
|
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
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: message-hub-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/message-hub:production_24425472
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: message-hub
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
command:
|
||||||
|
_default: ["/bin/bash", "-ec"]
|
||||||
|
args:
|
||||||
|
_default:
|
||||||
|
- |
|
||||||
|
set -a
|
||||||
|
[ -f /vault/secrets/message-hub-db ] && . /vault/secrets/message-hub-db
|
||||||
|
[ -f /vault/secrets/message-hub-s3 ] && . /vault/secrets/message-hub-s3
|
||||||
|
[ -f /vault/secrets/message-hub-kafka ] && . /vault/secrets/message-hub-kafka
|
||||||
|
set +a
|
||||||
|
exec /opt/entrypoint.sh
|
||||||
|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu:
|
||||||
|
_default: 25m
|
||||||
|
memory:
|
||||||
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: message-hub-svc
|
||||||
|
|
||||||
|
type:
|
||||||
|
_default: ClusterIP
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 80
|
||||||
|
|
||||||
|
targetPort:
|
||||||
|
_default: 80
|
||||||
|
|
||||||
|
portName:
|
||||||
|
_default: http
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: WORKER_TIMEOUT
|
||||||
|
value:
|
||||||
|
_default: "60"
|
||||||
|
|
||||||
|
- name: PYTHONPATH
|
||||||
|
value:
|
||||||
|
_default: "src"
|
||||||
|
|
||||||
|
- name: SETTINGS_MAX_RETRIES
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: SETTINGS_TOPICS
|
||||||
|
value:
|
||||||
|
_default: '{"planning": "pm", "assets": "assets_broadcast", "project_entity": "issues_broadcast"}'
|
||||||
|
|
||||||
|
- name: SETTINGS_PDF_CONVERTER_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://export-project-service.django.svc.cluster.local:8000"
|
||||||
|
|
||||||
|
- name: SAREX_BASE_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-service.pm.svc.cluster.local:8000"
|
||||||
|
|
||||||
|
- name: CACHE_HOST
|
||||||
|
value:
|
||||||
|
_default: "redis.pm.svc.cluster.local"
|
||||||
|
|
||||||
|
- name: CACHE_PORT
|
||||||
|
value:
|
||||||
|
_default: "6379"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: message-hub
|
||||||
|
vault.hashicorp.com/agent-inject-secret-message-hub-db: secrets/data/postgresql/apps/message-hub
|
||||||
|
vault.hashicorp.com/agent-inject-template-message-hub-db: |-
|
||||||
|
{{- with secret "secrets/data/postgresql/apps/message-hub" -}}
|
||||||
|
DB_USERNAME={{ index .Data.data "username" }}
|
||||||
|
DB_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
DB_DATABASE=pm_db
|
||||||
|
DB_HOST=postgresql.pm.svc.cluster.local
|
||||||
|
DB_PORT=5432
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-message-hub-s3: secrets/data/minio/apps/message-hub
|
||||||
|
vault.hashicorp.com/agent-inject-template-message-hub-s3: |-
|
||||||
|
{{- with secret "secrets/data/minio/apps/message-hub" -}}
|
||||||
|
S3_HOST={{ index .Data.data.client "endpoint" }}
|
||||||
|
S3_LOGIN={{ index .Data.data "access_key" }}
|
||||||
|
S3_PASSWORD={{ index .Data.data "secret_key" }}
|
||||||
|
{{- $buckets := index .Data.data "buckets" }}
|
||||||
|
S3_BUCKET={{- if gt (len $buckets) 0 -}}{{ index (index $buckets 0) "name" }}{{- else -}}rfi{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-message-hub-kafka: secrets/data/kafka/apps/message-hub
|
||||||
|
vault.hashicorp.com/agent-inject-template-message-hub-kafka: |-
|
||||||
|
{{- with secret "secrets/data/kafka/apps/message-hub" -}}
|
||||||
|
KAFKA_USERNAME={{ index .Data.data "username" }}
|
||||||
|
KAFKA_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
KAFKA_HOST=kafka-kafka-contour-controller-headless.kafka.svc.cluster.local
|
||||||
|
KAFKA_PORT=9094
|
||||||
|
KAFKA_SECURITY_PROTOCOL={{ index .Data.data.auth "security_protocol" }}
|
||||||
|
KAFKA_SASL_MECHANISM={{ index .Data.data.auth "sasl_mechanism" }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: message-hub-svc
|
|
||||||
namespace: message-hub
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: message-hub
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
targetPort: 80
|
|
||||||
protocol: TCP
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: message-hub-vault
|
|
||||||
namespace: message-hub
|
|
||||||
10
apps/message-hub/d8-ugmk-prod/kustomization.yaml
Normal file
10
apps/message-hub/d8-ugmk-prod/kustomization.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../base
|
||||||
|
patches:
|
||||||
|
- path: namespace.yaml
|
||||||
|
target:
|
||||||
|
kind: Namespace
|
||||||
|
name: message-hub
|
||||||
8
apps/message-hub/d8-ugmk-prod/namespace.yaml
Normal file
8
apps/message-hub/d8-ugmk-prod/namespace.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: message-hub
|
||||||
|
labels:
|
||||||
|
istio-injection: enabled
|
||||||
|
security.deckhouse.io/pod-policy: privileged
|
||||||
@ -7,5 +7,5 @@ resources:
|
|||||||
patches:
|
patches:
|
||||||
- path: message-hub.yaml
|
- path: message-hub.yaml
|
||||||
target:
|
target:
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
name: message-hub
|
name: message-hub
|
||||||
|
|||||||
@ -1,49 +1,90 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: message-hub
|
name: message-hub
|
||||||
namespace: message-hub
|
namespace: message-hub
|
||||||
spec:
|
spec:
|
||||||
template:
|
values:
|
||||||
spec:
|
services:
|
||||||
containers:
|
backend:
|
||||||
- name: message-hub
|
image:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/message-hub:production_d11aa910
|
name:
|
||||||
env:
|
_default: cr.yandex/crp3ccidau046kdj8g9q/message-hub:production_d11aa910
|
||||||
- name: WORKER_TIMEOUT
|
|
||||||
value: '60'
|
envs:
|
||||||
- name: PYTHONPATH
|
- name: WORKER_TIMEOUT
|
||||||
value: src
|
value:
|
||||||
- name: SETTINGS_MAX_RETRIES
|
_default: "60"
|
||||||
value: '1'
|
|
||||||
- name: SETTINGS_TOPICS
|
- name: PYTHONPATH
|
||||||
value: '{"planning": "message-hub-prod", "assets":"assets_broadcast","issues": "issues_broadcast_prod"}'
|
value:
|
||||||
- name: PDF_CONVERTER_HOST
|
_default: "src"
|
||||||
value: http://export-project-service.django.svc.cluster.local:8000
|
|
||||||
- name: SAREX_BASE_HOST
|
- name: SETTINGS_MAX_RETRIES
|
||||||
value: http://backend-service.pm.svc.cluster.local:8000
|
value:
|
||||||
- name: PM_HOST
|
_default: "1"
|
||||||
value: http://backend-service.pm.svc.cluster.local:8000
|
|
||||||
- name: DB_HOST
|
- name: SETTINGS_TOPICS
|
||||||
value: postgres-service.pm.svc.cluster.local
|
value:
|
||||||
- name: DB_PORT
|
_default: '{"planning": "message-hub-prod", "assets":"assets_broadcast","issues": "issues_broadcast_prod"}'
|
||||||
value: '5432'
|
|
||||||
- name: DB_DATABASE
|
- name: SETTINGS_PDF_CONVERTER_HOST
|
||||||
value: pm
|
value:
|
||||||
- name: CACHE_HOST
|
_default: "http://export-project-service.django.svc.cluster.local:8000"
|
||||||
value: redis.pm.svc.cluster.local
|
|
||||||
- name: CACHE_PORT
|
- name: SAREX_BASE_HOST
|
||||||
value: '6379'
|
value:
|
||||||
- name: CACHE_SSL
|
_default: "http://backend-service.pm.svc.cluster.local:8000"
|
||||||
value: '0'
|
|
||||||
- name: KAFKA_HOST
|
- name: CACHE_HOST
|
||||||
value: donstroi-kafka-bootstrap.kafka.svc.cluster.local
|
value:
|
||||||
- name: KAFKA_PORT
|
_default: "redis.pm.svc.cluster.local"
|
||||||
value: '9093'
|
|
||||||
- name: KAFKA_SECURITY_PROTOCOL
|
- name: CACHE_PORT
|
||||||
value: SSL
|
value:
|
||||||
- name: KAFKA_SASL_MECHANISM
|
_default: "6379"
|
||||||
value: PLAIN
|
|
||||||
- name: KAFKA_SSL_CAFILE
|
- name: PDF_CONVERTER_HOST
|
||||||
value: /usr/local/share/ca-certificates/kafka.crt
|
value:
|
||||||
|
_default: "http://export-project-service.django.svc.cluster.local:8000"
|
||||||
|
|
||||||
|
- name: PM_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-service.pm.svc.cluster.local:8000"
|
||||||
|
|
||||||
|
- name: DB_HOST
|
||||||
|
value:
|
||||||
|
_default: "postgres-service.pm.svc.cluster.local"
|
||||||
|
|
||||||
|
- name: DB_PORT
|
||||||
|
value:
|
||||||
|
_default: "5432"
|
||||||
|
|
||||||
|
- name: DB_DATABASE
|
||||||
|
value:
|
||||||
|
_default: "pm"
|
||||||
|
|
||||||
|
- name: CACHE_SSL
|
||||||
|
value:
|
||||||
|
_default: "0"
|
||||||
|
|
||||||
|
- name: KAFKA_HOST
|
||||||
|
value:
|
||||||
|
_default: "donstroi-kafka-bootstrap.kafka.svc.cluster.local"
|
||||||
|
|
||||||
|
- name: KAFKA_PORT
|
||||||
|
value:
|
||||||
|
_default: "9093"
|
||||||
|
|
||||||
|
- name: KAFKA_SECURITY_PROTOCOL
|
||||||
|
value:
|
||||||
|
_default: "SSL"
|
||||||
|
|
||||||
|
- name: KAFKA_SASL_MECHANISM
|
||||||
|
value:
|
||||||
|
_default: "PLAIN"
|
||||||
|
|
||||||
|
- name: KAFKA_SSL_CAFILE
|
||||||
|
value:
|
||||||
|
_default: "/usr/local/share/ca-certificates/kafka.crt"
|
||||||
|
|||||||
@ -1,132 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: backend
|
|
||||||
namespace: pm
|
|
||||||
labels:
|
|
||||||
app: backend
|
|
||||||
service: api
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: backend
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: backend
|
|
||||||
service: api
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: pm
|
|
||||||
vault.hashicorp.com/agent-inject-secret-pm-db: secrets/data/postgresql/apps/pm
|
|
||||||
vault.hashicorp.com/agent-inject-template-pm-db: |-
|
|
||||||
{{- with secret "secrets/data/postgresql/apps/pm" -}}
|
|
||||||
DB_USERNAME={{ index .Data.data "username" }}
|
|
||||||
DB_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
DB_DATABASE=pm_db
|
|
||||||
DB_HOST=postgresql.pm.svc.cluster.local
|
|
||||||
DB_PORT=5432
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-pm-rabbitmq: secrets/data/rabbitmq/apps/pm
|
|
||||||
vault.hashicorp.com/agent-inject-template-pm-rabbitmq: |-
|
|
||||||
{{- with secret "secrets/data/rabbitmq/apps/pm" -}}
|
|
||||||
CELERY_RABBITMQ_HOST=rabbitmq.rabbitmq.svc.cluster.local
|
|
||||||
CELERY_RABBITMQ_PORT=5672
|
|
||||||
CELERY_RABBITMQ_USER={{ index .Data.data "username" }}
|
|
||||||
CELERY_RABBITMQ_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
CELERY_RABBITMQ_VHOST={{ index .Data.data "vhost" }}
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-pm-s3: secrets/data/minio/apps/pm
|
|
||||||
vault.hashicorp.com/agent-inject-template-pm-s3: |-
|
|
||||||
{{- with secret "secrets/data/minio/apps/pm" -}}
|
|
||||||
S3_HOST={{ index .Data.data.client "endpoint" }}
|
|
||||||
S3_LOGIN={{ index .Data.data "access_key" }}
|
|
||||||
S3_PASSWORD={{ index .Data.data "secret_key" }}
|
|
||||||
{{- $buckets := index .Data.data "buckets" }}
|
|
||||||
S3_BUCKET={{- if gt (len $buckets) 0 -}}{{ index (index $buckets 0) "name" }}{{- else -}}pm-bucket{{- end -}}
|
|
||||||
S3_VERIFY=False
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
|
||||||
serviceAccountName: pm-vault
|
|
||||||
containers:
|
|
||||||
- name: api
|
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/pm-backend:production_0843a55d
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
command: ["/bin/bash", "-ec"]
|
|
||||||
args:
|
|
||||||
- |
|
|
||||||
set -a
|
|
||||||
[ -f /vault/secrets/pm-db ] && . /vault/secrets/pm-db
|
|
||||||
[ -f /vault/secrets/pm-rabbitmq ] && . /vault/secrets/pm-rabbitmq
|
|
||||||
[ -f /vault/secrets/pm-s3 ] && . /vault/secrets/pm-s3
|
|
||||||
set +a
|
|
||||||
exec /opt/sarex/entrypoint.sh
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: USERS_INTERNAL_HOST
|
|
||||||
value: http://backend-service.sarex.svc.cluster.local:8000
|
|
||||||
- name: CELERY_REDIS_HOST
|
|
||||||
value: redis.pm.svc.cluster.local
|
|
||||||
- name: RESOURCES_INTERNAL_HOST
|
|
||||||
value: http://sarex-resources-service.resources
|
|
||||||
- name: EAV_HOST
|
|
||||||
value: http://eav-service.eav
|
|
||||||
- name: EAV_API_PREFIX
|
|
||||||
value: /api/v0
|
|
||||||
- name: EAV_API_PREFIX_V1
|
|
||||||
value: /api/v1
|
|
||||||
- name: TRACING_INSECURE
|
|
||||||
value: "False"
|
|
||||||
- name: SERVER_ENABLE_SYNC_RESOURCES
|
|
||||||
value: "True"
|
|
||||||
- name: SERVER_DELETED_TASK_MAX_AGE_DAYS
|
|
||||||
value: "1"
|
|
||||||
- name: SERVER_EXPIRED_TASK_NOTIFICATION_HOUR
|
|
||||||
value: "17"
|
|
||||||
- name: LANG
|
|
||||||
value: C.UTF-8
|
|
||||||
- name: LC_ALL
|
|
||||||
value: C.UTF-8
|
|
||||||
- name: PYTHONUTF8
|
|
||||||
value: "1"
|
|
||||||
- name: CACHE_SSL
|
|
||||||
value: "False"
|
|
||||||
- name: CACHE_SSL_CA_CERTS
|
|
||||||
value: ""
|
|
||||||
- name: CACHE_ENABLE
|
|
||||||
value: "False"
|
|
||||||
- name: CLICKHOUSE_ENABLE
|
|
||||||
value: "False"
|
|
||||||
- name: KAFKA_ENABLE
|
|
||||||
value: "False"
|
|
||||||
- name: AUTH_PUBLIC_TOKEN_URL
|
|
||||||
value: "https://lk.sarex.io/api/token/public/"
|
|
||||||
- name: SERVER_HOST
|
|
||||||
value: "https://lk.sarex.io"
|
|
||||||
- name: SERVER_API_HOST
|
|
||||||
value: "https://api.sarex.io"
|
|
||||||
- name: SERVER_DEBUG
|
|
||||||
value: "False"
|
|
||||||
- name: SERVER_ALLOWED_HOSTS
|
|
||||||
value: '["*"]'
|
|
||||||
- name: SERVER_USE_OTEL
|
|
||||||
value: "False"
|
|
||||||
- name: SERVER_VERIFY_SSL
|
|
||||||
value: "False"
|
|
||||||
- name: SERVER_LOG_LEVEL
|
|
||||||
value: "INFO"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: "25m"
|
|
||||||
memory: 128Mi
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: regcred
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: backend-svc
|
|
||||||
namespace: pm
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: backend
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 8000
|
|
||||||
targetPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
255
apps/pm/base/backend.yaml
Normal file
255
apps/pm/base/backend.yaml
Normal file
@ -0,0 +1,255 @@
|
|||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: backend
|
||||||
|
namespace: pm
|
||||||
|
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: universal-chart
|
||||||
|
version: "0.1.9"
|
||||||
|
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
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: pm-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/pm-backend:production_0843a55d
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: backend
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
command:
|
||||||
|
_default: ["/bin/bash", "-ec"]
|
||||||
|
args:
|
||||||
|
_default:
|
||||||
|
- |
|
||||||
|
set -a
|
||||||
|
[ -f /vault/secrets/pm-db ] && . /vault/secrets/pm-db
|
||||||
|
[ -f /vault/secrets/pm-rabbitmq ] && . /vault/secrets/pm-rabbitmq
|
||||||
|
[ -f /vault/secrets/pm-s3 ] && . /vault/secrets/pm-s3
|
||||||
|
set +a
|
||||||
|
exec /opt/sarex/entrypoint.sh
|
||||||
|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu:
|
||||||
|
_default: 25m
|
||||||
|
memory:
|
||||||
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: backend-svc
|
||||||
|
|
||||||
|
type:
|
||||||
|
_default: ClusterIP
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
targetPort:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
portName:
|
||||||
|
_default: http
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: USERS_INTERNAL_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-service.sarex.svc.cluster.local:8000"
|
||||||
|
|
||||||
|
- name: CELERY_REDIS_HOST
|
||||||
|
value:
|
||||||
|
_default: "redis.pm.svc.cluster.local"
|
||||||
|
|
||||||
|
- name: RESOURCES_INTERNAL_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://sarex-resources-service.resources"
|
||||||
|
|
||||||
|
- name: EAV_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://eav-service.eav"
|
||||||
|
|
||||||
|
- name: EAV_API_PREFIX
|
||||||
|
value:
|
||||||
|
_default: "/api/v0"
|
||||||
|
|
||||||
|
- name: EAV_API_PREFIX_V1
|
||||||
|
value:
|
||||||
|
_default: "/api/v1"
|
||||||
|
|
||||||
|
- name: TRACING_INSECURE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_ENABLE_SYNC_RESOURCES
|
||||||
|
value:
|
||||||
|
_default: "True"
|
||||||
|
|
||||||
|
- name: SERVER_DELETED_TASK_MAX_AGE_DAYS
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: SERVER_EXPIRED_TASK_NOTIFICATION_HOUR
|
||||||
|
value:
|
||||||
|
_default: "17"
|
||||||
|
|
||||||
|
- name: LANG
|
||||||
|
value:
|
||||||
|
_default: "C.UTF-8"
|
||||||
|
|
||||||
|
- name: LC_ALL
|
||||||
|
value:
|
||||||
|
_default: "C.UTF-8"
|
||||||
|
|
||||||
|
- name: PYTHONUTF8
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: CACHE_SSL
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: CACHE_SSL_CA_CERTS
|
||||||
|
value:
|
||||||
|
_default: ""
|
||||||
|
|
||||||
|
- name: CACHE_ENABLE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: CLICKHOUSE_ENABLE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: KAFKA_ENABLE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: AUTH_PUBLIC_TOKEN_URL
|
||||||
|
value:
|
||||||
|
_default: "https://lk.sarex.io/api/token/public/"
|
||||||
|
|
||||||
|
- name: SERVER_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://lk.sarex.io"
|
||||||
|
|
||||||
|
- name: SERVER_API_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://api.sarex.io"
|
||||||
|
|
||||||
|
- name: SERVER_DEBUG
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_ALLOWED_HOSTS
|
||||||
|
value:
|
||||||
|
_default: '["*"]'
|
||||||
|
|
||||||
|
- name: SERVER_USE_OTEL
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_VERIFY_SSL
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_LOG_LEVEL
|
||||||
|
value:
|
||||||
|
_default: "INFO"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: pm
|
||||||
|
vault.hashicorp.com/agent-inject-secret-pm-db: secrets/data/postgresql/apps/pm
|
||||||
|
vault.hashicorp.com/agent-inject-template-pm-db: |-
|
||||||
|
{{- with secret "secrets/data/postgresql/apps/pm" -}}
|
||||||
|
DB_USERNAME={{ index .Data.data "username" }}
|
||||||
|
DB_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
DB_DATABASE=pm_db
|
||||||
|
DB_HOST=postgresql.pm.svc.cluster.local
|
||||||
|
DB_PORT=5432
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-pm-rabbitmq: secrets/data/rabbitmq/apps/pm
|
||||||
|
vault.hashicorp.com/agent-inject-template-pm-rabbitmq: |-
|
||||||
|
{{- with secret "secrets/data/rabbitmq/apps/pm" -}}
|
||||||
|
CELERY_RABBITMQ_HOST=rabbitmq.rabbitmq.svc.cluster.local
|
||||||
|
CELERY_RABBITMQ_PORT=5672
|
||||||
|
CELERY_RABBITMQ_USER={{ index .Data.data "username" }}
|
||||||
|
CELERY_RABBITMQ_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
CELERY_RABBITMQ_VHOST={{ index .Data.data "vhost" }}
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-pm-s3: secrets/data/minio/apps/pm
|
||||||
|
vault.hashicorp.com/agent-inject-template-pm-s3: |-
|
||||||
|
{{- with secret "secrets/data/minio/apps/pm" -}}
|
||||||
|
S3_HOST={{ index .Data.data.client "endpoint" }}
|
||||||
|
S3_LOGIN={{ index .Data.data "access_key" }}
|
||||||
|
S3_PASSWORD={{ index .Data.data "secret_key" }}
|
||||||
|
{{- $buckets := index .Data.data "buckets" }}
|
||||||
|
S3_BUCKET={{- if gt (len $buckets) 0 -}}{{ index (index $buckets 0) "name" }}{{- else -}}pm-bucket{{- end -}}
|
||||||
|
S3_VERIFY=False
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
@ -1,131 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: celery
|
|
||||||
namespace: pm
|
|
||||||
labels:
|
|
||||||
app: celery
|
|
||||||
service: celery
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: celery
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: celery
|
|
||||||
service: celery
|
|
||||||
annotations:
|
|
||||||
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
|
||||||
vault.hashicorp.com/agent-init-first: "true"
|
|
||||||
vault.hashicorp.com/agent-inject: "true"
|
|
||||||
vault.hashicorp.com/agent-pre-populate-only: "true"
|
|
||||||
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
||||||
vault.hashicorp.com/role: pm
|
|
||||||
vault.hashicorp.com/agent-inject-secret-pm-db: secrets/data/postgresql/apps/pm
|
|
||||||
vault.hashicorp.com/agent-inject-template-pm-db: |-
|
|
||||||
{{- with secret "secrets/data/postgresql/apps/pm" -}}
|
|
||||||
DB_USERNAME={{ index .Data.data "username" }}
|
|
||||||
DB_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
DB_DATABASE=pm_db
|
|
||||||
DB_HOST=postgresql.pm.svc.cluster.local
|
|
||||||
DB_PORT=5432
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-pm-rabbitmq: secrets/data/rabbitmq/apps/pm
|
|
||||||
vault.hashicorp.com/agent-inject-template-pm-rabbitmq: |-
|
|
||||||
{{- with secret "secrets/data/rabbitmq/apps/pm" -}}
|
|
||||||
CELERY_RABBITMQ_HOST=rabbitmq.rabbitmq.svc.cluster.local
|
|
||||||
CELERY_RABBITMQ_PORT=5672
|
|
||||||
CELERY_RABBITMQ_USER={{ index .Data.data "username" }}
|
|
||||||
CELERY_RABBITMQ_PASSWORD={{ index .Data.data "password" }}
|
|
||||||
CELERY_RABBITMQ_VHOST={{ index .Data.data "vhost" }}
|
|
||||||
{{- end -}}
|
|
||||||
vault.hashicorp.com/agent-inject-secret-pm-s3: secrets/data/minio/apps/pm
|
|
||||||
vault.hashicorp.com/agent-inject-template-pm-s3: |-
|
|
||||||
{{- with secret "secrets/data/minio/apps/pm" -}}
|
|
||||||
S3_HOST={{ index .Data.data.client "endpoint" }}
|
|
||||||
S3_LOGIN={{ index .Data.data "access_key" }}
|
|
||||||
S3_PASSWORD={{ index .Data.data "secret_key" }}
|
|
||||||
{{- $buckets := index .Data.data "buckets" }}
|
|
||||||
S3_BUCKET={{- if gt (len $buckets) 0 -}}{{ index (index $buckets 0) "name" }}{{- else -}}pm-bucket{{- end -}}
|
|
||||||
S3_VERIFY=False
|
|
||||||
{{- end -}}
|
|
||||||
spec:
|
|
||||||
serviceAccountName: pm-vault
|
|
||||||
containers:
|
|
||||||
- name: celery
|
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/pm-backend:production_0843a55d
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
command: ["/bin/bash", "-ec"]
|
|
||||||
args:
|
|
||||||
- |
|
|
||||||
set -a
|
|
||||||
[ -f /vault/secrets/pm-db ] && . /vault/secrets/pm-db
|
|
||||||
[ -f /vault/secrets/pm-rabbitmq ] && . /vault/secrets/pm-rabbitmq
|
|
||||||
[ -f /vault/secrets/pm-s3 ] && . /vault/secrets/pm-s3
|
|
||||||
set +a
|
|
||||||
exec celery -A config worker -B -l info -E -Q pm -n default_worker.%h --concurrency=2
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: USERS_INTERNAL_HOST
|
|
||||||
value: http://backend-service.sarex.svc.cluster.local:8000
|
|
||||||
- name: CELERY_REDIS_HOST
|
|
||||||
value: redis.pm.svc.cluster.local
|
|
||||||
- name: RESOURCES_INTERNAL_HOST
|
|
||||||
value: http://sarex-resources-service.resources
|
|
||||||
- name: EAV_HOST
|
|
||||||
value: http://eav-service.eav
|
|
||||||
- name: EAV_API_PREFIX
|
|
||||||
value: /api/v0
|
|
||||||
- name: EAV_API_PREFIX_V1
|
|
||||||
value: /api/v1
|
|
||||||
- name: TRACING_INSECURE
|
|
||||||
value: "False"
|
|
||||||
- name: SERVER_ENABLE_SYNC_RESOURCES
|
|
||||||
value: "True"
|
|
||||||
- name: SERVER_DELETED_TASK_MAX_AGE_DAYS
|
|
||||||
value: "1"
|
|
||||||
- name: SERVER_EXPIRED_TASK_NOTIFICATION_HOUR
|
|
||||||
value: "17"
|
|
||||||
- name: LANG
|
|
||||||
value: C.UTF-8
|
|
||||||
- name: LC_ALL
|
|
||||||
value: C.UTF-8
|
|
||||||
- name: PYTHONUTF8
|
|
||||||
value: "1"
|
|
||||||
- name: CACHE_SSL
|
|
||||||
value: "False"
|
|
||||||
- name: CACHE_SSL_CA_CERTS
|
|
||||||
value: ""
|
|
||||||
- name: CACHE_ENABLE
|
|
||||||
value: "False"
|
|
||||||
- name: CLICKHOUSE_ENABLE
|
|
||||||
value: "False"
|
|
||||||
- name: KAFKA_ENABLE
|
|
||||||
value: "False"
|
|
||||||
- name: AUTH_PUBLIC_TOKEN_URL
|
|
||||||
value: "https://lk.sarex.io/api/token/public/"
|
|
||||||
- name: SERVER_HOST
|
|
||||||
value: "https://lk.sarex.io"
|
|
||||||
- name: SERVER_API_HOST
|
|
||||||
value: "https://api.sarex.io"
|
|
||||||
- name: SERVER_DEBUG
|
|
||||||
value: "False"
|
|
||||||
- name: SERVER_ALLOWED_HOSTS
|
|
||||||
value: '["*"]'
|
|
||||||
- name: SERVER_USE_OTEL
|
|
||||||
value: "False"
|
|
||||||
- name: SERVER_VERIFY_SSL
|
|
||||||
value: "False"
|
|
||||||
- name: SERVER_LOG_LEVEL
|
|
||||||
value: "INFO"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: 128Mi
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: regcred
|
|
||||||
238
apps/pm/base/celery.yaml
Normal file
238
apps/pm/base/celery.yaml
Normal file
@ -0,0 +1,238 @@
|
|||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: celery
|
||||||
|
namespace: pm
|
||||||
|
|
||||||
|
spec:
|
||||||
|
interval: 10m
|
||||||
|
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: universal-chart
|
||||||
|
version: "0.1.9"
|
||||||
|
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:
|
||||||
|
celery:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: pm-vault
|
||||||
|
|
||||||
|
image:
|
||||||
|
name:
|
||||||
|
_default: cr.yandex/crp3ccidau046kdj8g9q/pm-backend:production_0843a55d
|
||||||
|
pullPolicy:
|
||||||
|
_default: IfNotPresent
|
||||||
|
|
||||||
|
deployment:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
name:
|
||||||
|
_default: celery
|
||||||
|
|
||||||
|
replicaCount:
|
||||||
|
_default: 1
|
||||||
|
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|
||||||
|
command:
|
||||||
|
_default: ["/bin/bash", "-ec"]
|
||||||
|
args:
|
||||||
|
_default:
|
||||||
|
- |
|
||||||
|
set -a
|
||||||
|
[ -f /vault/secrets/pm-db ] && . /vault/secrets/pm-db
|
||||||
|
[ -f /vault/secrets/pm-rabbitmq ] && . /vault/secrets/pm-rabbitmq
|
||||||
|
[ -f /vault/secrets/pm-s3 ] && . /vault/secrets/pm-s3
|
||||||
|
set +a
|
||||||
|
exec celery -A config worker -B -l info -E -Q pm -n default_worker.%h --concurrency=2
|
||||||
|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory:
|
||||||
|
_default: 128Mi
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: false
|
||||||
|
readiness:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
imagePullSecrets:
|
||||||
|
enabled:
|
||||||
|
_default: true
|
||||||
|
name:
|
||||||
|
_default: regcred
|
||||||
|
|
||||||
|
envs:
|
||||||
|
- name: USERS_INTERNAL_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://backend-service.sarex.svc.cluster.local:8000"
|
||||||
|
|
||||||
|
- name: CELERY_REDIS_HOST
|
||||||
|
value:
|
||||||
|
_default: "redis.pm.svc.cluster.local"
|
||||||
|
|
||||||
|
- name: RESOURCES_INTERNAL_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://sarex-resources-service.resources"
|
||||||
|
|
||||||
|
- name: EAV_HOST
|
||||||
|
value:
|
||||||
|
_default: "http://eav-service.eav"
|
||||||
|
|
||||||
|
- name: EAV_API_PREFIX
|
||||||
|
value:
|
||||||
|
_default: "/api/v0"
|
||||||
|
|
||||||
|
- name: EAV_API_PREFIX_V1
|
||||||
|
value:
|
||||||
|
_default: "/api/v1"
|
||||||
|
|
||||||
|
- name: TRACING_INSECURE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_ENABLE_SYNC_RESOURCES
|
||||||
|
value:
|
||||||
|
_default: "True"
|
||||||
|
|
||||||
|
- name: SERVER_DELETED_TASK_MAX_AGE_DAYS
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: SERVER_EXPIRED_TASK_NOTIFICATION_HOUR
|
||||||
|
value:
|
||||||
|
_default: "17"
|
||||||
|
|
||||||
|
- name: LANG
|
||||||
|
value:
|
||||||
|
_default: "C.UTF-8"
|
||||||
|
|
||||||
|
- name: LC_ALL
|
||||||
|
value:
|
||||||
|
_default: "C.UTF-8"
|
||||||
|
|
||||||
|
- name: PYTHONUTF8
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: CACHE_SSL
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: CACHE_SSL_CA_CERTS
|
||||||
|
value:
|
||||||
|
_default: ""
|
||||||
|
|
||||||
|
- name: CACHE_ENABLE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: CLICKHOUSE_ENABLE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: KAFKA_ENABLE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: AUTH_PUBLIC_TOKEN_URL
|
||||||
|
value:
|
||||||
|
_default: "https://lk.sarex.io/api/token/public/"
|
||||||
|
|
||||||
|
- name: SERVER_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://lk.sarex.io"
|
||||||
|
|
||||||
|
- name: SERVER_API_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://api.sarex.io"
|
||||||
|
|
||||||
|
- name: SERVER_DEBUG
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_ALLOWED_HOSTS
|
||||||
|
value:
|
||||||
|
_default: '["*"]'
|
||||||
|
|
||||||
|
- name: SERVER_USE_OTEL
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_VERIFY_SSL
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_LOG_LEVEL
|
||||||
|
value:
|
||||||
|
_default: "INFO"
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
_default:
|
||||||
|
traffic.sidecar.istio.io/excludeOutboundPorts: "8200"
|
||||||
|
vault.hashicorp.com/agent-init-first: "true"
|
||||||
|
vault.hashicorp.com/agent-inject: "true"
|
||||||
|
vault.hashicorp.com/agent-pre-populate-only: "true"
|
||||||
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
||||||
|
vault.hashicorp.com/role: pm
|
||||||
|
vault.hashicorp.com/agent-inject-secret-pm-db: secrets/data/postgresql/apps/pm
|
||||||
|
vault.hashicorp.com/agent-inject-template-pm-db: |-
|
||||||
|
{{- with secret "secrets/data/postgresql/apps/pm" -}}
|
||||||
|
DB_USERNAME={{ index .Data.data "username" }}
|
||||||
|
DB_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
DB_DATABASE=pm_db
|
||||||
|
DB_HOST=postgresql.pm.svc.cluster.local
|
||||||
|
DB_PORT=5432
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-pm-rabbitmq: secrets/data/rabbitmq/apps/pm
|
||||||
|
vault.hashicorp.com/agent-inject-template-pm-rabbitmq: |-
|
||||||
|
{{- with secret "secrets/data/rabbitmq/apps/pm" -}}
|
||||||
|
CELERY_RABBITMQ_HOST=rabbitmq.rabbitmq.svc.cluster.local
|
||||||
|
CELERY_RABBITMQ_PORT=5672
|
||||||
|
CELERY_RABBITMQ_USER={{ index .Data.data "username" }}
|
||||||
|
CELERY_RABBITMQ_PASSWORD={{ index .Data.data "password" }}
|
||||||
|
CELERY_RABBITMQ_VHOST={{ index .Data.data "vhost" }}
|
||||||
|
{{- end -}}
|
||||||
|
vault.hashicorp.com/agent-inject-secret-pm-s3: secrets/data/minio/apps/pm
|
||||||
|
vault.hashicorp.com/agent-inject-template-pm-s3: |-
|
||||||
|
{{- with secret "secrets/data/minio/apps/pm" -}}
|
||||||
|
S3_HOST={{ index .Data.data.client "endpoint" }}
|
||||||
|
S3_LOGIN={{ index .Data.data "access_key" }}
|
||||||
|
S3_PASSWORD={{ index .Data.data "secret_key" }}
|
||||||
|
{{- $buckets := index .Data.data "buckets" }}
|
||||||
|
S3_BUCKET={{- if gt (len $buckets) 0 -}}{{ index (index $buckets 0) "name" }}{{- else -}}pm-bucket{{- end -}}
|
||||||
|
S3_VERIFY=False
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
commitSha: ""
|
||||||
|
gitlabUri: ""
|
||||||
|
gitlabJobUrl: ""
|
||||||
|
owner: ""
|
||||||
@ -4,8 +4,6 @@ kind: Kustomization
|
|||||||
namespace: pm
|
namespace: pm
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- serviceaccount.yaml
|
- backend.yaml
|
||||||
- backend-deployment.yaml
|
- celery.yaml
|
||||||
- backend-service.yaml
|
|
||||||
- celery-deployment.yaml
|
|
||||||
- backend-configmap.yaml
|
- backend-configmap.yaml
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: pm-vault
|
|
||||||
namespace: pm
|
|
||||||
10
apps/pm/d8-ugmk-prod/kustomization.yaml
Normal file
10
apps/pm/d8-ugmk-prod/kustomization.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../base
|
||||||
|
patches:
|
||||||
|
- path: namespace.yaml
|
||||||
|
target:
|
||||||
|
kind: Namespace
|
||||||
|
name: pm
|
||||||
8
apps/pm/d8-ugmk-prod/namespace.yaml
Normal file
8
apps/pm/d8-ugmk-prod/namespace.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: pm
|
||||||
|
labels:
|
||||||
|
istio-injection: enabled
|
||||||
|
security.deckhouse.io/pod-policy: privileged
|
||||||
@ -1,29 +1,118 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: backend
|
name: backend
|
||||||
namespace: pm
|
namespace: pm
|
||||||
spec:
|
spec:
|
||||||
template:
|
values:
|
||||||
spec:
|
services:
|
||||||
containers:
|
backend:
|
||||||
- name: api
|
image:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/pm-backend:production_3d7e8ea6
|
name:
|
||||||
env:
|
_default: cr.yandex/crp3ccidau046kdj8g9q/pm-backend:production_3d7e8ea6
|
||||||
- name: LANG
|
|
||||||
value: C.UTF-8
|
envs:
|
||||||
- name: LC_ALL
|
- name: USERS_INTERNAL_HOST
|
||||||
value: C.UTF-8
|
value:
|
||||||
- name: PYTHONUTF8
|
_default: "http://backend.django.svc.cluster.local:8000"
|
||||||
value: '1'
|
|
||||||
- name: USERS_INTERNAL_HOST
|
- name: CELERY_REDIS_HOST
|
||||||
value: http://backend.django.svc.cluster.local:8000
|
value:
|
||||||
- name: RESOURCES_INTERNAL_HOST
|
_default: "redis.pm.svc.cluster.local"
|
||||||
value: http://resources-service.resources.svc.cluster.local:8000
|
|
||||||
- name: EAV_HOST
|
- name: RESOURCES_INTERNAL_HOST
|
||||||
value: http://eav-service.eav.svc.cluster.local:8000
|
value:
|
||||||
- name: EAV_API_PREFIX
|
_default: "http://resources-service.resources.svc.cluster.local:8000"
|
||||||
value: /api/v0
|
|
||||||
- name: EAV_API_PREFIX_V1
|
- name: EAV_HOST
|
||||||
value: /api/v1
|
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"
|
||||||
|
|
||||||
|
- name: TRACING_INSECURE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_ENABLE_SYNC_RESOURCES
|
||||||
|
value:
|
||||||
|
_default: "True"
|
||||||
|
|
||||||
|
- name: SERVER_DELETED_TASK_MAX_AGE_DAYS
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: SERVER_EXPIRED_TASK_NOTIFICATION_HOUR
|
||||||
|
value:
|
||||||
|
_default: "17"
|
||||||
|
|
||||||
|
- name: LANG
|
||||||
|
value:
|
||||||
|
_default: "C.UTF-8"
|
||||||
|
|
||||||
|
- name: LC_ALL
|
||||||
|
value:
|
||||||
|
_default: "C.UTF-8"
|
||||||
|
|
||||||
|
- name: PYTHONUTF8
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: CACHE_SSL
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: CACHE_SSL_CA_CERTS
|
||||||
|
value:
|
||||||
|
_default: ""
|
||||||
|
|
||||||
|
- name: CACHE_ENABLE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: CLICKHOUSE_ENABLE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: KAFKA_ENABLE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: AUTH_PUBLIC_TOKEN_URL
|
||||||
|
value:
|
||||||
|
_default: "https://lk.sarex.io/api/token/public/"
|
||||||
|
|
||||||
|
- name: SERVER_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://lk.sarex.io"
|
||||||
|
|
||||||
|
- name: SERVER_API_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://api.sarex.io"
|
||||||
|
|
||||||
|
- name: SERVER_DEBUG
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_ALLOWED_HOSTS
|
||||||
|
value:
|
||||||
|
_default: '["*"]'
|
||||||
|
|
||||||
|
- name: SERVER_USE_OTEL
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_VERIFY_SSL
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_LOG_LEVEL
|
||||||
|
value:
|
||||||
|
_default: "INFO"
|
||||||
|
|||||||
@ -1,29 +1,118 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: celery
|
name: celery
|
||||||
namespace: pm
|
namespace: pm
|
||||||
spec:
|
spec:
|
||||||
template:
|
values:
|
||||||
spec:
|
services:
|
||||||
containers:
|
celery:
|
||||||
- name: celery
|
image:
|
||||||
image: cr.yandex/crp3ccidau046kdj8g9q/pm-backend:production_2becf38c
|
name:
|
||||||
env:
|
_default: cr.yandex/crp3ccidau046kdj8g9q/pm-backend:production_2becf38c
|
||||||
- name: USERS_INTERNAL_HOST
|
|
||||||
value: http://backend.django.svc.cluster.local:8000
|
envs:
|
||||||
- name: RESOURCES_INTERNAL_HOST
|
- name: USERS_INTERNAL_HOST
|
||||||
value: http://resources-service.resources.svc.cluster.local:8000
|
value:
|
||||||
- name: EAV_HOST
|
_default: "http://backend.django.svc.cluster.local:8000"
|
||||||
value: http://eav-service.eav.svc.cluster.local:8000
|
|
||||||
- name: EAV_API_PREFIX
|
- name: CELERY_REDIS_HOST
|
||||||
value: /api/v0
|
value:
|
||||||
- name: EAV_API_PREFIX_V1
|
_default: "redis.pm.svc.cluster.local"
|
||||||
value: /api/v1
|
|
||||||
- name: LANG
|
- name: RESOURCES_INTERNAL_HOST
|
||||||
value: C.UTF-8
|
value:
|
||||||
- name: LC_ALL
|
_default: "http://resources-service.resources.svc.cluster.local:8000"
|
||||||
value: C.UTF-8
|
|
||||||
- name: PYTHONUTF8
|
- name: EAV_HOST
|
||||||
value: '1'
|
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"
|
||||||
|
|
||||||
|
- name: TRACING_INSECURE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_ENABLE_SYNC_RESOURCES
|
||||||
|
value:
|
||||||
|
_default: "True"
|
||||||
|
|
||||||
|
- name: SERVER_DELETED_TASK_MAX_AGE_DAYS
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: SERVER_EXPIRED_TASK_NOTIFICATION_HOUR
|
||||||
|
value:
|
||||||
|
_default: "17"
|
||||||
|
|
||||||
|
- name: LANG
|
||||||
|
value:
|
||||||
|
_default: "C.UTF-8"
|
||||||
|
|
||||||
|
- name: LC_ALL
|
||||||
|
value:
|
||||||
|
_default: "C.UTF-8"
|
||||||
|
|
||||||
|
- name: PYTHONUTF8
|
||||||
|
value:
|
||||||
|
_default: "1"
|
||||||
|
|
||||||
|
- name: CACHE_SSL
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: CACHE_SSL_CA_CERTS
|
||||||
|
value:
|
||||||
|
_default: ""
|
||||||
|
|
||||||
|
- name: CACHE_ENABLE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: CLICKHOUSE_ENABLE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: KAFKA_ENABLE
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: AUTH_PUBLIC_TOKEN_URL
|
||||||
|
value:
|
||||||
|
_default: "https://lk.sarex.io/api/token/public/"
|
||||||
|
|
||||||
|
- name: SERVER_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://lk.sarex.io"
|
||||||
|
|
||||||
|
- name: SERVER_API_HOST
|
||||||
|
value:
|
||||||
|
_default: "https://api.sarex.io"
|
||||||
|
|
||||||
|
- name: SERVER_DEBUG
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_ALLOWED_HOSTS
|
||||||
|
value:
|
||||||
|
_default: '["*"]'
|
||||||
|
|
||||||
|
- name: SERVER_USE_OTEL
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_VERIFY_SSL
|
||||||
|
value:
|
||||||
|
_default: "False"
|
||||||
|
|
||||||
|
- name: SERVER_LOG_LEVEL
|
||||||
|
value:
|
||||||
|
_default: "INFO"
|
||||||
|
|||||||
@ -8,9 +8,9 @@ resources:
|
|||||||
patches:
|
patches:
|
||||||
- path: backend.yaml
|
- path: backend.yaml
|
||||||
target:
|
target:
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
name: backend
|
name: backend
|
||||||
- path: celery.yaml
|
- path: celery.yaml
|
||||||
target:
|
target:
|
||||||
kind: Deployment
|
kind: HelmRelease
|
||||||
name: celery
|
name: celery
|
||||||
|
|||||||
@ -4,5 +4,5 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: prescriptions
|
name: prescriptions
|
||||||
labels:
|
labels:
|
||||||
istio-injection: disabled
|
istio-injection: enabled
|
||||||
security.deckhouse.io/pod-policy: privileged
|
security.deckhouse.io/pod-policy: privileged
|
||||||
|
|||||||
@ -4,5 +4,5 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: processing
|
name: processing
|
||||||
labels:
|
labels:
|
||||||
istio-injection: disabled
|
istio-injection: enabled
|
||||||
security.deckhouse.io/pod-policy: privileged
|
security.deckhouse.io/pod-policy: privileged
|
||||||
|
|||||||
@ -4,5 +4,5 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: projects
|
name: projects
|
||||||
labels:
|
labels:
|
||||||
istio-injection: disabled
|
istio-injection: enabled
|
||||||
security.deckhouse.io/pod-policy: privileged
|
security.deckhouse.io/pod-policy: privileged
|
||||||
|
|||||||
@ -4,5 +4,5 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: remarks
|
name: remarks
|
||||||
labels:
|
labels:
|
||||||
istio-injection: disabled
|
istio-injection: enabled
|
||||||
security.deckhouse.io/pod-policy: privileged
|
security.deckhouse.io/pod-policy: privileged
|
||||||
|
|||||||
@ -4,5 +4,5 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: reviews
|
name: reviews
|
||||||
labels:
|
labels:
|
||||||
istio-injection: disabled
|
istio-injection: enabled
|
||||||
security.deckhouse.io/pod-policy: privileged
|
security.deckhouse.io/pod-policy: privileged
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user