From 52ab310c6511b5b009fa45d0eb741e3bde09d53c Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 21 Jul 2026 14:22:34 +0500 Subject: [PATCH] ++ --- apps/notes/d8-ugmk-prod/kustomization.yaml | 11 +++++++++ apps/notes/d8-ugmk-prod/namespace.yaml | 7 ++++++ apps/notes/d8-ugmk-prod/patch.yaml | 28 ++++++++++++++++++++++ clusters/d8-ugmk-prod/kustomization.yaml | 3 ++- 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 apps/notes/d8-ugmk-prod/kustomization.yaml create mode 100644 apps/notes/d8-ugmk-prod/namespace.yaml create mode 100644 apps/notes/d8-ugmk-prod/patch.yaml diff --git a/apps/notes/d8-ugmk-prod/kustomization.yaml b/apps/notes/d8-ugmk-prod/kustomization.yaml new file mode 100644 index 0000000..6a4ca4f --- /dev/null +++ b/apps/notes/d8-ugmk-prod/kustomization.yaml @@ -0,0 +1,11 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base +patches: + - path: namespace.yaml + target: + kind: Namespace + name: notes + - path: patch.yaml diff --git a/apps/notes/d8-ugmk-prod/namespace.yaml b/apps/notes/d8-ugmk-prod/namespace.yaml new file mode 100644 index 0000000..e04787f --- /dev/null +++ b/apps/notes/d8-ugmk-prod/namespace.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: notes + labels: + istio-injection: disabled + security.deckhouse.io/pod-policy: privileged diff --git a/apps/notes/d8-ugmk-prod/patch.yaml b/apps/notes/d8-ugmk-prod/patch.yaml new file mode 100644 index 0000000..c345211 --- /dev/null +++ b/apps/notes/d8-ugmk-prod/patch.yaml @@ -0,0 +1,28 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: backend + namespace: notes +spec: + template: + spec: + containers: + - name: backend + env: + - name: BASE_HOST + value: https://sarex.ru/notes + - name: DJANGO_HOST + value: https://sarex.ru +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: frontend + namespace: notes +spec: + template: + spec: + containers: + - name: frontend + image: cr.yandex/crp3ccidau046kdj8g9q/notes-frontend:production_81366854 \ No newline at end of file diff --git a/clusters/d8-ugmk-prod/kustomization.yaml b/clusters/d8-ugmk-prod/kustomization.yaml index e1efc03..d0a9342 100644 --- a/clusters/d8-ugmk-prod/kustomization.yaml +++ b/clusters/d8-ugmk-prod/kustomization.yaml @@ -21,4 +21,5 @@ resources: - ../../apps/cross-section/d8-ugmk-prod - ../../apps/reviews/d8-ugmk-prod - ../../apps/remarks/d8-ugmk-prod - - ../../apps/auth-flow/d8-ugmk-prod \ No newline at end of file + - ../../apps/auth-flow/d8-ugmk-prod + - ../../apps/notes/d8-ugmk-prod \ No newline at end of file