stand: волна 2 — attachments, measurements, eav, resources, subscriptions, pm; pm base: перевод строки после S3_BUCKET
This commit is contained in:
parent
fabdce640c
commit
b3f874f481
23
apps/attachments/stand/helmrelease.yaml
Normal file
23
apps/attachments/stand/helmrelease.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: attachments
|
||||
namespace: attachments
|
||||
annotations:
|
||||
kustomize.toolkit.fluxcd.io/substitute: disabled
|
||||
spec:
|
||||
values:
|
||||
services:
|
||||
attachments:
|
||||
podAnnotations:
|
||||
_default:
|
||||
vault.hashicorp.com/agent-inject-template-attachments-s3: |-
|
||||
{{- with secret "secrets/data/minio/apps/attachments" -}}
|
||||
YANDEX_S3_ENDPOINT_URL=minio.storage.svc.cluster.local:9000
|
||||
YANDEX_S3_ACCESS_KEY_ID={{ or (index .Data.data "access_key") (index .Data.data "access_key_id") }}
|
||||
YANDEX_S3_SECRET_ACCESS_KEY={{ or (index .Data.data "secret_key") (index .Data.data "secret_access_key") }}
|
||||
YANDEX_S3_USE_SSL=false
|
||||
YANDEX_S3_REGION=ru-central
|
||||
YANDEX_S3_VERIFY=false
|
||||
BUCKET_NAME=attachments
|
||||
{{- end -}}
|
||||
6
apps/attachments/stand/kustomization.yaml
Normal file
6
apps/attachments/stand/kustomization.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
patches:
|
||||
- path: helmrelease.yaml
|
||||
4
apps/eav/stand/kustomization.yaml
Normal file
4
apps/eav/stand/kustomization.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
4
apps/measurements/stand/kustomization.yaml
Normal file
4
apps/measurements/stand/kustomization.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
@ -245,7 +245,7 @@ spec:
|
||||
S3_HOST={{ with index .Data.data "client" }}{{ index . "endpoint" }}{{ else }}{{ index .Data.data "endpoint" }}{{ end }}
|
||||
S3_LOGIN={{ or (index .Data.data "access_key") (index .Data.data "access_key_id") }}
|
||||
S3_PASSWORD={{ or (index .Data.data "secret_key") (index .Data.data "secret_access_key") }}
|
||||
S3_BUCKET={{- with index .Data.data "buckets" -}}{{ index (index . 0) "name" }}{{- else -}}{{ or (index .Data.data "bucket") "sarex-media-storage" }}{{- end -}}
|
||||
S3_BUCKET={{- with index .Data.data "buckets" -}}{{ index (index . 0) "name" }}{{- else -}}{{ or (index .Data.data "bucket") "sarex-media-storage" }}{{- end }}
|
||||
S3_VERIFY=False
|
||||
{{- end -}}
|
||||
|
||||
|
||||
111
apps/pm/stand/kustomization.yaml
Normal file
111
apps/pm/stand/kustomization.yaml
Normal file
@ -0,0 +1,111 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
configMapGenerator:
|
||||
- name: pm-contour-env
|
||||
literals:
|
||||
- BACKEND_AUTH_PUBLIC_TOKEN_URL=http://backend-svc.django.svc.cluster.local/api/token/public/
|
||||
- BACKEND_SERVER_HOST=https://sarex.${CONTOUR_DOMAIN}
|
||||
- BACKEND_SERVER_API_HOST=https://sarex.${CONTOUR_DOMAIN}
|
||||
- CELERY_AUTH_PUBLIC_TOKEN_URL=http://backend-svc.django.svc.cluster.local/api/token/public/
|
||||
- CELERY_SERVER_HOST=https://sarex.${CONTOUR_DOMAIN}
|
||||
- CELERY_SERVER_API_HOST=https://sarex.${CONTOUR_DOMAIN}
|
||||
- CELERY_EAV_HOST=http://backend-svc.eav.svc.cluster.local:80
|
||||
- CELERY_RESOURCES_INTERNAL_HOST=http://iam-backend.iam.svc.cluster.local:8000
|
||||
- CELERY_USERS_INTERNAL_HOST=http://backend-svc.django.svc.cluster.local:80
|
||||
options:
|
||||
disableNameSuffixHash: true
|
||||
annotations:
|
||||
config.kubernetes.io/local-config: "true"
|
||||
replacements:
|
||||
- source:
|
||||
kind: ConfigMap
|
||||
name: pm-contour-env
|
||||
fieldPath: data.BACKEND_AUTH_PUBLIC_TOKEN_URL
|
||||
targets:
|
||||
- select:
|
||||
kind: HelmRelease
|
||||
name: backend
|
||||
fieldPaths:
|
||||
- spec.values.services.backend.envs.[name=AUTH_PUBLIC_TOKEN_URL].value._default
|
||||
- source:
|
||||
kind: ConfigMap
|
||||
name: pm-contour-env
|
||||
fieldPath: data.BACKEND_SERVER_HOST
|
||||
targets:
|
||||
- select:
|
||||
kind: HelmRelease
|
||||
name: backend
|
||||
fieldPaths:
|
||||
- spec.values.services.backend.envs.[name=SERVER_HOST].value._default
|
||||
- source:
|
||||
kind: ConfigMap
|
||||
name: pm-contour-env
|
||||
fieldPath: data.BACKEND_SERVER_API_HOST
|
||||
targets:
|
||||
- select:
|
||||
kind: HelmRelease
|
||||
name: backend
|
||||
fieldPaths:
|
||||
- spec.values.services.backend.envs.[name=SERVER_API_HOST].value._default
|
||||
- source:
|
||||
kind: ConfigMap
|
||||
name: pm-contour-env
|
||||
fieldPath: data.CELERY_AUTH_PUBLIC_TOKEN_URL
|
||||
targets:
|
||||
- select:
|
||||
kind: HelmRelease
|
||||
name: celery
|
||||
fieldPaths:
|
||||
- spec.values.services.celery.envs.[name=AUTH_PUBLIC_TOKEN_URL].value._default
|
||||
- source:
|
||||
kind: ConfigMap
|
||||
name: pm-contour-env
|
||||
fieldPath: data.CELERY_SERVER_HOST
|
||||
targets:
|
||||
- select:
|
||||
kind: HelmRelease
|
||||
name: celery
|
||||
fieldPaths:
|
||||
- spec.values.services.celery.envs.[name=SERVER_HOST].value._default
|
||||
- source:
|
||||
kind: ConfigMap
|
||||
name: pm-contour-env
|
||||
fieldPath: data.CELERY_SERVER_API_HOST
|
||||
targets:
|
||||
- select:
|
||||
kind: HelmRelease
|
||||
name: celery
|
||||
fieldPaths:
|
||||
- spec.values.services.celery.envs.[name=SERVER_API_HOST].value._default
|
||||
- source:
|
||||
kind: ConfigMap
|
||||
name: pm-contour-env
|
||||
fieldPath: data.CELERY_EAV_HOST
|
||||
targets:
|
||||
- select:
|
||||
kind: HelmRelease
|
||||
name: celery
|
||||
fieldPaths:
|
||||
- spec.values.services.celery.envs.[name=EAV_HOST].value._default
|
||||
- source:
|
||||
kind: ConfigMap
|
||||
name: pm-contour-env
|
||||
fieldPath: data.CELERY_RESOURCES_INTERNAL_HOST
|
||||
targets:
|
||||
- select:
|
||||
kind: HelmRelease
|
||||
name: celery
|
||||
fieldPaths:
|
||||
- spec.values.services.celery.envs.[name=RESOURCES_INTERNAL_HOST].value._default
|
||||
- source:
|
||||
kind: ConfigMap
|
||||
name: pm-contour-env
|
||||
fieldPath: data.CELERY_USERS_INTERNAL_HOST
|
||||
targets:
|
||||
- select:
|
||||
kind: HelmRelease
|
||||
name: celery
|
||||
fieldPaths:
|
||||
- spec.values.services.celery.envs.[name=USERS_INTERNAL_HOST].value._default
|
||||
4
apps/resources/stand/kustomization.yaml
Normal file
4
apps/resources/stand/kustomization.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
22
apps/subscriptions/stand/backend-deployment.yaml
Normal file
22
apps/subscriptions/stand/backend-deployment.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: sarex-subscriptions
|
||||
namespace: subscriptions
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
vault.hashicorp.com/agent-inject-template-subscriptions-minio: |-
|
||||
{{- with secret "secrets/data/minio/apps/subscriptions" -}}
|
||||
YC_S3_ACCESS_KEY_ID={{ or (index .Data.data "access_key") (index .Data.data "access_key_id") }}
|
||||
YC_S3_SECRET_ACCESS_KEY={{ or (index .Data.data "secret_key") (index .Data.data "secret_access_key") }}
|
||||
YC_S3_BUCKET_NAME=subscriptions
|
||||
YC_S3_ENDPOINT_URL=http://${MINIO_ENDPOINT}
|
||||
{{- end -}}
|
||||
spec:
|
||||
containers:
|
||||
- name: subscriptions
|
||||
env:
|
||||
- name: USER_SERVICE_HOST
|
||||
value: http://backend-svc.django.svc.cluster.local:80
|
||||
6
apps/subscriptions/stand/kustomization.yaml
Normal file
6
apps/subscriptions/stand/kustomization.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
patches:
|
||||
- path: backend-deployment.yaml
|
||||
@ -1,6 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../../apps/attachments/stand
|
||||
- ../../../apps/auth-flow/stand
|
||||
- ../../../apps/bi/stand
|
||||
- ../../../apps/bim/stand
|
||||
@ -10,9 +11,14 @@ resources:
|
||||
- ../../../apps/django/stand
|
||||
- ../../../apps/document-link/stand
|
||||
- ../../../apps/drawings/stand
|
||||
- ../../../apps/eav/stand
|
||||
- ../../../apps/faas/stand
|
||||
- ../../../apps/measurements/stand
|
||||
- ../../../apps/pm/stand
|
||||
- ../../../apps/prescriptions/stand
|
||||
- ../../../apps/projects/stand
|
||||
- ../../../apps/remarks/stand
|
||||
- ../../../apps/resources/stand
|
||||
- ../../../apps/reviews/stand
|
||||
- ../../../apps/stamp-verification/stand
|
||||
- ../../../apps/subscriptions/stand
|
||||
|
||||
Loading…
Reference in New Issue
Block a user