From eee76def70876fa39b85e2dffc6c5c4bf0a16edb Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 13:20:07 +0500 Subject: [PATCH 01/32] stand: reduce application CPU reservations for Istio and Vault --- clusters/stand/50-apps/kustomization.yaml | 2 + clusters/stand/50-apps/resource-requests.yaml | 1006 +++++++++++++++++ 2 files changed, 1008 insertions(+) create mode 100644 clusters/stand/50-apps/resource-requests.yaml diff --git a/clusters/stand/50-apps/kustomization.yaml b/clusters/stand/50-apps/kustomization.yaml index 0bc4956..18127ce 100644 --- a/clusters/stand/50-apps/kustomization.yaml +++ b/clusters/stand/50-apps/kustomization.yaml @@ -38,3 +38,5 @@ resources: - ../../../apps/system-log/stand - ../../../apps/transmittal/stand - ../../../apps/workspaces/stand +patches: + - path: resource-requests.yaml diff --git a/clusters/stand/50-apps/resource-requests.yaml b/clusters/stand/50-apps/resource-requests.yaml new file mode 100644 index 0000000..9a62b6b --- /dev/null +++ b/clusters/stand/50-apps/resource-requests.yaml @@ -0,0 +1,1006 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + annotations: + kustomize.toolkit.fluxcd.io/substitute: disabled + name: attachments + namespace: attachments +spec: + values: + services: + attachments: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: auth-flow +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: bi-backend + namespace: bi +spec: + values: + services: + main: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: bi-frontend + namespace: bi +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: bim +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde + namespace: cde +spec: + values: + services: + cde: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-flowscallback + namespace: cde +spec: + values: + services: + cde-flowscallback: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-splitpdf + namespace: cde +spec: + values: + services: + cde-splitpdf: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-worker-alert + namespace: cde +spec: + values: + services: + cde-worker-alert: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-worker-copy + namespace: cde +spec: + values: + services: + cde-worker-copy: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-worker-copyv2 + namespace: cde +spec: + values: + services: + cde-worker-copyv2: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-worker-create-versions + namespace: cde +spec: + values: + services: + cde-worker-create-versions: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-worker-create-versionsv2 + namespace: cde +spec: + values: + services: + cde-worker-create-versionsv2: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-worker-markings + namespace: cde +spec: + values: + services: + cde-worker-markings: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-worker-markingsv2 + namespace: cde +spec: + values: + services: + cde-worker-markingsv2: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-worker-sign + namespace: cde +spec: + values: + services: + cde-worker-sign: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-worker-signv2 + namespace: cde +spec: + values: + services: + cde-worker-signv2: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-worker-update-bundles + namespace: cde +spec: + values: + services: + cde-worker-update-bundles: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: checklists + namespace: checklists +spec: + values: + services: + checklists: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: contracts + namespace: contracts +spec: + values: + services: + contracts: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: control-interface +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cross-section-static + namespace: cross-section +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: django +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: django +spec: + values: + services: + celery: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: django +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: s3-proxy + namespace: django +spec: + values: + services: + s3-proxy: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: document-link +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: documentations-api + namespace: documentations +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: documentations-filestream + namespace: documentations +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: documentations-hasher + namespace: documentations +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: documentations-pdf-markings-amqp + namespace: documentations +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: documentations +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: pdm-api + namespace: documentations +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: drawings +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: eav +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: export-reviews + namespace: faas +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: flows +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: flows +spec: + values: + services: + celery: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: flows +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: iam-backend + namespace: iam +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: inspections +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: issues +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: issues +spec: + values: + services: + celery: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: issues +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: mapper +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: measurements + namespace: measurements +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: message-hub + namespace: message-hub +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: notes +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: notes +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: pm +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: pm +spec: + values: + services: + celery: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: pm +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: resources-static + namespace: pm +spec: + values: + services: + resources-static: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: premises +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m + deployment: + resources: + requests: + cpu: + _default: 100m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: prescriptions +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: engine + namespace: processing +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: engine-low + namespace: processing +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: processing +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: workflows-api + namespace: processing +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: projects +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: remarks +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: reviews +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: rfi +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: rfi +spec: + values: + services: + celery: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: rfi +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: stamp-verification +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: api + namespace: system-log +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: worker + namespace: system-log +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: transmittal +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: transmittal +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: worker + namespace: transmittal +spec: + values: + services: + worker: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: workspaces +spec: + values: + services: + backend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + vault.hashicorp.com/agent-requests-cpu: 25m +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: workspaces +spec: + values: + services: + frontend: + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m From c95a0a5025fea4e479c2f5e436cfb6cd3f02b1af Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 13:25:08 +0500 Subject: [PATCH 02/32] stand: preserve Istio memory requests and limits with CPU override --- clusters/stand/50-apps/resource-requests.yaml | 219 ++++++++++++++++++ 1 file changed, 219 insertions(+) diff --git a/clusters/stand/50-apps/resource-requests.yaml b/clusters/stand/50-apps/resource-requests.yaml index 9a62b6b..de32c8f 100644 --- a/clusters/stand/50-apps/resource-requests.yaml +++ b/clusters/stand/50-apps/resource-requests.yaml @@ -12,6 +12,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -26,6 +29,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -39,6 +45,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -53,6 +62,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -66,6 +78,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -80,6 +95,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -94,6 +112,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -108,6 +129,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -122,6 +146,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -136,6 +163,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -150,6 +180,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -164,6 +197,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -178,6 +214,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -192,6 +231,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -206,6 +248,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -220,6 +265,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -234,6 +282,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -248,6 +299,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -262,6 +316,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -276,6 +333,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -290,6 +350,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -303,6 +366,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -316,6 +382,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -330,6 +399,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -344,6 +416,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -357,6 +432,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -371,6 +449,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -384,6 +465,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -398,6 +482,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -412,6 +499,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -426,6 +516,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -440,6 +533,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -453,6 +549,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -467,6 +566,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -481,6 +583,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -495,6 +600,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -508,6 +616,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -522,6 +633,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -536,6 +650,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -549,6 +666,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -563,6 +683,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -577,6 +700,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -591,6 +717,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -605,6 +734,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -618,6 +750,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -632,6 +767,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -646,6 +784,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -660,6 +801,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -674,6 +818,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -687,6 +834,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -701,6 +851,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -715,6 +868,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -728,6 +884,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -741,6 +900,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m deployment: resources: @@ -760,6 +922,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -773,6 +938,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -787,6 +955,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -801,6 +972,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -814,6 +988,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -828,6 +1005,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -841,6 +1021,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -854,6 +1037,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -867,6 +1053,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -881,6 +1070,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -895,6 +1087,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -908,6 +1103,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -921,6 +1119,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -935,6 +1136,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -949,6 +1153,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -963,6 +1170,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -976,6 +1186,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -990,6 +1203,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -1004,3 +1220,6 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi From 26436489d4000fb9a8c54b67bc239bff5908805b Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 13:25:36 +0500 Subject: [PATCH 03/32] stand: correct proxy resource annotation indentation --- clusters/stand/50-apps/resource-requests.yaml | 438 +++++++++--------- 1 file changed, 219 insertions(+), 219 deletions(-) diff --git a/clusters/stand/50-apps/resource-requests.yaml b/clusters/stand/50-apps/resource-requests.yaml index de32c8f..37d44bf 100644 --- a/clusters/stand/50-apps/resource-requests.yaml +++ b/clusters/stand/50-apps/resource-requests.yaml @@ -12,9 +12,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -29,9 +29,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -45,9 +45,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -62,9 +62,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -78,9 +78,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -95,9 +95,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -112,9 +112,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -129,9 +129,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -146,9 +146,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -163,9 +163,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -180,9 +180,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -197,9 +197,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -214,9 +214,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -231,9 +231,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -248,9 +248,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -265,9 +265,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -282,9 +282,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -299,9 +299,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -316,9 +316,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -333,9 +333,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -350,9 +350,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -366,9 +366,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -382,9 +382,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -399,9 +399,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -416,9 +416,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -432,9 +432,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -449,9 +449,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -465,9 +465,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -482,9 +482,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -499,9 +499,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -516,9 +516,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -533,9 +533,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -549,9 +549,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -566,9 +566,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -583,9 +583,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -600,9 +600,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -616,9 +616,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -633,9 +633,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -650,9 +650,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -666,9 +666,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -683,9 +683,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -700,9 +700,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -717,9 +717,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -734,9 +734,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -750,9 +750,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -767,9 +767,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -784,9 +784,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -801,9 +801,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -818,9 +818,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -834,9 +834,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -851,9 +851,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -868,9 +868,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -884,9 +884,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -900,9 +900,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m deployment: resources: @@ -922,9 +922,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -938,9 +938,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -955,9 +955,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -972,9 +972,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -988,9 +988,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -1005,9 +1005,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -1021,9 +1021,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -1037,9 +1037,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -1053,9 +1053,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -1070,9 +1070,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -1087,9 +1087,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -1103,9 +1103,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -1119,9 +1119,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -1136,9 +1136,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -1153,9 +1153,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -1170,9 +1170,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease @@ -1186,9 +1186,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -1203,9 +1203,9 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi vault.hashicorp.com/agent-requests-cpu: 25m --- apiVersion: helm.toolkit.fluxcd.io/v2 @@ -1220,6 +1220,6 @@ spec: podAnnotations: _default: sidecar.istio.io/proxyCPU: 25m - sidecar.istio.io/proxyMemory: 128Mi - sidecar.istio.io/proxyCPULimit: "2" - sidecar.istio.io/proxyMemoryLimit: 1Gi + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: "2" + sidecar.istio.io/proxyMemoryLimit: 1Gi From 1cc9a3738e2eb73b27545e022d9e749b20592d44 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 13:35:13 +0500 Subject: [PATCH 04/32] stand: align shell-compatible application images with brusnika-stage --- clusters/stand/50-apps/kustomization.yaml | 1 + clusters/stand/50-apps/stage-images.yaml | 439 ++++++++++++++++++++++ 2 files changed, 440 insertions(+) create mode 100644 clusters/stand/50-apps/stage-images.yaml diff --git a/clusters/stand/50-apps/kustomization.yaml b/clusters/stand/50-apps/kustomization.yaml index 18127ce..1b639bd 100644 --- a/clusters/stand/50-apps/kustomization.yaml +++ b/clusters/stand/50-apps/kustomization.yaml @@ -40,3 +40,4 @@ resources: - ../../../apps/workspaces/stand patches: - path: resource-requests.yaml + - path: stage-images.yaml diff --git a/clusters/stand/50-apps/stage-images.yaml b/clusters/stand/50-apps/stage-images.yaml new file mode 100644 index 0000000..eeb085e --- /dev/null +++ b/clusters/stand/50-apps/stage-images.yaml @@ -0,0 +1,439 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: attachments + namespace: attachments +spec: + values: + services: + attachments: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/attachments:production_6dbb4dce +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: auth-flow +spec: + values: + services: + frontend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/auth-flow-frontend:production_48bec2ff +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: bi-backend + namespace: bi +spec: + values: + services: + main: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/bi-backend:production_e607dcc6 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: checklists + namespace: checklists +spec: + values: + services: + checklists: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/checklists-backend:production_3d148228 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: django +spec: + values: + services: + backend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/backend:production_18e5ac1e +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: django +spec: + values: + services: + celery: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/backend:production_18e5ac1e +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: django +spec: + values: + services: + frontend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/sarex-frontend-dev:contour_5.37.0 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: document-link +spec: + values: + services: + frontend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/document-link-frontend:51c342660b1bebebcaada22551e660ff260a4523 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: documentations-api + namespace: documentations +spec: + values: + services: + backend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/documentations:prod_65f44db2 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: documentations-filestream + namespace: documentations +spec: + values: + services: + backend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/documentations-api-files:prod_65f44db2 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: documentations-pdf-markings-amqp + namespace: documentations +spec: + values: + services: + backend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/pdf-markings-amqp:prod_3ab263be +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: documentations +spec: + values: + services: + frontend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/documentation-frontend-app:brusnika_64155bf6 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: pdm-api + namespace: documentations +spec: + values: + services: + backend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/pdmv2:prod_70b31308 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: flows +spec: + values: + services: + backend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/flows-backend:production_ffd422b4 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: flows +spec: + values: + services: + celery: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/flows-backend_worker:production_ffd422b4 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: flows +spec: + values: + services: + frontend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/flows-frontend:contour_33428cef +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: inspections +spec: + values: + services: + backend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/sarex-inspections:production_5fcce90d +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: issues +spec: + values: + services: + backend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/issues:production_2b20944c +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: issues +spec: + values: + services: + celery: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/issues:production_2b20944c +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: issues +spec: + values: + services: + frontend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/contour_issues-frontend:a377d409 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: notes +spec: + values: + services: + backend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/notes-backend:production_81366854 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: notes +spec: + values: + services: + frontend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/notes-frontend:production_0cb0909f +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: pm +spec: + values: + services: + backend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/pm-backend:production_fa0f1551 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: pm +spec: + values: + services: + celery: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/pm-backend:production_fa0f1551 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: pm +spec: + values: + services: + frontend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/pm-frontend:contour_abfaba7c +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: projects +spec: + values: + services: + frontend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/projects-frontend:prod_c282de02_relative +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: remarks +spec: + values: + services: + frontend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/remarks-frontend:contour_1bed3986 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: rfi +spec: + values: + services: + celery: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/rfi-backend:production_d1e2e80d +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: worker + namespace: system-log +spec: + values: + services: + backend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/system_log_worker:de6a0147d285afa273e85c0f074c8b6049d03a32 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: transmittal +spec: + values: + services: + backend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/transmittal-api:production_4e982bad +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: frontend + namespace: transmittal +spec: + values: + services: + frontend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/transmittal-frontend:contour_c1b275dc +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: worker + namespace: transmittal +spec: + values: + services: + worker: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/transmittal-api:production_4e982bad +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: backend + namespace: resources +spec: + template: + spec: + containers: + - name: backend + image: cr.yandex/crp3ccidau046kdj8g9q/sarex-resources:prod_266c031f +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: sarex-subscriptions + namespace: subscriptions +spec: + template: + spec: + containers: + - name: subscriptions + image: cr.yandex/crp3ccidau046kdj8g9q/subscriptions:preprod_bf7013a2 From c3bc4a3c1adb883a89535befaed7edfbac53e528 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 15:14:53 +0500 Subject: [PATCH 05/32] brusnika-stage: route signed folder downloads to filestream --- infrastructure/istio-config/brusnika-stage/istio-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infrastructure/istio-config/brusnika-stage/istio-config.yaml b/infrastructure/istio-config/brusnika-stage/istio-config.yaml index cfdfa8f..e0a5a0a 100644 --- a/infrastructure/istio-config/brusnika-stage/istio-config.yaml +++ b/infrastructure/istio-config/brusnika-stage/istio-config.yaml @@ -984,6 +984,11 @@ spec: gateways: - ingress-nginx/main-gateway routes: + - match: + - uri: + exact: /api/v1/documents/folders + service: documentations-filestream.documentations.svc.cluster.local + port: 8080 - match: - uri: prefix: /files/api/ From 98dbc31121ca5a4dd593bed2a44bd013145c1e5f Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 15:28:31 +0500 Subject: [PATCH 06/32] stand: deploy persistent SpiceDB using Terraform-managed Vault credentials --- clusters/stand/30-platform/kustomization.yaml | 1 + .../spicedb/stand/kustomization.yaml | 4 + infrastructure/spicedb/stand/spicedb.yaml | 147 ++++++++++++++++++ 3 files changed, 152 insertions(+) create mode 100644 infrastructure/spicedb/stand/kustomization.yaml create mode 100644 infrastructure/spicedb/stand/spicedb.yaml diff --git a/clusters/stand/30-platform/kustomization.yaml b/clusters/stand/30-platform/kustomization.yaml index a375cd7..9c0c15a 100644 --- a/clusters/stand/30-platform/kustomization.yaml +++ b/clusters/stand/30-platform/kustomization.yaml @@ -3,3 +3,4 @@ kind: Kustomization resources: - ../../../infrastructure/zitadel/contour-template - ../../../infrastructure/camunda/contour-template + - ../../../infrastructure/spicedb/stand diff --git a/infrastructure/spicedb/stand/kustomization.yaml b/infrastructure/spicedb/stand/kustomization.yaml new file mode 100644 index 0000000..0ed8ebf --- /dev/null +++ b/infrastructure/spicedb/stand/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - spicedb.yaml diff --git a/infrastructure/spicedb/stand/spicedb.yaml b/infrastructure/spicedb/stand/spicedb.yaml new file mode 100644 index 0000000..f0d9b4e --- /dev/null +++ b/infrastructure/spicedb/stand/spicedb.yaml @@ -0,0 +1,147 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: spicedb + labels: + istio-injection: disabled +--- +apiVersion: v1 +kind: ServiceAccount +metadata: + name: spicedb-vault + namespace: spicedb +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: spicedb + namespace: spicedb +spec: + replicas: 1 + selector: + matchLabels: + app: spicedb + template: + metadata: + labels: + app: spicedb + annotations: + vault.hashicorp.com/agent-inject: 'true' + vault.hashicorp.com/agent-init-first: 'true' + vault.hashicorp.com/agent-pre-populate-only: 'true' + vault.hashicorp.com/agent-requests-cpu: 25m + vault.hashicorp.com/auth-path: auth/kubernetes + vault.hashicorp.com/role: spicedb + vault.hashicorp.com/agent-inject-secret-spicedb-db: secrets/data/apps/spicedb/postgres + vault.hashicorp.com/agent-inject-template-spicedb-db: '{{- with secret "secrets/data/apps/spicedb/postgres" + -}} + + SPICEDB_DATASTORE_CONN_URI=''postgres://{{ index .Data.data "username" }}:{{ + index .Data.data "password" }}@{{ index .Data.data "host" }}:{{ index .Data.data + "port" }}/{{ index .Data.data "database" }}?sslmode=disable'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-spicedb-auth: secrets/data/apps/spicedb/auth + vault.hashicorp.com/agent-inject-template-spicedb-auth: '{{- with secret "secrets/data/apps/spicedb/auth" + -}} + + SPICEDB_GRPC_PRESHARED_KEY=''{{ index .Data.data "preshared_key" }}'' + + {{- end -}}' + spec: + serviceAccountName: spicedb-vault + initContainers: + - name: vault-runtime + image: hashicorp/vault:1.21.2 + command: + - /bin/sh + - -ec + args: + - cp /bin/busybox /lib/ld-musl-x86_64.so.1 /vault-runtime/ + resources: + requests: + cpu: 25m + memory: 16Mi + volumeMounts: + - name: vault-runtime + mountPath: /vault-runtime + - name: spicedb-migrate + image: authzed/spicedb:v1.54.0 + command: &id001 + - /vault-runtime/ld-musl-x86_64.so.1 + - /vault-runtime/busybox + - sh + - -ec + args: + - 'set -a + + . /vault/secrets/spicedb-db + + . /vault/secrets/spicedb-auth + + set +a + + exec spicedb datastore migrate head --datastore-engine postgres + + ' + volumeMounts: &id003 + - name: vault-runtime + mountPath: /vault-runtime + readOnly: true + resources: &id002 + requests: + cpu: 100m + memory: 256Mi + containers: + - name: spicedb + image: authzed/spicedb:v1.54.0 + command: *id001 + args: + - 'set -a + + . /vault/secrets/spicedb-db + + . /vault/secrets/spicedb-auth + + set +a + + exec spicedb serve --datastore-engine postgres --http-enabled --datastore-conn-pool-read-max-open + 10 --datastore-conn-pool-read-min-open 1 --datastore-conn-pool-write-max-open + 5 --datastore-conn-pool-write-min-open 1 + + ' + ports: + - name: grpc + containerPort: 50051 + - name: http + containerPort: 8443 + resources: *id002 + volumeMounts: *id003 + startupProbe: + grpc: + port: 50051 + periodSeconds: 5 + failureThreshold: 60 + readinessProbe: + grpc: + port: 50051 + periodSeconds: 5 + volumes: + - name: vault-runtime + emptyDir: {} +--- +apiVersion: v1 +kind: Service +metadata: + name: spicedb + namespace: spicedb +spec: + selector: + app: spicedb + ports: + - name: grpc + port: 50051 + targetPort: grpc + - name: http + port: 8443 + targetPort: http From 51e41320ecc294b937afdce45b31fdd3f8c9a0ab Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 15:29:35 +0500 Subject: [PATCH 07/32] stand: upgrade IAM with Vault-backed SpiceDB and versioned schema --- apps/iam/stand/kustomization.yaml | 2 + apps/iam/stand/spicedb-schema.yaml | 29 ++++++ apps/iam/stand/spicedb.yaml | 139 +++++++++++++++++++++++++++++ 3 files changed, 170 insertions(+) create mode 100644 apps/iam/stand/spicedb-schema.yaml create mode 100644 apps/iam/stand/spicedb.yaml diff --git a/apps/iam/stand/kustomization.yaml b/apps/iam/stand/kustomization.yaml index 424ec9c..b599ebf 100644 --- a/apps/iam/stand/kustomization.yaml +++ b/apps/iam/stand/kustomization.yaml @@ -2,8 +2,10 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../base + - spicedb-schema.yaml patches: - path: backend.yaml + - path: spicedb.yaml configMapGenerator: - name: iam-contour-env literals: diff --git a/apps/iam/stand/spicedb-schema.yaml b/apps/iam/stand/spicedb-schema.yaml new file mode 100644 index 0000000..cd0a02e --- /dev/null +++ b/apps/iam/stand/spicedb-schema.yaml @@ -0,0 +1,29 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: iam-spicedb-schema + namespace: iam +data: + schema.json: '{"schema": "definition auth_group {\n\trelation grants: django_permission\n}\n\n// + Org structure. department \u0431\u0435\u0437 parent \u043c\u0435\u0436\u0434\u0443 + department.\ndefinition department {\n\trelation tenant: tenant\n\trelation member: + user\n\trelation service_account: service_account\n\trelation groups: auth_group\n\tpermission + group_grants = groups->grants\n}\n\ndefinition django_permission {}\n\ndefinition + position {\n\trelation tenant: tenant\n\trelation department: department\n\trelation + holder: user\n\trelation service_account: service_account\n\trelation groups: + auth_group\n\trelation scoped_resource: resource\n\tpermission group_grants = + groups->grants\n}\n\ndefinition resource {\n\trelation tenant: tenant\n\trelation + parent: resource\n\n\trelation read: service_account | service_account#member\n\trelation + write: service_account | service_account#member\n\trelation admin: service_account + | service_account#member\n\trelation view: service_account | service_account#member\n\n\tpermission + inherited_read = read + write + admin + parent->inherited_read\n\tpermission inherited_write + = write + admin + parent->inherited_write\n\tpermission inherited_admin = admin + + parent->inherited_admin\n\n\tpermission allow_read = inherited_read + view + + tenant->unrestricted\n\tpermission allow_write = inherited_write\n\tpermission + allow_admin = inherited_admin\n}\n\ndefinition service_account {\n\trelation direct_member: + user\n\tpermission member = direct_member\n}\n\ndefinition tenant {\n\trelation + unrestricted: service_account | service_account#member\n}\n\ndefinition user {\n\trelation + direct: django_permission\n\trelation member: auth_group\n\trelation holder: position\n\trelation + department_member: department\n\tpermission global_grant = direct + member->grants + + holder->group_grants + department_member->group_grants\n\tpermission resource_position_grant + = holder->group_grants\n}\n"}' diff --git a/apps/iam/stand/spicedb.yaml b/apps/iam/stand/spicedb.yaml new file mode 100644 index 0000000..9438cf4 --- /dev/null +++ b/apps/iam/stand/spicedb.yaml @@ -0,0 +1,139 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: iam-backend + namespace: iam +spec: + values: + services: + backend: + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/iams:contour_d5c05e7e + deployment: + args: + _default: + - 'set -a + + [ -f /vault/secrets/iam-db ] && . /vault/secrets/iam-db + + [ -f /vault/secrets/iam-zitadel ] && . /vault/secrets/iam-zitadel + + [ -f /vault/secrets/iam-kafka ] && . /vault/secrets/iam-kafka + + [ -f /vault/secrets/iam-s3 ] && . /vault/secrets/iam-s3 + + [ -f /vault/secrets/iam-spicedb ] && . /vault/secrets/iam-spicedb + + set +a + + exec ./server + + ' + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 0 + maxSurge: 1 + probes: + readiness: + enabled: true + httpGet: + path: + _default: /api/health + port: + _default: 8080 + periodSeconds: + _default: 5 + timeoutSeconds: + _default: 3 + envs: + - name: ENVIRONMENT + value: + _default: prod + - name: LOG_LEVEL + value: + _default: debug + - name: AUTH_ENABLED + value: + _default: 'true' + - name: HTTP_PORT + value: + _default: '8080' + - name: HTTP_READ_BUFFER_SIZE + value: + _default: '131072' + - name: DB_MIGRATIONS_PATH + value: + _default: migrations + - name: ZITADEL_ENABLED + value: + _default: 'true' + - name: ZITADEL_HOST + value: + _default: https://${HOST_LOGIN} + - name: ZITADEL_ORG_RULES_FILE + value: + _default: config/zitadel/org-rules-prod.json + - name: S3_ENABLED + value: + _default: 'true' + - name: S3_ENDPOINT_URL + value: + _default: http://${MINIO_ENDPOINT} + - name: S3_BUCKET_NAME + value: + _default: django + - name: S3_REGION + value: + _default: ru-central1 + - name: S3_PRESIGN_EXPIRES + value: + _default: 1h + - name: KAFKA_ENABLED + value: + _default: 'false' + - name: KAFKA_SSL_CAFILE + value: + _default: /etc/ca-certificates/Yandex/ca-cert + - name: KAFKA_TOPIC_LEGACY_AMS_SYNC + value: + _default: ams-sync + - name: SPICEDB_ENDPOINT + value: + _default: spicedb.spicedb.svc.cluster.local:50051 + - name: SPICEDB_INSECURE + value: + _default: 'true' + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-iam-spicedb: secrets/data/apps/spicedb/auth + vault.hashicorp.com/agent-inject-template-iam-spicedb: '{{- with secret + "secrets/data/apps/spicedb/auth" -}} + + SPICEDB_TOKEN=''{{ index .Data.data "preshared_key" }}'' + + {{- end -}}' + traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200,8443,50051 + postRenderers: + - kustomize: + patches: + - target: + kind: Deployment + name: iam-backend + patch: "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: iam-backend\n\ + spec:\n template:\n metadata:\n annotations:\n checksum/spicedb-schema:\ + \ 72606779239bef9fe18170545d8fb3d70581581048aeea55a390d414197f1ce6\n \ + \ spec:\n initContainers:\n - name: spicedb-schema\n image:\ + \ cr.yandex/crp3ccidau046kdj8g9q/vault/vault:1.21.2\n command:\n\ + \ - /bin/sh\n - -ec\n args:\n - \". /vault/secrets/iam-spicedb\\\ + nfor attempt in $(seq 1 60); do\\n if wget\\\n \\ -qO /tmp/schema-result.json\ + \ --header=\\\"Authorization: Bearer $SPICEDB_TOKEN\\\"\\\n \\\ + \ --header=\\\"Content-Type: application/json\\\" --post-file=/schema/schema.json\\\ + \n \\ http://spicedb.spicedb.svc.cluster.local:8443/v1/schema/write;\ + \ then\\n\\\n \\ echo \\\"SpiceDB schema loaded\\\"\\n exit\ + \ 0\\n fi\\n sleep 2\\ndone\\n\\\n exit 1\\n\"\n resources:\n\ + \ requests:\n cpu: 25m\n memory: 32Mi\n \ + \ volumeMounts:\n - name: spicedb-schema\n mountPath:\ + \ /schema\n readOnly: true\n volumes:\n - name: spicedb-schema\n\ + \ configMap:\n name: iam-spicedb-schema\n" From c418f1dd462d30a768634317d8d95a4ba1da7d03 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 15:35:01 +0500 Subject: [PATCH 08/32] stand: connect IAM to Django database containing legacy resources --- apps/iam/stand/spicedb.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/iam/stand/spicedb.yaml b/apps/iam/stand/spicedb.yaml index 9438cf4..b65f944 100644 --- a/apps/iam/stand/spicedb.yaml +++ b/apps/iam/stand/spicedb.yaml @@ -115,6 +115,15 @@ spec: {{- end -}}' traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200,8443,50051 + vault.hashicorp.com/agent-inject-secret-iam-db: secrets/data/apps/django/postgres + vault.hashicorp.com/agent-inject-template-iam-db: '{{- with secret "secrets/data/apps/django/postgres" + -}} + + DB_DSN=postgres://{{ index .Data.data "username" }}:{{ index .Data.data + "password" }}@{{ index .Data.data "host" }}:{{ index .Data.data "port" + }}/{{ index .Data.data "database" }} + + {{- end -}}' postRenderers: - kustomize: patches: From a7be87135c52ce353b0e77dc3b7d466df0fbe6d7 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 15:36:44 +0500 Subject: [PATCH 09/32] stand: add stage frontend/export services and align IAM integrations --- .../stand/admin-frontend.yaml | 79 +++ .../stand/kustomization.yaml | 1 + apps/django/stand/export-project.yaml | 88 +++ apps/django/stand/kustomization.yaml | 1 + apps/premises/stand/iam-compat-configmap.yaml | 19 + apps/premises/stand/iam.yaml | 107 ++++ apps/premises/stand/kustomization.yaml | 3 + clusters/stand/50-apps/kustomization.yaml | 1 + clusters/stand/50-apps/stage-env.yaml | 528 ++++++++++++++++++ .../istio-config/stand/istio-config.yaml | 13 + 10 files changed, 840 insertions(+) create mode 100644 apps/control-interface/stand/admin-frontend.yaml create mode 100644 apps/django/stand/export-project.yaml create mode 100644 apps/premises/stand/iam-compat-configmap.yaml create mode 100644 apps/premises/stand/iam.yaml create mode 100644 clusters/stand/50-apps/stage-env.yaml diff --git a/apps/control-interface/stand/admin-frontend.yaml b/apps/control-interface/stand/admin-frontend.yaml new file mode 100644 index 0000000..e200dca --- /dev/null +++ b/apps/control-interface/stand/admin-frontend.yaml @@ -0,0 +1,79 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: admin-frontend + namespace: django +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: 1 + upgrade: + remediation: + retries: 1 + values: + global: + env: _default + services: + admin-frontend: + enabled: true + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/admin-frontend:uralkal_4d0a3684 + pullPolicy: + _default: IfNotPresent + deployment: + enabled: true + name: + _default: admin-frontend + replicaCount: + _default: 1 + port: + _default: 80 + resources: + requests: + cpu: + _default: 25m + memory: + _default: 128Mi + probes: + liveness: + enabled: false + readiness: + enabled: false + service: + enabled: true + name: + _default: admin-frontend-svc + type: + _default: ClusterIP + port: + _default: 8080 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + commitSha: '' + gitlabUri: '' + gitlabJobUrl: '' + owner: '' + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: '2' + sidecar.istio.io/proxyMemoryLimit: 1Gi diff --git a/apps/control-interface/stand/kustomization.yaml b/apps/control-interface/stand/kustomization.yaml index 27bb5cb..2c3147a 100644 --- a/apps/control-interface/stand/kustomization.yaml +++ b/apps/control-interface/stand/kustomization.yaml @@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../base + - admin-frontend.yaml diff --git a/apps/django/stand/export-project.yaml b/apps/django/stand/export-project.yaml new file mode 100644 index 0000000..ee0222d --- /dev/null +++ b/apps/django/stand/export-project.yaml @@ -0,0 +1,88 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: export-project + namespace: django +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 + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/export-project:prod_ef8aa756 + pullPolicy: + _default: IfNotPresent + deployment: + enabled: true + name: + _default: export-project + replicaCount: + _default: 1 + stage: 1 + preprod: 3 + production: 3 + port: + _default: 8000 + probes: + liveness: + enabled: false + readiness: + enabled: false + resources: + requests: + cpu: + _default: 25m + memory: + _default: 128Mi + service: + enabled: true + name: + _default: export-project-service + type: + _default: ClusterIP + port: + _default: 8000 + targetPort: + _default: 8000 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + labels: + monitoring: prometheus + envs: + - name: TIMEOUT + value: + _default: '180' + commitSha: '' + gitlabUri: '' + gitlabJobUrl: '' + owner: '' + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: '2' + sidecar.istio.io/proxyMemoryLimit: 1Gi diff --git a/apps/django/stand/kustomization.yaml b/apps/django/stand/kustomization.yaml index 6eaaa0a..93a3fe2 100644 --- a/apps/django/stand/kustomization.yaml +++ b/apps/django/stand/kustomization.yaml @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../base + - export-project.yaml - service-user-job.yaml patches: - path: backend.yaml diff --git a/apps/premises/stand/iam-compat-configmap.yaml b/apps/premises/stand/iam-compat-configmap.yaml new file mode 100644 index 0000000..ee9aec6 --- /dev/null +++ b/apps/premises/stand/iam-compat-configmap.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: premises-iam-compat + namespace: premises +data: + patch.py: "from pathlib import Path\n\nsource = Path(\"/premises/src/service/premise/permission.py\"\ + ).read_text()\nold = \" config=IAMConfig.from_environment(config.srx_sdk.iam_environment),\"\ + \nnew = \" config=iam_config,\"\nif source.count(old) != 1:\n raise\ + \ RuntimeError(\"Unexpected IAM configuration in premises image\")\nimports =\ + \ \"from urllib.parse import urlsplit\\nfrom srx_sdk.iam.config import IAMHttpConfig\\\ + n\"\nconfiguration = \"\"\"\niam_config = IAMConfig.from_environment(config.srx_sdk.iam_environment)\n\ + if config.srx_sdk.iam_route:\n iam_url = urlsplit(config.srx_sdk.iam_route)\n\ + \ iam_config.http_config = IAMHttpConfig(\n host=iam_url.hostname,\n\ + \ port=iam_url.port or 80,\n protocol=iam_url.scheme,\n )\n\n\ + \n\"\"\"\npatched = imports + source.replace(old, new, 1)\npatched = patched.replace(\"\ + class PremisePermissionService:\", configuration + \"class PremisePermissionService:\"\ + , 1)\ncompile(patched, \"permission.py\", \"exec\")\nPath(\"/patched/permission.py\"\ + ).write_text(patched)\n" diff --git a/apps/premises/stand/iam.yaml b/apps/premises/stand/iam.yaml new file mode 100644 index 0000000..ced556a --- /dev/null +++ b/apps/premises/stand/iam.yaml @@ -0,0 +1,107 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: premises +spec: + values: + services: + backend: + envs: + - name: DEBUG + value: + _default: 'false' + - name: HTTP_ROOT_PATH + value: + _default: /premises + - name: JWT_AUTH_ENABLE + value: + _default: 'true' + - name: GUNICORN_WORKERS + value: + _default: '3' + - name: FASTSTREAM_WORKERS + value: + _default: '3' + - name: DATABASE_POOL_SIZE + value: + _default: '5' + - name: KAFKA_EAV_ASSET_TOPIC_NAME + value: + _default: assets_broadcast + - name: KAFKA_SSL_CERT + value: + _default: '' + - name: S3_BUCKET + value: + _default: premises + - name: EXPORT_TTL_MINUTES + value: + _default: '30' + - name: EXPORT_MAX_WORKERS + value: + _default: '4' + - name: EXPORT_S3_KEY_PREFIX + value: + _default: premise-export + - name: ATTACHMENT_MAX_SIZE_BYTES + value: + _default: '314572800' + - name: ATTACHMENT_S3_KEY_PREFIX + value: + _default: attachment/ + - name: OTEL_ENABLE + value: + _default: 'false' + - name: OTEL_URL + value: + _default: http://signoz-otel-collector-external.signoz.svc.cluster.local:4317 + - name: OTEL_SERVICE_NAME + value: + _default: premises-backend + - name: OTEL_INSECURE + value: + _default: 'true' + - name: SRX_SDK_IAM_ENVIRONMENT + value: + _default: production + - name: WORKFLOWS_HOST + value: + _default: http://backend-svc.processing.svc.cluster.local:80 + - name: WORKFLOWS_GENERATION_IMAGE + value: + _default: cr.yandex/crp3ccidau046kdj8g9q/rendering-template:master + - name: WORKFLOWS_DOCX_TO_PDF_IMAGE + value: + _default: cr.yandex/crp3ccidau046kdj8g9q/docx-to-pdf:latest + - name: WORKFLOWS_CALLBACK_IMAGE + value: + _default: cr.yandex/crp3ccidau046kdj8g9q/webhook-caller:master + - name: WORKFLOWS_CALLBACK_HOST + value: + _default: http://backend-svc.premises.svc.cluster.local:80 + - name: WORKFLOWS_RESULT_PATH + value: + _default: premises-prod + - name: SRX_SDK_IAM_ROUTE + value: + _default: http://iam-backend.iam.svc.cluster.local:8000 + postRenderers: + - kustomize: + patches: + - target: + kind: Deployment + name: premises-backend + patch: "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: premises-backend\n\ + spec:\n template:\n spec:\n initContainers:\n - name: prepare-iam-compat\n\ + \ image: cr.yandex/crp3ccidau046kdj8g9q/premises-backend:production_216148a9\n\ + \ command:\n - python\n - /compat/patch.py\n \ + \ resources:\n requests:\n cpu: 25m\n memory:\ + \ 64Mi\n volumeMounts:\n - name: iam-compat\n mountPath:\ + \ /compat\n readOnly: true\n - name: iam-patched-code\n\ + \ mountPath: /patched\n containers:\n - name: backend\n\ + \ volumeMounts:\n - name: iam-patched-code\n mountPath:\ + \ /premises/src/service/premise/permission.py\n subPath: permission.py\n\ + \ readOnly: true\n volumes:\n - name: iam-compat\n \ + \ configMap:\n name: premises-iam-compat\n - name: iam-patched-code\n\ + \ emptyDir: {}\n" diff --git a/apps/premises/stand/kustomization.yaml b/apps/premises/stand/kustomization.yaml index 27bb5cb..9671564 100644 --- a/apps/premises/stand/kustomization.yaml +++ b/apps/premises/stand/kustomization.yaml @@ -2,3 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../base + - iam-compat-configmap.yaml +patches: + - path: iam.yaml diff --git a/clusters/stand/50-apps/kustomization.yaml b/clusters/stand/50-apps/kustomization.yaml index 1b639bd..a45dbed 100644 --- a/clusters/stand/50-apps/kustomization.yaml +++ b/clusters/stand/50-apps/kustomization.yaml @@ -41,3 +41,4 @@ resources: patches: - path: resource-requests.yaml - path: stage-images.yaml + - path: stage-env.yaml diff --git a/clusters/stand/50-apps/stage-env.yaml b/clusters/stand/50-apps/stage-env.yaml new file mode 100644 index 0000000..7fa205b --- /dev/null +++ b/clusters/stand/50-apps/stage-env.yaml @@ -0,0 +1,528 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: django +spec: + values: + services: + backend: + envs: + - name: ALLOWED_HOSTS + value: + _default: '*' + - name: SERVER_USE_CHANGELOG + value: + _default: '0' + - name: SERVER_ZITADEL_ENABLED + value: + _default: 'True' + - name: DJANGO_SETTINGS_MODULE + value: + _default: config.settings.production + - name: CELERY_REDIS_HOST + value: + _default: redis + - name: CELERY_REDIS_PORT + value: + _default: '6379' + - name: DJANGO_REDIS_HOST + value: + _default: redis + - name: SERVER_EXTERNAL_FIND_BY_USERNAME_ENABLED + value: + _default: 'True' + - name: SERVER_EXTERNAL_FIND_BY_EMAIL_ENABLED + value: + _default: 'True' + - name: DJANGO_REDIS_PORT + value: + _default: '6379' + - name: BIMV2_INTERNAL_HOST + value: + _default: http://bim-backend-v2-service.bim-api + - name: BIMV2_TIMEOUT + value: + _default: '60' + - name: JWT_KID + value: + _default: '1' + - name: PDM_SYNC + value: + _default: '1' + - name: KC_SYNC_ENABLE + value: + _default: '0' + - name: MEASUREMENTS_HOST + value: + _default: http://measurements-service.measurements.svc.cluster.local:8000/api + - name: MEASUREMENTS_USE_MEASUREMENTS + value: + _default: '1' + - name: SERVER_API_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN} + - name: SERVER_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN} + - name: WORKFLOWS_HOST + value: + _default: http://backend-svc.processing.svc.cluster.local:80 + - name: WORKFLOWS_BASE_HOST + value: + _default: http://backend-svc.django.svc.cluster.local:80 + - name: WORKFLOWS_PREFIX + value: + _default: /internal/v1 + - name: WORKFLOWS_USE + value: + _default: '1' + - name: SERVER_S3_STREAM_IMPORT + value: + _default: '1' + - name: SERVER_SAVE_DIFF_DEM + value: + _default: '1' + - name: SERVER_USE_CLICKHOUSE + value: + _default: '0' + - name: SERVER_USE_CREATE_COMPARED_GEOTIFF_TASK + value: + _default: '0' + - name: SERVER_USE_DJANGO_STORAGE + value: + _default: '1' + - name: SERVER_USE_METASHAPE + value: + _default: '0' + - name: SERVER_CHANGELOG_MODE_SYSTEM_LOG + value: + _default: '1' + - name: SERVER_CHANGELOG_MODE + value: + _default: '0' + - name: SERVER_DJANGO_URLS + value: + _default: '1' + - name: CHECK_IMPORT_HASH + value: + _default: '1' + - name: EAV_ENABLE + value: + _default: '1' + - name: SERVER_CHECK_IMPORT_HASH + value: + _default: '1' + - name: SERVER_CHUNKED_PATH + value: + _default: /tmp/chunked_uploads/%Y/%m/%d + - name: SERVER_HIDE_USER_SCROLL_PERMISSIONS + value: + _default: '0' + - name: SERVER_USE_WRORKFLOW_STATUS + value: + _default: '1' + - name: ZITADEL_HOST + value: + _default: https://${HOST_LOGIN} + - name: SERVER_KAFKA_ENABLED + value: + _default: 'False' + - name: KAFKA_TOPICS + value: + _default: '{"planning": "message-hub-stage", "ams-sync": "ams-sync"}' + - name: KAFKA_SSL_CAFILE + value: + _default: /usr/local/share/ca-certificates/kafka.crt + - name: KC_USE_REDIRECT_LOGOUT + value: + _default: 'False' + - name: DJANGO_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN} + - name: RESOURCES_INTERNAL_HOST + value: + _default: http://iam-backend.iam.svc.cluster.local:8000 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: django +spec: + values: + services: + celery: + envs: + - name: ALLOWED_HOSTS + value: + _default: '*' + - name: SERVER_USE_CHANGELOG + value: + _default: '0' + - name: SERVER_ZITADEL_ENABLED + value: + _default: 'False' + - name: DJANGO_SETTINGS_MODULE + value: + _default: config.settings.production + - name: CELERY_REDIS_HOST + value: + _default: redis + - name: CELERY_REDIS_PORT + value: + _default: '6379' + - name: DJANGO_REDIS_HOST + value: + _default: redis + - name: DJANGO_REDIS_PORT + value: + _default: '6379' + - name: BIMV2_INTERNAL_HOST + value: + _default: http://bim-backend-v2-service.bim-api + - name: BIMV2_TIMEOUT + value: + _default: '60' + - name: JWT_KID + value: + _default: '1' + - name: PDM_SYNC + value: + _default: '1' + - name: KC_SYNC_ENABLE + value: + _default: '0' + - name: MEASUREMENTS_HOST + value: + _default: http://measurements-service.measurements.svc.cluster.local:8000/api + - name: MEASUREMENTS_USE_MEASUREMENTS + value: + _default: '1' + - name: SERVER_API_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN} + - name: SERVER_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN} + - name: WORKFLOWS_HOST + value: + _default: http://backend-svc.processing.svc.cluster.local:80 + - name: WORKFLOWS_BASE_HOST + value: + _default: http://backend-svc.django.svc.cluster.local:80 + - name: WORKFLOWS_USE + value: + _default: '1' + - name: SERVER_S3_STREAM_IMPORT + value: + _default: '1' + - name: SERVER_SAVE_DIFF_DEM + value: + _default: '1' + - name: SERVER_USE_CLICKHOUSE + value: + _default: '0' + - name: SERVER_USE_CREATE_COMPARED_GEOTIFF_TASK + value: + _default: '0' + - name: SERVER_USE_DJANGO_STORAGE + value: + _default: '1' + - name: SERVER_USE_METASHAPE + value: + _default: '0' + - name: SERVER_CHANGELOG_MODE_SYSTEM_LOG + value: + _default: '1' + - name: SERVER_CHANGELOG_MODE + value: + _default: '0' + - name: SERVER_DJANGO_URLS + value: + _default: '1' + - name: CHECK_IMPORT_HASH + value: + _default: '1' + - name: EAV_ENABLE + value: + _default: '1' + - name: SERVER_CHECK_IMPORT_HASH + value: + _default: '1' + - name: SERVER_CHUNKED_PATH + value: + _default: /tmp/chunked_uploads/%Y/%m/%d + - name: SERVER_HIDE_USER_SCROLL_PERMISSIONS + value: + _default: '0' + - name: SERVER_USE_WRORKFLOW_STATUS + value: + _default: '1' + - name: ZITADEL_HOST + value: + _default: https://${HOST_LOGIN} + - name: SERVER_KAFKA_ENABLED + value: + _default: 'False' + - name: KAFKA_TOPICS + value: + _default: '{"planning": "message-hub-stage", "ams-sync": "ams-sync"}' + - name: KAFKA_SSL_CAFILE + value: + _default: /usr/local/share/ca-certificates/kafka.crt + - name: KC_USE_REDIRECT_LOGOUT + value: + _default: 'False' + - name: RESOURCES_INTERNAL_HOST + value: + _default: http://iam-backend.iam.svc.cluster.local:8000 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: rfi +spec: + values: + services: + backend: + envs: + - name: JWT_AUTH_ENABLE + value: + _default: 'True' + - name: NOTIFICATIONS_ENABLE + value: + _default: 'false' + - name: NOTIFICATIONS_EMAIL_FROM + value: + _default: hello@sarex.io + - name: NOTIFICATIONS_SERVICE_URL + value: + _default: https://sarex.${CONTOUR_DOMAIN}/rfi + - name: SAREX_BACKEND_URL + value: + _default: http://backend-svc.django.svc.cluster.local + - name: EAV_URL + value: + _default: http://backend-svc.eav.svc.cluster.local:80 + - name: GATEWAY_URL + value: + _default: http://pdm-svc.documentations.svc.cluster.local:80 + - name: RESOURCES_API_HOST + value: + _default: http://iam-backend.iam.svc.cluster.local:8000 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: rfi +spec: + values: + services: + celery: + envs: + - name: JWT_AUTH_ENABLE + value: + _default: 'True' + - name: NOTIFICATIONS_ENABLE + value: + _default: 'false' + - name: NOTIFICATIONS_EMAIL_FROM + value: + _default: hello@sarex.io + - name: NOTIFICATIONS_SERVICE_URL + value: + _default: https://sarex.${CONTOUR_DOMAIN}/rfi + - name: SAREX_BACKEND_URL + value: + _default: http://backend-svc.django.svc.cluster.local:80 + - name: EAV_URL + value: + _default: http://backend-svc.eav.svc.cluster.local:80 + - name: GATEWAY_URL + value: + _default: http://pdm-svc.documentations.svc.cluster.local:80 + - name: RESOURCES_API_HOST + value: + _default: http://iam-backend.iam.svc.cluster.local:8000 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: message-hub + namespace: message-hub +spec: + values: + services: + backend: + 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": "message-hub-prod", "assets":"assets_broadcast","issues": + "issues_broadcast_prod", "resources_updated": "iam.resource.updated.v2", + "resources_deleted": "iam.resource.deleted.v2"}' + - 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.django.svc.cluster.local + - name: CACHE_PORT + value: + _default: '6379' + - name: PDF_CONVERTER_HOST + value: + _default: http://export-project-service.django.svc.cluster.local:8000 +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: flows +spec: + values: + services: + backend: + envs: + - name: LOG_LEVEL + value: + _default: DEBUG + - name: BASE_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN} + - 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:8000/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-svc.documentations.svc.cluster.local:80 + - name: RESOURCE_URL + value: + _default: http://iam-backend.iam.svc.cluster.local:8000 + - name: SERVICE_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN}/flows/api/v1 + - name: SMTP_HOST + value: + _default: mail.rwb.ru + - name: CHECKLIST_HOST + value: + _default: http://backend-svc.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://backend-svc.processing.svc.cluster.local:80/api/v1 + - name: WORKFLOWS_TIMEOUT + value: + _default: '60' + - name: DOCUMENTATION_TIMEOUT + value: + _default: '60' + - name: PROXY_PATH_PREFIX + value: + _default: /flows +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: notes +spec: + values: + services: + backend: + envs: + - name: PG_SSL_MODE + value: + _default: verify-full + - name: DJANGO_HOST + value: + _default: http://backend-svc.django.svc.cluster.local + - name: BASE_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN}/notes + - name: TIMEOUT + value: + _default: '120' + - name: FAAS_SERVICE + value: + _default: https://api.sarex.io/lambdas + - name: WORKSPACE_URL + value: + _default: http://backend-svc.workspaces.svc.cluster.local/api/v1 + - name: WORKFLOW_HOST + value: + _default: http://backend-svc.processing.svc.cluster.local/api/v1 + - name: WORKFLOW_TAG + value: + _default: stable + - name: RESOURCE_URL + value: + _default: https://api.sarex.io/resources/api/v1 + - name: SYNC_RESOURCE_ID + value: + _default: '0' + - name: ENABLE_ND + value: + _default: '0' + - name: ATTACHMENT_HOST + value: + _default: http://attachments-service.attachments.svc.cluster.local:8000/api/v1 + - name: DOCUMENTATIONS_HOST + value: + _default: http://backend-api-svc.documentations.svc.cluster.local:80/api/v1 diff --git a/infrastructure/istio-config/stand/istio-config.yaml b/infrastructure/istio-config/stand/istio-config.yaml index 504e59c..96d18b4 100644 --- a/infrastructure/istio-config/stand/istio-config.yaml +++ b/infrastructure/istio-config/stand/istio-config.yaml @@ -987,6 +987,19 @@ spec: rewrite: / service: frontend-svc.control-interface.svc.cluster.local port: 8080 + admin-frontend: + name: admin-frontend-virt-service + namespace: default + hosts: + - sarex.stand.sarex.tech + gateways: + - default/platform-gateway + routes: + - path: + prefix: /admin-frontend/static/ + rewrite: / + service: admin-frontend-svc.django.svc.cluster.local + port: 8080 s3-proxy-media: name: s3-proxy-media-virt-service namespace: default From 2862c98202d8f765c2f29e4bd77afa66c8d8f32b Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 16:20:47 +0500 Subject: [PATCH 10/32] stand: deploy CDE API and six workers at preprod_905f8821 with Vault --- .../stand/cde-api/cde-api-worker-copy.yaml | 399 ++++++++++++++ .../stand/cde-api/cde-api-worker-move.yaml | 381 ++++++++++++++ .../cde-api-worker-s32d-create-upload.yaml | 277 ++++++++++ .../cde-api-worker-s32d-handle-error.yaml | 271 ++++++++++ ...cde-api-worker-s32d-process-workflows.yaml | 340 ++++++++++++ ...cde-api-worker-s32d-publish-documents.yaml | 286 ++++++++++ .../documentations/stand/cde-api/cde-api.yaml | 487 ++++++++++++++++++ .../stand/cde-api/kustomization.yaml | 12 + .../stand/cde-api/tasks-execution-config.yaml | 66 +++ .../stand/cde-api/virtualservice.yaml | 52 ++ apps/documentations/stand/kustomization.yaml | 1 + 11 files changed, 2572 insertions(+) create mode 100644 apps/documentations/stand/cde-api/cde-api-worker-copy.yaml create mode 100644 apps/documentations/stand/cde-api/cde-api-worker-move.yaml create mode 100644 apps/documentations/stand/cde-api/cde-api-worker-s32d-create-upload.yaml create mode 100644 apps/documentations/stand/cde-api/cde-api-worker-s32d-handle-error.yaml create mode 100644 apps/documentations/stand/cde-api/cde-api-worker-s32d-process-workflows.yaml create mode 100644 apps/documentations/stand/cde-api/cde-api-worker-s32d-publish-documents.yaml create mode 100644 apps/documentations/stand/cde-api/cde-api.yaml create mode 100644 apps/documentations/stand/cde-api/kustomization.yaml create mode 100644 apps/documentations/stand/cde-api/tasks-execution-config.yaml create mode 100644 apps/documentations/stand/cde-api/virtualservice.yaml diff --git a/apps/documentations/stand/cde-api/cde-api-worker-copy.yaml b/apps/documentations/stand/cde-api/cde-api-worker-copy.yaml new file mode 100644 index 0000000..ea8f179 --- /dev/null +++ b/apps/documentations/stand/cde-api/cde-api-worker-copy.yaml @@ -0,0 +1,399 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-api-worker-copy + namespace: documentations +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: + worker-copy: + enabled: true + deployment: + enabled: true + name: + _default: worker-copy + replicaCount: + _default: 1 + revisionHistoryLimit: + _default: 5 + resources: + requests: + cpu: + _default: 25m + memory: + _default: 128Mi + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + command: + _default: + - /bin/sh + - -ec + args: + _default: + - 'set -a + + . /vault/secrets/cde-api-db + + . /vault/secrets/cde-api-s3 + + . /vault/secrets/cde-api-zeebe + + . /vault/secrets/cde-api-rabbitmq + + set +a + + exec /opt/worker + + ' + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-copy:preprod_905f8821 + pullPolicy: + _default: IfNotPresent + service: + enabled: false + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + envs: + - name: CDE_API_EAV_HOST + value: + _default: http://backend-svc.eav.svc.cluster.local:80 + - name: CDE_API_APP_NAME + value: + _default: worker-copy + - name: CDE_API_LOG_LEVEL + value: + _default: info + - name: CDE_API_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE + value: + _default: '5368709120' + - name: CDE_API_S3_MAX_PART_SIZE + value: + _default: '524288000' + - name: CDE_API_S3_UPLOAD_STALL_TIMEOUT + value: + _default: 10m + - name: CDE_API_SYSTEMLOG_BASE_URL + value: + _default: http://backend-svc.system-log.svc.cluster.local:80 + - name: CDE_API_SYSTEMLOG_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_DATABASE__SSLMODE + value: + _default: disable + - name: CDE_API_DATABASE__INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_DATABASE_MAX_CONN_LIFETIME + value: + _default: 30m + - name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME + value: + _default: 10m + - name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD + value: + _default: 30s + - name: CDE_API_DATABASE_POOL_SIZE + value: + _default: '2' + - name: CDE_API_REDIS__SSL + value: + _default: 'false' + - name: CDE_API_REDIS__POOL_SIZE + value: + _default: '5' + - name: CDE_API_REDIS__MIN_IDLE_CONNS + value: + _default: '1' + - name: CDE_API_REDIS__DIAL_TIMEOUT_MS + value: + _default: '5000' + - name: CDE_API_REDIS__READ_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__WRITE_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__DEFAULT_TTL_MINUTES + value: + _default: '10' + - name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED + value: + _default: 'false' + - name: CDE_API_S3_USE_SSL + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_LOOKUP + value: + _default: auto + - name: CDE_API_S3_INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_S3_CHECK_BUCKET + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_NAME + value: + _default: documentations + - name: CDE_API_ZEEBE_USE_PLAINTEXT + value: + _default: 'true' + - name: CDE_API_MAILER_BASE_URL + value: + _default: http://mailer-service.mailer:8000 + - name: CDE_API_MAILER_FROM_EMAIL + value: + _default: noreply@sarex.io + - name: CDE_API_WORKFLOW_BASE_URL + value: + _default: http://backend-svc.processing.svc.cluster.local:80 + - name: CDE_API_WORKFLOW_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKFLOW_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_URL + value: + _default: http://backend-svc.bim.svc.cluster.local:80 + - name: CDE_API_BIMAPI_V2_URL + value: + _default: http://backend-svc.bim.svc.cluster.local:80 + - name: CDE_API_BIMAPI_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_BIMAPI_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_TIMEOUT_V2_MS + value: + _default: '300000' + - name: CDE_API_CONTAINER_REGISTRY + value: + _default: cr.yandex/crp3ccidau046kdj8g9q + - name: CDE_API_WORKFLOWS_IMAGES_VERSION + value: + _default: master + - name: CDE_API_DJANGO_HOST + value: + _default: http://backend-svc.django.svc.cluster.local:80 + - name: CDE_API_ENVIRONMENT + value: + _default: stand + - name: CDE_API_CONVERTED_PDF_TO_S3 + value: + _default: 'true' + - name: CDE_API_CONVERT_DXF_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_CONVERT_DWG_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_USE_BIMV1_FOR_BIMV2 + value: + _default: 'false' + - name: CDE_API_LAST_MASTER_BIM + value: + _default: '2000' + - name: CDE_API_LAST_SLAVE_1_BIM + value: + _default: '2250' + - name: CDE_API_LAST_SLAVE_2_BIM + value: + _default: '15000' + - name: CDE_API_USE_BIM_INSERTER + value: + _default: 'true' + - name: CDE_API_USE_LEGACY_BIM_FLOW + value: + _default: 'true' + - name: CDE_API_DOCUMENTATION_V2_URL + value: + _default: http://backend-api-svc.documentations.svc.cluster.local:80 + - name: CDE_API_INTERNAL_URL + value: + _default: http://cde-api.documentations.svc.cluster.local:8000 + - name: CDE_API_FLOWS_URL + value: + _default: http://backend-svc.flows.svc.cluster.local:80 + - name: CDE_API_TRANSMITTALS_URL + value: + _default: http://backend-svc.transmittal.svc.cluster.local:80 + - name: CDE_API_WORKFLOWS_CONFIG_FILEPATH + value: + _default: /etc/app/tasks_execution_config.json + - name: CDE_API_WORKSPACE_BASE_URL + value: + _default: http://backend-svc.workspaces.svc.cluster.local:80 + - name: CDE_API_WORKSPACE_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKSPACE_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_RABBITMQ__MARKS_ROUTING_KEY + value: + _default: pdf_markings_input + - name: CDE_API_RABBITMQ__HASHER_ROUTING_KEY + value: + _default: hash.compute.normal + - name: CDE_API_RABBITMQ__HASHER_EXCHANGE + value: + _default: hash.compute + - name: CDE_API_ISSUES_SYNC_ENABLED + value: + _default: 'false' + - name: CDE_API_ISSUES_BASE_URL + value: + _default: http://backend-svc.issues.svc.cluster.local:80 + - name: CDE_API_ISSUES_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_ISSUES_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_COPY_WORKER_JOBS + value: + _default: '' + - name: CDE_API_COPY_JOB_TIMEOUT_MINUTES + value: + _default: '30' + - name: CDE_API_COPY_STEP_PARALLELISM + value: + _default: '1' + - name: CDE_API_COPY_S3_PARALLELISM + value: + _default: '1' + - name: CDE_API_REDIS__HOST + value: + _default: redis.documentations.svc.cluster.local + - name: CDE_API_REDIS__PORT + value: + _default: '6379' + - name: CDE_API_S3_ENDPOINT + value: + _default: minio.storage.svc.cluster.local:9000 + - name: CDE_API_ZEEBE_GATEWAY_ADDRESS + value: + _default: camunda-zeebe-gateway.camunda.svc.cluster.local:26500 + - name: CDE_API_ZEEBE_CLIENT_ID + value: + _default: zeebe + - name: CDE_API_ZEEBE_AUTH_SERVER_URL + value: + _default: http://camunda-keycloak.camunda.svc.cluster.local/auth/realms/camunda-platform/protocol/openid-connect/token + volumes: + _default: + - name: tasks-execution-config + mountPath: + _default: /etc/app/tasks_execution_config.json + subPath: + _default: tasks_execution_config.json + readOnly: + _default: true + configMap: + name: + _default: tasks-execution-config-documentation-v2 + items: + - key: tasks-execution-config-documentation-v2.json + path: + _default: tasks_execution_config.json + defaultMode: + _default: '0644' + serviceAccount: + enabled: + _default: false + name: + _default: documentations-vault + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: '2' + sidecar.istio.io/proxyMemoryLimit: 1Gi + traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200 + vault.hashicorp.com/agent-inject: 'true' + vault.hashicorp.com/agent-init-first: 'true' + vault.hashicorp.com/agent-pre-populate-only: 'true' + vault.hashicorp.com/agent-requests-cpu: 25m + vault.hashicorp.com/auth-path: auth/kubernetes + vault.hashicorp.com/role: documentations + vault.hashicorp.com/agent-inject-secret-cde-api-db: secrets/data/apps/documentations/postgres + vault.hashicorp.com/agent-inject-template-cde-api-db: '{{- with secret + "secrets/data/apps/documentations/postgres" -}} + + CDE_API_DATABASE__HOST=''{{ index .Data.data "host" }}'' + + CDE_API_DATABASE__PORT=''{{ index .Data.data "port" }}'' + + CDE_API_DATABASE__NAME=''{{ index .Data.data "database" }}'' + + CDE_API_DATABASE__USER=''{{ index .Data.data "username" }}'' + + CDE_API_DATABASE__PASSWORD=''{{ index .Data.data "password" }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-s3: secrets/data/minio/apps/documentations + vault.hashicorp.com/agent-inject-template-cde-api-s3: '{{- with secret + "secrets/data/minio/apps/documentations" -}} + + CDE_API_S3_ACCESS_KEY=''{{ or (index .Data.data "access_key_id") (index + .Data.data "access_key") }}'' + + CDE_API_S3_SECRET_KEY=''{{ or (index .Data.data "secret_access_key") + (index .Data.data "secret_key") }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/camunda/identity-components + vault.hashicorp.com/agent-inject-template-cde-api-zeebe: '{{- with secret + "secrets/data/camunda/identity-components" -}} + + CDE_API_ZEEBE_CLIENT_SECRET=''{{ index .Data.data "zeebe-secret" }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-rabbitmq: secrets/data/rabbitmq/apps/cde + vault.hashicorp.com/agent-inject-template-cde-api-rabbitmq: '{{- with + secret "secrets/data/rabbitmq/apps/cde" -}} + + CDE_API_RABBITMQ__HOST=''{{ index .Data.data "host" }}'' + + CDE_API_RABBITMQ__PORT=''{{ index .Data.data "port" }}'' + + CDE_API_RABBITMQ__USER=''{{ index .Data.data "username" }}'' + + CDE_API_RABBITMQ__PASSWORD=''{{ index .Data.data "password" }}'' + + CDE_API_RABBITMQ__VHOST=''{{ index .Data.data "vhost" }}'' + + {{- end -}}' + dependsOn: + - name: cde-api + namespace: documentations diff --git a/apps/documentations/stand/cde-api/cde-api-worker-move.yaml b/apps/documentations/stand/cde-api/cde-api-worker-move.yaml new file mode 100644 index 0000000..b35c356 --- /dev/null +++ b/apps/documentations/stand/cde-api/cde-api-worker-move.yaml @@ -0,0 +1,381 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-api-worker-move + namespace: documentations +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: + worker-move: + enabled: true + deployment: + enabled: true + name: + _default: worker-move + replicaCount: + _default: 1 + revisionHistoryLimit: + _default: 5 + resources: + requests: + cpu: + _default: 25m + memory: + _default: 128Mi + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + command: + _default: + - /bin/sh + - -ec + args: + _default: + - 'set -a + + . /vault/secrets/cde-api-db + + . /vault/secrets/cde-api-s3 + + . /vault/secrets/cde-api-zeebe + + . /vault/secrets/cde-api-rabbitmq + + set +a + + exec /opt/worker + + ' + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-move:preprod_905f8821 + pullPolicy: + _default: IfNotPresent + service: + enabled: false + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + envs: + - name: CDE_API_EAV_HOST + value: + _default: http://backend-svc.eav.svc.cluster.local:80 + - name: CDE_API_APP_NAME + value: + _default: worker-move + - name: CDE_API_LOG_LEVEL + value: + _default: info + - name: CDE_API_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE + value: + _default: '5368709120' + - name: CDE_API_S3_MAX_PART_SIZE + value: + _default: '524288000' + - name: CDE_API_S3_UPLOAD_STALL_TIMEOUT + value: + _default: 10m + - name: CDE_API_SYSTEMLOG_BASE_URL + value: + _default: http://backend-svc.system-log.svc.cluster.local:80 + - name: CDE_API_SYSTEMLOG_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_DATABASE__SSLMODE + value: + _default: disable + - name: CDE_API_DATABASE__INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_DATABASE_MAX_CONN_LIFETIME + value: + _default: 30m + - name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME + value: + _default: 10m + - name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD + value: + _default: 30s + - name: CDE_API_DATABASE_POOL_SIZE + value: + _default: '2' + - name: CDE_API_REDIS__SSL + value: + _default: 'false' + - name: CDE_API_REDIS__POOL_SIZE + value: + _default: '5' + - name: CDE_API_REDIS__MIN_IDLE_CONNS + value: + _default: '1' + - name: CDE_API_REDIS__DIAL_TIMEOUT_MS + value: + _default: '5000' + - name: CDE_API_REDIS__READ_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__WRITE_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__DEFAULT_TTL_MINUTES + value: + _default: '10' + - name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED + value: + _default: 'false' + - name: CDE_API_S3_USE_SSL + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_LOOKUP + value: + _default: auto + - name: CDE_API_S3_INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_S3_CHECK_BUCKET + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_NAME + value: + _default: documentations + - name: CDE_API_ZEEBE_USE_PLAINTEXT + value: + _default: 'true' + - name: CDE_API_MAILER_BASE_URL + value: + _default: http://mailer-service.mailer:8000 + - name: CDE_API_MAILER_FROM_EMAIL + value: + _default: noreply@sarex.io + - name: CDE_API_WORKFLOW_BASE_URL + value: + _default: http://backend-svc.processing.svc.cluster.local:80 + - name: CDE_API_WORKFLOW_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKFLOW_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_URL + value: + _default: http://backend-svc.bim.svc.cluster.local:80 + - name: CDE_API_BIMAPI_V2_URL + value: + _default: http://backend-svc.bim.svc.cluster.local:80 + - name: CDE_API_BIMAPI_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_BIMAPI_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_TIMEOUT_V2_MS + value: + _default: '300000' + - name: CDE_API_CONTAINER_REGISTRY + value: + _default: cr.yandex/crp3ccidau046kdj8g9q + - name: CDE_API_WORKFLOWS_IMAGES_VERSION + value: + _default: master + - name: CDE_API_DJANGO_HOST + value: + _default: http://backend-svc.django.svc.cluster.local:80 + - name: CDE_API_ENVIRONMENT + value: + _default: stand + - name: CDE_API_CONVERTED_PDF_TO_S3 + value: + _default: 'true' + - name: CDE_API_CONVERT_DXF_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_CONVERT_DWG_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_USE_BIMV1_FOR_BIMV2 + value: + _default: 'false' + - name: CDE_API_LAST_MASTER_BIM + value: + _default: '2000' + - name: CDE_API_LAST_SLAVE_1_BIM + value: + _default: '2250' + - name: CDE_API_LAST_SLAVE_2_BIM + value: + _default: '15000' + - name: CDE_API_USE_BIM_INSERTER + value: + _default: 'true' + - name: CDE_API_USE_LEGACY_BIM_FLOW + value: + _default: 'true' + - name: CDE_API_DOCUMENTATION_V2_URL + value: + _default: http://backend-api-svc.documentations.svc.cluster.local:80 + - name: CDE_API_INTERNAL_URL + value: + _default: http://cde-api.documentations.svc.cluster.local:8000 + - name: CDE_API_FLOWS_URL + value: + _default: http://backend-svc.flows.svc.cluster.local:80 + - name: CDE_API_TRANSMITTALS_URL + value: + _default: http://backend-svc.transmittal.svc.cluster.local:80 + - name: CDE_API_WORKFLOWS_CONFIG_FILEPATH + value: + _default: /etc/app/tasks_execution_config.json + - name: CDE_API_WORKSPACE_BASE_URL + value: + _default: http://backend-svc.workspaces.svc.cluster.local:80 + - name: CDE_API_WORKSPACE_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKSPACE_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_RABBITMQ__MARKS_ROUTING_KEY + value: + _default: pdf_markings_input + - name: CDE_API_RABBITMQ__HASHER_ROUTING_KEY + value: + _default: hash.compute.normal + - name: CDE_API_RABBITMQ__HASHER_EXCHANGE + value: + _default: hash.compute + - name: CDE_API_MOVE_WORKER_JOBS + value: + _default: '' + - name: CDE_API_MOVE_JOB_TIMEOUT_MINUTES + value: + _default: '30' + - name: CDE_API_REDIS__HOST + value: + _default: redis.documentations.svc.cluster.local + - name: CDE_API_REDIS__PORT + value: + _default: '6379' + - name: CDE_API_S3_ENDPOINT + value: + _default: minio.storage.svc.cluster.local:9000 + - name: CDE_API_ZEEBE_GATEWAY_ADDRESS + value: + _default: camunda-zeebe-gateway.camunda.svc.cluster.local:26500 + - name: CDE_API_ZEEBE_CLIENT_ID + value: + _default: zeebe + - name: CDE_API_ZEEBE_AUTH_SERVER_URL + value: + _default: http://camunda-keycloak.camunda.svc.cluster.local/auth/realms/camunda-platform/protocol/openid-connect/token + volumes: + _default: + - name: tasks-execution-config + mountPath: + _default: /etc/app/tasks_execution_config.json + subPath: + _default: tasks_execution_config.json + readOnly: + _default: true + configMap: + name: + _default: tasks-execution-config-documentation-v2 + items: + - key: tasks-execution-config-documentation-v2.json + path: + _default: tasks_execution_config.json + defaultMode: + _default: '0644' + serviceAccount: + enabled: + _default: false + name: + _default: documentations-vault + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: '2' + sidecar.istio.io/proxyMemoryLimit: 1Gi + traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200 + vault.hashicorp.com/agent-inject: 'true' + vault.hashicorp.com/agent-init-first: 'true' + vault.hashicorp.com/agent-pre-populate-only: 'true' + vault.hashicorp.com/agent-requests-cpu: 25m + vault.hashicorp.com/auth-path: auth/kubernetes + vault.hashicorp.com/role: documentations + vault.hashicorp.com/agent-inject-secret-cde-api-db: secrets/data/apps/documentations/postgres + vault.hashicorp.com/agent-inject-template-cde-api-db: '{{- with secret + "secrets/data/apps/documentations/postgres" -}} + + CDE_API_DATABASE__HOST=''{{ index .Data.data "host" }}'' + + CDE_API_DATABASE__PORT=''{{ index .Data.data "port" }}'' + + CDE_API_DATABASE__NAME=''{{ index .Data.data "database" }}'' + + CDE_API_DATABASE__USER=''{{ index .Data.data "username" }}'' + + CDE_API_DATABASE__PASSWORD=''{{ index .Data.data "password" }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-s3: secrets/data/minio/apps/documentations + vault.hashicorp.com/agent-inject-template-cde-api-s3: '{{- with secret + "secrets/data/minio/apps/documentations" -}} + + CDE_API_S3_ACCESS_KEY=''{{ or (index .Data.data "access_key_id") (index + .Data.data "access_key") }}'' + + CDE_API_S3_SECRET_KEY=''{{ or (index .Data.data "secret_access_key") + (index .Data.data "secret_key") }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/camunda/identity-components + vault.hashicorp.com/agent-inject-template-cde-api-zeebe: '{{- with secret + "secrets/data/camunda/identity-components" -}} + + CDE_API_ZEEBE_CLIENT_SECRET=''{{ index .Data.data "zeebe-secret" }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-rabbitmq: secrets/data/rabbitmq/apps/cde + vault.hashicorp.com/agent-inject-template-cde-api-rabbitmq: '{{- with + secret "secrets/data/rabbitmq/apps/cde" -}} + + CDE_API_RABBITMQ__HOST=''{{ index .Data.data "host" }}'' + + CDE_API_RABBITMQ__PORT=''{{ index .Data.data "port" }}'' + + CDE_API_RABBITMQ__USER=''{{ index .Data.data "username" }}'' + + CDE_API_RABBITMQ__PASSWORD=''{{ index .Data.data "password" }}'' + + CDE_API_RABBITMQ__VHOST=''{{ index .Data.data "vhost" }}'' + + {{- end -}}' + dependsOn: + - name: cde-api + namespace: documentations diff --git a/apps/documentations/stand/cde-api/cde-api-worker-s32d-create-upload.yaml b/apps/documentations/stand/cde-api/cde-api-worker-s32d-create-upload.yaml new file mode 100644 index 0000000..16e28e1 --- /dev/null +++ b/apps/documentations/stand/cde-api/cde-api-worker-s32d-create-upload.yaml @@ -0,0 +1,277 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-api-worker-s32d-create-upload + namespace: documentations +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: + worker-s32d-create-upload: + enabled: true + deployment: + enabled: true + name: + _default: worker-s32d-create-upload + replicaCount: + _default: 1 + revisionHistoryLimit: + _default: 5 + resources: + requests: + cpu: + _default: 25m + memory: + _default: 128Mi + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + command: + _default: + - /bin/sh + - -ec + args: + _default: + - 'set -a + + . /vault/secrets/cde-api-db + + . /vault/secrets/cde-api-s3 + + . /vault/secrets/cde-api-zeebe + + set +a + + exec /opt/worker + + ' + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-create-upload:preprod_905f8821 + pullPolicy: + _default: IfNotPresent + service: + enabled: false + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + envs: + - name: CDE_API_EAV_HOST + value: + _default: http://backend-svc.eav.svc.cluster.local:80 + - name: CDE_API_APP_NAME + value: + _default: worker-s32d-create-upload + - name: CDE_API_LOG_LEVEL + value: + _default: info + - name: CDE_API_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE + value: + _default: '5368709120' + - name: CDE_API_S3_MAX_PART_SIZE + value: + _default: '524288000' + - name: CDE_API_S3_UPLOAD_STALL_TIMEOUT + value: + _default: 10m + - name: CDE_API_DATABASE__SSLMODE + value: + _default: disable + - name: CDE_API_DATABASE__INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_DATABASE_MAX_CONN_LIFETIME + value: + _default: 30m + - name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME + value: + _default: 10m + - name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD + value: + _default: 30s + - name: CDE_API_DATABASE_POOL_SIZE + value: + _default: '2' + - name: CDE_API_REDIS__SSL + value: + _default: 'false' + - name: CDE_API_REDIS__POOL_SIZE + value: + _default: '5' + - name: CDE_API_REDIS__MIN_IDLE_CONNS + value: + _default: '1' + - name: CDE_API_REDIS__DIAL_TIMEOUT_MS + value: + _default: '5000' + - name: CDE_API_REDIS__READ_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__WRITE_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__DEFAULT_TTL_MINUTES + value: + _default: '10' + - name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED + value: + _default: 'false' + - name: CDE_API_S3_USE_SSL + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_LOOKUP + value: + _default: auto + - name: CDE_API_S3_INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_S3_CHECK_BUCKET + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_NAME + value: + _default: documentations + - name: CDE_API_ZEEBE_USE_PLAINTEXT + value: + _default: 'true' + - name: CDE_API_S32D_READERAT_BLOCK_SIZE_MB + value: + _default: '8' + - name: CDE_API_S32D_READERAT_CACHE_BLOCKS + value: + _default: '8' + - name: CDE_API_S32D_WORKER_CREATE_UPLOAD_TIMEOUT_MIN + value: + _default: '240' + - name: CDE_API_S32D_WORKER_CREATE_UPLOAD_MAX_JOBS + value: + _default: '2' + - name: CDE_API_MAILER_BASE_URL + value: + _default: http://mailer-service.mailer:8000 + - name: CDE_API_MAILER_FROM_EMAIL + value: + _default: noreply@sarex.io + - name: CDE_API_FLOWS_URL + value: + _default: http://backend-svc.flows.svc.cluster.local:80 + - name: CDE_API_TRANSMITTALS_URL + value: + _default: http://backend-svc.transmittal.svc.cluster.local:80 + - name: CDE_API_WORKFLOWS_CONFIG_FILEPATH + value: + _default: /etc/app/tasks_execution_config.json + - name: CDE_API_REDIS__HOST + value: + _default: redis.documentations.svc.cluster.local + - name: CDE_API_REDIS__PORT + value: + _default: '6379' + - name: CDE_API_S3_ENDPOINT + value: + _default: minio.storage.svc.cluster.local:9000 + - name: CDE_API_ZEEBE_GATEWAY_ADDRESS + value: + _default: camunda-zeebe-gateway.camunda.svc.cluster.local:26500 + - name: CDE_API_ZEEBE_CLIENT_ID + value: + _default: zeebe + - name: CDE_API_ZEEBE_AUTH_SERVER_URL + value: + _default: http://camunda-keycloak.camunda.svc.cluster.local/auth/realms/camunda-platform/protocol/openid-connect/token + volumes: + _default: + - name: tasks-execution-config + mountPath: + _default: /etc/app/tasks_execution_config.json + subPath: + _default: tasks_execution_config.json + readOnly: + _default: true + configMap: + name: + _default: tasks-execution-config-documentation-v2 + items: + - key: tasks-execution-config-documentation-v2.json + path: + _default: tasks_execution_config.json + defaultMode: + _default: '0644' + serviceAccount: + enabled: + _default: false + name: + _default: documentations-vault + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: '2' + sidecar.istio.io/proxyMemoryLimit: 1Gi + traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200 + vault.hashicorp.com/agent-inject: 'true' + vault.hashicorp.com/agent-init-first: 'true' + vault.hashicorp.com/agent-pre-populate-only: 'true' + vault.hashicorp.com/agent-requests-cpu: 25m + vault.hashicorp.com/auth-path: auth/kubernetes + vault.hashicorp.com/role: documentations + vault.hashicorp.com/agent-inject-secret-cde-api-db: secrets/data/apps/documentations/postgres + vault.hashicorp.com/agent-inject-template-cde-api-db: '{{- with secret + "secrets/data/apps/documentations/postgres" -}} + + CDE_API_DATABASE__HOST=''{{ index .Data.data "host" }}'' + + CDE_API_DATABASE__PORT=''{{ index .Data.data "port" }}'' + + CDE_API_DATABASE__NAME=''{{ index .Data.data "database" }}'' + + CDE_API_DATABASE__USER=''{{ index .Data.data "username" }}'' + + CDE_API_DATABASE__PASSWORD=''{{ index .Data.data "password" }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-s3: secrets/data/minio/apps/documentations + vault.hashicorp.com/agent-inject-template-cde-api-s3: '{{- with secret + "secrets/data/minio/apps/documentations" -}} + + CDE_API_S3_ACCESS_KEY=''{{ or (index .Data.data "access_key_id") (index + .Data.data "access_key") }}'' + + CDE_API_S3_SECRET_KEY=''{{ or (index .Data.data "secret_access_key") + (index .Data.data "secret_key") }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/camunda/identity-components + vault.hashicorp.com/agent-inject-template-cde-api-zeebe: '{{- with secret + "secrets/data/camunda/identity-components" -}} + + CDE_API_ZEEBE_CLIENT_SECRET=''{{ index .Data.data "zeebe-secret" }}'' + + {{- end -}}' + dependsOn: + - name: cde-api + namespace: documentations diff --git a/apps/documentations/stand/cde-api/cde-api-worker-s32d-handle-error.yaml b/apps/documentations/stand/cde-api/cde-api-worker-s32d-handle-error.yaml new file mode 100644 index 0000000..695e423 --- /dev/null +++ b/apps/documentations/stand/cde-api/cde-api-worker-s32d-handle-error.yaml @@ -0,0 +1,271 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-api-worker-s32d-handle-error + namespace: documentations +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: + worker-s32d-handle-error: + enabled: true + deployment: + enabled: true + name: + _default: worker-s32d-handle-error + replicaCount: + _default: 1 + revisionHistoryLimit: + _default: 5 + resources: + requests: + cpu: + _default: 25m + memory: + _default: 128Mi + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + command: + _default: + - /bin/sh + - -ec + args: + _default: + - 'set -a + + . /vault/secrets/cde-api-db + + . /vault/secrets/cde-api-s3 + + . /vault/secrets/cde-api-zeebe + + set +a + + exec /opt/worker + + ' + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-handle-error:preprod_905f8821 + pullPolicy: + _default: IfNotPresent + service: + enabled: false + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + envs: + - name: CDE_API_EAV_HOST + value: + _default: http://backend-svc.eav.svc.cluster.local:80 + - name: CDE_API_APP_NAME + value: + _default: worker-s32d-handle-error + - name: CDE_API_LOG_LEVEL + value: + _default: info + - name: CDE_API_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE + value: + _default: '5368709120' + - name: CDE_API_S3_MAX_PART_SIZE + value: + _default: '524288000' + - name: CDE_API_S3_UPLOAD_STALL_TIMEOUT + value: + _default: 10m + - name: CDE_API_DATABASE__SSLMODE + value: + _default: disable + - name: CDE_API_DATABASE__INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_DATABASE_MAX_CONN_LIFETIME + value: + _default: 30m + - name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME + value: + _default: 10m + - name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD + value: + _default: 30s + - name: CDE_API_DATABASE_POOL_SIZE + value: + _default: '2' + - name: CDE_API_REDIS__SSL + value: + _default: 'false' + - name: CDE_API_REDIS__POOL_SIZE + value: + _default: '3' + - name: CDE_API_REDIS__MIN_IDLE_CONNS + value: + _default: '1' + - name: CDE_API_REDIS__DIAL_TIMEOUT_MS + value: + _default: '5000' + - name: CDE_API_REDIS__READ_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__WRITE_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__DEFAULT_TTL_MINUTES + value: + _default: '10' + - name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED + value: + _default: 'false' + - name: CDE_API_S3_USE_SSL + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_LOOKUP + value: + _default: auto + - name: CDE_API_S3_INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_S3_CHECK_BUCKET + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_NAME + value: + _default: documentations + - name: CDE_API_ZEEBE_USE_PLAINTEXT + value: + _default: 'true' + - name: CDE_API_S32D_WORKER_HANDLE_ERROR_TIMEOUT_MIN + value: + _default: '10' + - name: CDE_API_S32D_WORKER_HANDLE_ERROR_MAX_JOBS + value: + _default: '4' + - name: CDE_API_MAILER_BASE_URL + value: + _default: http://mailer-service.mailer:8000 + - name: CDE_API_MAILER_FROM_EMAIL + value: + _default: noreply@sarex.io + - name: CDE_API_FLOWS_URL + value: + _default: http://backend-svc.flows.svc.cluster.local:80 + - name: CDE_API_TRANSMITTALS_URL + value: + _default: http://backend-svc.transmittal.svc.cluster.local:80 + - name: CDE_API_WORKFLOWS_CONFIG_FILEPATH + value: + _default: /etc/app/tasks_execution_config.json + - name: CDE_API_REDIS__HOST + value: + _default: redis.documentations.svc.cluster.local + - name: CDE_API_REDIS__PORT + value: + _default: '6379' + - name: CDE_API_S3_ENDPOINT + value: + _default: minio.storage.svc.cluster.local:9000 + - name: CDE_API_ZEEBE_GATEWAY_ADDRESS + value: + _default: camunda-zeebe-gateway.camunda.svc.cluster.local:26500 + - name: CDE_API_ZEEBE_CLIENT_ID + value: + _default: zeebe + - name: CDE_API_ZEEBE_AUTH_SERVER_URL + value: + _default: http://camunda-keycloak.camunda.svc.cluster.local/auth/realms/camunda-platform/protocol/openid-connect/token + volumes: + _default: + - name: tasks-execution-config + mountPath: + _default: /etc/app/tasks_execution_config.json + subPath: + _default: tasks_execution_config.json + readOnly: + _default: true + configMap: + name: + _default: tasks-execution-config-documentation-v2 + items: + - key: tasks-execution-config-documentation-v2.json + path: + _default: tasks_execution_config.json + defaultMode: + _default: '0644' + serviceAccount: + enabled: + _default: false + name: + _default: documentations-vault + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: '2' + sidecar.istio.io/proxyMemoryLimit: 1Gi + traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200 + vault.hashicorp.com/agent-inject: 'true' + vault.hashicorp.com/agent-init-first: 'true' + vault.hashicorp.com/agent-pre-populate-only: 'true' + vault.hashicorp.com/agent-requests-cpu: 25m + vault.hashicorp.com/auth-path: auth/kubernetes + vault.hashicorp.com/role: documentations + vault.hashicorp.com/agent-inject-secret-cde-api-db: secrets/data/apps/documentations/postgres + vault.hashicorp.com/agent-inject-template-cde-api-db: '{{- with secret + "secrets/data/apps/documentations/postgres" -}} + + CDE_API_DATABASE__HOST=''{{ index .Data.data "host" }}'' + + CDE_API_DATABASE__PORT=''{{ index .Data.data "port" }}'' + + CDE_API_DATABASE__NAME=''{{ index .Data.data "database" }}'' + + CDE_API_DATABASE__USER=''{{ index .Data.data "username" }}'' + + CDE_API_DATABASE__PASSWORD=''{{ index .Data.data "password" }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-s3: secrets/data/minio/apps/documentations + vault.hashicorp.com/agent-inject-template-cde-api-s3: '{{- with secret + "secrets/data/minio/apps/documentations" -}} + + CDE_API_S3_ACCESS_KEY=''{{ or (index .Data.data "access_key_id") (index + .Data.data "access_key") }}'' + + CDE_API_S3_SECRET_KEY=''{{ or (index .Data.data "secret_access_key") + (index .Data.data "secret_key") }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/camunda/identity-components + vault.hashicorp.com/agent-inject-template-cde-api-zeebe: '{{- with secret + "secrets/data/camunda/identity-components" -}} + + CDE_API_ZEEBE_CLIENT_SECRET=''{{ index .Data.data "zeebe-secret" }}'' + + {{- end -}}' + dependsOn: + - name: cde-api + namespace: documentations diff --git a/apps/documentations/stand/cde-api/cde-api-worker-s32d-process-workflows.yaml b/apps/documentations/stand/cde-api/cde-api-worker-s32d-process-workflows.yaml new file mode 100644 index 0000000..0492a70 --- /dev/null +++ b/apps/documentations/stand/cde-api/cde-api-worker-s32d-process-workflows.yaml @@ -0,0 +1,340 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-api-worker-s32d-process-workflows + namespace: documentations +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: + worker-s32d-process-workflows: + enabled: true + deployment: + enabled: true + name: + _default: worker-s32d-process-workflows + replicaCount: + _default: 1 + revisionHistoryLimit: + _default: 5 + resources: + requests: + cpu: + _default: 25m + memory: + _default: 128Mi + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + command: + _default: + - /bin/sh + - -ec + args: + _default: + - 'set -a + + . /vault/secrets/cde-api-db + + . /vault/secrets/cde-api-s3 + + . /vault/secrets/cde-api-zeebe + + set +a + + exec /opt/worker + + ' + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-process-workflows:preprod_905f8821 + pullPolicy: + _default: IfNotPresent + service: + enabled: false + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + envs: + - name: CDE_API_EAV_HOST + value: + _default: http://backend-svc.eav.svc.cluster.local:80 + - name: CDE_API_APP_NAME + value: + _default: worker-s32d-process-workflows + - name: CDE_API_LOG_LEVEL + value: + _default: info + - name: CDE_API_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE + value: + _default: '5368709120' + - name: CDE_API_S3_MAX_PART_SIZE + value: + _default: '524288000' + - name: CDE_API_S3_UPLOAD_STALL_TIMEOUT + value: + _default: 10m + - name: CDE_API_DATABASE__SSLMODE + value: + _default: disable + - name: CDE_API_DATABASE__INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_DATABASE_MAX_CONN_LIFETIME + value: + _default: 30m + - name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME + value: + _default: 10m + - name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD + value: + _default: 30s + - name: CDE_API_DATABASE_POOL_SIZE + value: + _default: '2' + - name: CDE_API_REDIS__SSL + value: + _default: 'false' + - name: CDE_API_REDIS__POOL_SIZE + value: + _default: '5' + - name: CDE_API_REDIS__MIN_IDLE_CONNS + value: + _default: '1' + - name: CDE_API_REDIS__DIAL_TIMEOUT_MS + value: + _default: '5000' + - name: CDE_API_REDIS__READ_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__WRITE_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__DEFAULT_TTL_MINUTES + value: + _default: '10' + - name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED + value: + _default: 'false' + - name: CDE_API_S3_USE_SSL + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_LOOKUP + value: + _default: auto + - name: CDE_API_S3_INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_S3_CHECK_BUCKET + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_NAME + value: + _default: documentations + - name: CDE_API_ZEEBE_USE_PLAINTEXT + value: + _default: 'true' + - name: CDE_API_S32D_WORKER_PROCESS_WORKFLOWS_TIMEOUT_MIN + value: + _default: '480' + - name: CDE_API_S32D_WORKER_PROCESS_WORKFLOWS_MAX_JOBS + value: + _default: '1' + - name: CDE_API_MAILER_BASE_URL + value: + _default: http://mailer-service.mailer:8000 + - name: CDE_API_MAILER_FROM_EMAIL + value: + _default: noreply@sarex.io + - name: CDE_API_WORKFLOW_BASE_URL + value: + _default: http://backend-svc.processing.svc.cluster.local:80 + - name: CDE_API_WORKFLOW_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKFLOW_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_URL + value: + _default: http://backend-svc.bim.svc.cluster.local:80 + - name: CDE_API_BIMAPI_V2_URL + value: + _default: http://backend-svc.bim.svc.cluster.local:80 + - name: CDE_API_BIMAPI_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_BIMAPI_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_TIMEOUT_V2_MS + value: + _default: '300000' + - name: CDE_API_CONTAINER_REGISTRY + value: + _default: cr.yandex/crp3ccidau046kdj8g9q + - name: CDE_API_WORKFLOWS_IMAGES_VERSION + value: + _default: master + - name: CDE_API_DJANGO_HOST + value: + _default: http://backend-svc.django.svc.cluster.local:80 + - name: CDE_API_ENVIRONMENT + value: + _default: stand + - name: CDE_API_CONVERTED_PDF_TO_S3 + value: + _default: 'true' + - name: CDE_API_CONVERT_DXF_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_CONVERT_DWG_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_USE_BIMV1_FOR_BIMV2 + value: + _default: 'false' + - name: CDE_API_LAST_MASTER_BIM + value: + _default: '2000' + - name: CDE_API_LAST_SLAVE_1_BIM + value: + _default: '2250' + - name: CDE_API_LAST_SLAVE_2_BIM + value: + _default: '15000' + - name: CDE_API_USE_BIM_INSERTER + value: + _default: 'true' + - name: CDE_API_USE_LEGACY_BIM_FLOW + value: + _default: 'true' + - name: CDE_API_DOCUMENTATION_V2_URL + value: + _default: http://backend-api-svc.documentations.svc.cluster.local:80 + - name: CDE_API_INTERNAL_URL + value: + _default: http://cde-api.documentations.svc.cluster.local:8000 + - name: CDE_API_FLOWS_URL + value: + _default: http://backend-svc.flows.svc.cluster.local:80 + - name: CDE_API_TRANSMITTALS_URL + value: + _default: http://backend-svc.transmittal.svc.cluster.local:80 + - name: CDE_API_WORKFLOWS_CONFIG_FILEPATH + value: + _default: /etc/app/tasks_execution_config.json + - name: CDE_API_REDIS__HOST + value: + _default: redis.documentations.svc.cluster.local + - name: CDE_API_REDIS__PORT + value: + _default: '6379' + - name: CDE_API_S3_ENDPOINT + value: + _default: minio.storage.svc.cluster.local:9000 + - name: CDE_API_ZEEBE_GATEWAY_ADDRESS + value: + _default: camunda-zeebe-gateway.camunda.svc.cluster.local:26500 + - name: CDE_API_ZEEBE_CLIENT_ID + value: + _default: zeebe + - name: CDE_API_ZEEBE_AUTH_SERVER_URL + value: + _default: http://camunda-keycloak.camunda.svc.cluster.local/auth/realms/camunda-platform/protocol/openid-connect/token + volumes: + _default: + - name: tasks-execution-config + mountPath: + _default: /etc/app/tasks_execution_config.json + subPath: + _default: tasks_execution_config.json + readOnly: + _default: true + configMap: + name: + _default: tasks-execution-config-documentation-v2 + items: + - key: tasks-execution-config-documentation-v2.json + path: + _default: tasks_execution_config.json + defaultMode: + _default: '0644' + serviceAccount: + enabled: + _default: false + name: + _default: documentations-vault + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: '2' + sidecar.istio.io/proxyMemoryLimit: 1Gi + traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200 + vault.hashicorp.com/agent-inject: 'true' + vault.hashicorp.com/agent-init-first: 'true' + vault.hashicorp.com/agent-pre-populate-only: 'true' + vault.hashicorp.com/agent-requests-cpu: 25m + vault.hashicorp.com/auth-path: auth/kubernetes + vault.hashicorp.com/role: documentations + vault.hashicorp.com/agent-inject-secret-cde-api-db: secrets/data/apps/documentations/postgres + vault.hashicorp.com/agent-inject-template-cde-api-db: '{{- with secret + "secrets/data/apps/documentations/postgres" -}} + + CDE_API_DATABASE__HOST=''{{ index .Data.data "host" }}'' + + CDE_API_DATABASE__PORT=''{{ index .Data.data "port" }}'' + + CDE_API_DATABASE__NAME=''{{ index .Data.data "database" }}'' + + CDE_API_DATABASE__USER=''{{ index .Data.data "username" }}'' + + CDE_API_DATABASE__PASSWORD=''{{ index .Data.data "password" }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-s3: secrets/data/minio/apps/documentations + vault.hashicorp.com/agent-inject-template-cde-api-s3: '{{- with secret + "secrets/data/minio/apps/documentations" -}} + + CDE_API_S3_ACCESS_KEY=''{{ or (index .Data.data "access_key_id") (index + .Data.data "access_key") }}'' + + CDE_API_S3_SECRET_KEY=''{{ or (index .Data.data "secret_access_key") + (index .Data.data "secret_key") }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/camunda/identity-components + vault.hashicorp.com/agent-inject-template-cde-api-zeebe: '{{- with secret + "secrets/data/camunda/identity-components" -}} + + CDE_API_ZEEBE_CLIENT_SECRET=''{{ index .Data.data "zeebe-secret" }}'' + + {{- end -}}' + dependsOn: + - name: cde-api + namespace: documentations diff --git a/apps/documentations/stand/cde-api/cde-api-worker-s32d-publish-documents.yaml b/apps/documentations/stand/cde-api/cde-api-worker-s32d-publish-documents.yaml new file mode 100644 index 0000000..d545ce0 --- /dev/null +++ b/apps/documentations/stand/cde-api/cde-api-worker-s32d-publish-documents.yaml @@ -0,0 +1,286 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-api-worker-s32d-publish-documents + namespace: documentations +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: + worker-s32d-publish-documents: + enabled: true + deployment: + enabled: true + name: + _default: worker-s32d-publish-documents + replicaCount: + _default: 1 + revisionHistoryLimit: + _default: 5 + resources: + requests: + cpu: + _default: 25m + memory: + _default: 128Mi + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + command: + _default: + - /bin/sh + - -ec + args: + _default: + - 'set -a + + . /vault/secrets/cde-api-db + + . /vault/secrets/cde-api-s3 + + . /vault/secrets/cde-api-zeebe + + set +a + + exec /opt/worker + + ' + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-publish-documents:preprod_905f8821 + pullPolicy: + _default: IfNotPresent + service: + enabled: false + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + envs: + - name: CDE_API_EAV_HOST + value: + _default: http://backend-svc.eav.svc.cluster.local:80 + - name: CDE_API_APP_NAME + value: + _default: worker-s32d-publish-documents + - name: CDE_API_LOG_LEVEL + value: + _default: info + - name: CDE_API_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE + value: + _default: '5368709120' + - name: CDE_API_S3_MAX_PART_SIZE + value: + _default: '524288000' + - name: CDE_API_S3_UPLOAD_STALL_TIMEOUT + value: + _default: 10m + - name: CDE_API_DATABASE__SSLMODE + value: + _default: disable + - name: CDE_API_DATABASE__INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_DATABASE_MAX_CONN_LIFETIME + value: + _default: 30m + - name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME + value: + _default: 10m + - name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD + value: + _default: 30s + - name: CDE_API_DATABASE_POOL_SIZE + value: + _default: '2' + - name: CDE_API_REDIS__SSL + value: + _default: 'false' + - name: CDE_API_REDIS__POOL_SIZE + value: + _default: '5' + - name: CDE_API_REDIS__MIN_IDLE_CONNS + value: + _default: '1' + - name: CDE_API_REDIS__DIAL_TIMEOUT_MS + value: + _default: '5000' + - name: CDE_API_REDIS__READ_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__WRITE_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__DEFAULT_TTL_MINUTES + value: + _default: '10' + - name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED + value: + _default: 'false' + - name: CDE_API_S3_USE_SSL + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_LOOKUP + value: + _default: auto + - name: CDE_API_S3_INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_S3_CHECK_BUCKET + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_NAME + value: + _default: documentations + - name: CDE_API_ZEEBE_USE_PLAINTEXT + value: + _default: 'true' + - name: CDE_API_S32D_WORKER_PUBLISH_DOCUMENTS_TIMEOUT_MIN + value: + _default: '10' + - name: CDE_API_S32D_WORKER_PUBLISH_DOCUMENTS_MAX_JOBS + value: + _default: '2' + - name: CDE_API_MAILER_BASE_URL + value: + _default: http://mailer-service.mailer:8000 + - name: CDE_API_MAILER_FROM_EMAIL + value: + _default: noreply@sarex.io + - name: CDE_API_SYSTEMLOG_BASE_URL + value: + _default: http://backend-svc.system-log.svc.cluster.local:80 + - name: CDE_API_SYSTEMLOG_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_FLOWS_URL + value: + _default: http://backend-svc.flows.svc.cluster.local:80 + - name: CDE_API_TRANSMITTALS_URL + value: + _default: http://backend-svc.transmittal.svc.cluster.local:80 + - name: CDE_API_WORKSPACE_BASE_URL + value: + _default: http://backend-svc.workspaces.svc.cluster.local:80 + - name: CDE_API_WORKSPACE_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKSPACE_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_WORKFLOWS_CONFIG_FILEPATH + value: + _default: /etc/app/tasks_execution_config.json + - name: CDE_API_REDIS__HOST + value: + _default: redis.documentations.svc.cluster.local + - name: CDE_API_REDIS__PORT + value: + _default: '6379' + - name: CDE_API_S3_ENDPOINT + value: + _default: minio.storage.svc.cluster.local:9000 + - name: CDE_API_ZEEBE_GATEWAY_ADDRESS + value: + _default: camunda-zeebe-gateway.camunda.svc.cluster.local:26500 + - name: CDE_API_ZEEBE_CLIENT_ID + value: + _default: zeebe + - name: CDE_API_ZEEBE_AUTH_SERVER_URL + value: + _default: http://camunda-keycloak.camunda.svc.cluster.local/auth/realms/camunda-platform/protocol/openid-connect/token + volumes: + _default: + - name: tasks-execution-config + mountPath: + _default: /etc/app/tasks_execution_config.json + subPath: + _default: tasks_execution_config.json + readOnly: + _default: true + configMap: + name: + _default: tasks-execution-config-documentation-v2 + items: + - key: tasks-execution-config-documentation-v2.json + path: + _default: tasks_execution_config.json + defaultMode: + _default: '0644' + serviceAccount: + enabled: + _default: false + name: + _default: documentations-vault + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: '2' + sidecar.istio.io/proxyMemoryLimit: 1Gi + traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200 + vault.hashicorp.com/agent-inject: 'true' + vault.hashicorp.com/agent-init-first: 'true' + vault.hashicorp.com/agent-pre-populate-only: 'true' + vault.hashicorp.com/agent-requests-cpu: 25m + vault.hashicorp.com/auth-path: auth/kubernetes + vault.hashicorp.com/role: documentations + vault.hashicorp.com/agent-inject-secret-cde-api-db: secrets/data/apps/documentations/postgres + vault.hashicorp.com/agent-inject-template-cde-api-db: '{{- with secret + "secrets/data/apps/documentations/postgres" -}} + + CDE_API_DATABASE__HOST=''{{ index .Data.data "host" }}'' + + CDE_API_DATABASE__PORT=''{{ index .Data.data "port" }}'' + + CDE_API_DATABASE__NAME=''{{ index .Data.data "database" }}'' + + CDE_API_DATABASE__USER=''{{ index .Data.data "username" }}'' + + CDE_API_DATABASE__PASSWORD=''{{ index .Data.data "password" }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-s3: secrets/data/minio/apps/documentations + vault.hashicorp.com/agent-inject-template-cde-api-s3: '{{- with secret + "secrets/data/minio/apps/documentations" -}} + + CDE_API_S3_ACCESS_KEY=''{{ or (index .Data.data "access_key_id") (index + .Data.data "access_key") }}'' + + CDE_API_S3_SECRET_KEY=''{{ or (index .Data.data "secret_access_key") + (index .Data.data "secret_key") }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/camunda/identity-components + vault.hashicorp.com/agent-inject-template-cde-api-zeebe: '{{- with secret + "secrets/data/camunda/identity-components" -}} + + CDE_API_ZEEBE_CLIENT_SECRET=''{{ index .Data.data "zeebe-secret" }}'' + + {{- end -}}' + dependsOn: + - name: cde-api + namespace: documentations diff --git a/apps/documentations/stand/cde-api/cde-api.yaml b/apps/documentations/stand/cde-api/cde-api.yaml new file mode 100644 index 0000000..26c9d1b --- /dev/null +++ b/apps/documentations/stand/cde-api/cde-api.yaml @@ -0,0 +1,487 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-api + namespace: documentations +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: + cde-api: + enabled: true + deployment: + enabled: true + name: + _default: cde-api + replicaCount: + _default: 1 + revisionHistoryLimit: + _default: 5 + port: + _default: 8000 + resources: + requests: + cpu: + _default: 25m + memory: + _default: 128Mi + probes: + readiness: + enabled: true + type: + _default: tcpSocket + tcpSocket: + port: + _default: 8000 + periodSeconds: + _default: 5 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + command: + _default: + - /bin/sh + - -ec + args: + _default: + - 'set -a + + . /vault/secrets/cde-api-db + + . /vault/secrets/cde-api-s3 + + . /vault/secrets/cde-api-zeebe + + . /vault/secrets/cde-api-rabbitmq + + . /vault/secrets/cde-api-users + + CDE_API_PUBLIC_KEY="$(cat /vault/secrets/cde-api-public-key)" + + set +a + + exec /opt/main + + ' + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/cde-api:preprod_905f8821 + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: cde-api + type: + _default: ClusterIP + port: + _default: 8000 + targetPort: + _default: 8000 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred + envs: + - name: CDE_API_RESOURCES_BASE_URL + value: + _default: http://iam-backend.iam.svc.cluster.local:8000 + - name: CDE_API_RESOURCES_TIMEOUT + value: + _default: 10s + - name: CDE_API_APP_NAME + value: + _default: cde-api + - name: CDE_API_LOG_LEVEL + value: + _default: debug + - name: CDE_API_HTTP_PORT + value: + _default: '8000' + - name: CDE_API_HTTP_READ_TIMEOUT + value: + _default: 0s + - name: CDE_API_HTTP_WRITE_TIMEOUT + value: + _default: 0s + - name: CDE_API_HTTP_IDLE_TIMEOUT + value: + _default: 120s + - name: CDE_API_HTTP_READ_BUFFER_SIZE + value: + _default: '96' + - name: CDE_API_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE + value: + _default: '5368709120' + - name: CDE_API_S3_MAX_PART_SIZE + value: + _default: '524288000' + - name: CDE_API_S3_UPLOAD_STALL_TIMEOUT + value: + _default: 10m + - name: CDE_API_PUBLIC_LINK_HOST + value: + _default: https://document-link.stand.sarex.tech + - name: CDE_API_WORKFLOW_BASE_URL + value: + _default: http://backend-svc.processing.svc.cluster.local:80 + - name: CDE_API_WORKFLOW_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKFLOW_RETRY_WAIT_MS + value: + _default: '500' + - name: CDE_API_WORKFLOW_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_URL + value: + _default: http://backend-svc.bim.svc.cluster.local:80 + - name: CDE_API_BIMAPI_V2_URL + value: + _default: http://backend-svc.bim.svc.cluster.local:80 + - name: CDE_API_BIMAPI_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_BIMAPI_RETRY_WAIT_MS + value: + _default: '1000' + - name: CDE_API_BIMAPI_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_TIMEOUT_V2_MS + value: + _default: '300000' + - name: CDE_API_WORKSPACE_BASE_URL + value: + _default: http://backend-svc.workspaces.svc.cluster.local:80 + - name: CDE_API_WORKSPACE_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKSPACE_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_SYSTEMLOG_BASE_URL + value: + _default: http://backend-svc.system-log.svc.cluster.local:80 + - name: CDE_API_SYSTEMLOG_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_CONTAINER_REGISTRY + value: + _default: cr.yandex/crp3ccidau046kdj8g9q + - name: CDE_API_WORKFLOWS_IMAGES_VERSION + value: + _default: master + - name: CDE_API_DJANGO_HOST + value: + _default: http://backend-svc.django.svc.cluster.local:80 + - name: CDE_API_ENVIRONMENT + value: + _default: stand + - name: CDE_API_CONVERTED_PDF_TO_S3 + value: + _default: 'true' + - name: CDE_API_CONVERT_DXF_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_CONVERT_DWG_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_USE_BIMV1_FOR_BIMV2 + value: + _default: 'false' + - name: CDE_API_EAV_HOST + value: + _default: http://backend-svc.eav.svc.cluster.local:80 + - name: CDE_API_EAV_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_DOCUMENTATION_V2_URL + value: + _default: http://backend-api-svc.documentations.svc.cluster.local:80 + - name: CDE_API_INTERNAL_URL + value: + _default: http://cde-api.documentations.svc.cluster.local:8000 + - name: CDE_API_COPY_MAX_SYNC_WAIT_MS + value: + _default: '300000' + - name: CDE_API_LAST_MASTER_BIM + value: + _default: '2000' + - name: CDE_API_LAST_SLAVE_1_BIM + value: + _default: '2250' + - name: CDE_API_LAST_SLAVE_2_BIM + value: + _default: '15000' + - name: CDE_API_USE_BIM_INSERTER + value: + _default: 'true' + - name: CDE_API_USE_LEGACY_BIM_FLOW + value: + _default: 'true' + - name: CDE_API_DATABASE_MAX_CONN_LIFETIME + value: + _default: 30m + - name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME + value: + _default: 10m + - name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD + value: + _default: 30s + - name: CDE_API_DATABASE_POOL_SIZE + value: + _default: '2' + - name: CDE_API_DIAGNOSTICS_SLOW_OPERATION_THRESHOLD + value: + _default: 30s + - name: CDE_API_DATABASE__SSLMODE + value: + _default: disable + - name: CDE_API_DATABASE__INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_DATABASE_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_REDIS__DB + value: + _default: '5' + - name: CDE_API_REDIS__SSL + value: + _default: 'false' + - name: CDE_API_REDIS__POOL_SIZE + value: + _default: '10' + - name: CDE_API_REDIS__MIN_IDLE_CONNS + value: + _default: '2' + - name: CDE_API_REDIS__DIAL_TIMEOUT_MS + value: + _default: '5000' + - name: CDE_API_REDIS__READ_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__WRITE_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__DEFAULT_TTL_MINUTES + value: + _default: '10' + - name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_NAME + value: + _default: documentations + - name: CDE_API_S3_USE_SSL + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_LOOKUP + value: + _default: auto + - name: CDE_API_S3_INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_S3_CHECK_BUCKET + value: + _default: 'false' + - name: CDE_API_S3_CONNECT_TIMEOUT + value: + _default: 10s + - name: CDE_API_S3_TLS_HANDSHAKE_TIMEOUT + value: + _default: 10s + - name: CDE_API_S32D_MAX_ARCHIVE_SIZE_BYTES + value: + _default: '1099511627776' + - name: CDE_API_S32D_MAX_FILES_COUNT + value: + _default: '500' + - name: CDE_API_ZEEBE_USE_PLAINTEXT + value: + _default: 'true' + - name: CDE_API_USERS_BASE_URL + value: + _default: http://backend-svc.django.svc.cluster.local:80 + - name: CDE_API_DISK_BUCKET_NAMESPACE + value: + _default: documentations + - name: CDE_API_USERS_ORIGINATOR + value: + _default: docs_stand + - name: CDE_API_USERS_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_MAILER_BASE_URL + value: + _default: http://mailer-service.mailer:8000 + - name: CDE_API_MAILER_FROM_EMAIL + value: + _default: noreply@sarex.io + - name: CDE_API_MAILER_RETRY_COUNT + value: + _default: '2' + - name: CDE_API_MAILER_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_FLOWS_URL + value: + _default: http://backend-svc.flows.svc.cluster.local:80 + - name: CDE_API_TRANSMITTALS_URL + value: + _default: http://backend-svc.transmittal.svc.cluster.local:80 + - name: CDE_API_WORKFLOWS_CONFIG_FILEPATH + value: + _default: /etc/app/tasks_execution_config.json + - name: CDE_API_RABBITMQ__MARKS_ROUTING_KEY + value: + _default: pdf_markings_input + - name: CDE_API_RABBITMQ__HASHER_ROUTING_KEY + value: + _default: hash.compute.normal + - name: CDE_API_RABBITMQ__HASHER_EXCHANGE + value: + _default: hash.compute + - name: CDE_API_REDIS__HOST + value: + _default: redis.documentations.svc.cluster.local + - name: CDE_API_REDIS__PORT + value: + _default: '6379' + - name: CDE_API_S3_ENDPOINT + value: + _default: minio.storage.svc.cluster.local:9000 + - name: CDE_API_ZEEBE_GATEWAY_ADDRESS + value: + _default: camunda-zeebe-gateway.camunda.svc.cluster.local:26500 + - name: CDE_API_ZEEBE_CLIENT_ID + value: + _default: zeebe + - name: CDE_API_ZEEBE_AUTH_SERVER_URL + value: + _default: http://camunda-keycloak.camunda.svc.cluster.local/auth/realms/camunda-platform/protocol/openid-connect/token + volumes: + _default: + - name: tasks-execution-config + mountPath: + _default: /etc/app/tasks_execution_config.json + subPath: + _default: tasks_execution_config.json + readOnly: + _default: true + configMap: + name: + _default: tasks-execution-config-documentation-v2 + items: + - key: tasks-execution-config-documentation-v2.json + path: + _default: tasks_execution_config.json + defaultMode: + _default: '0644' + serviceAccount: + enabled: + _default: false + name: + _default: documentations-vault + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: '2' + sidecar.istio.io/proxyMemoryLimit: 1Gi + traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200 + vault.hashicorp.com/agent-inject: 'true' + vault.hashicorp.com/agent-init-first: 'true' + vault.hashicorp.com/agent-pre-populate-only: 'true' + vault.hashicorp.com/agent-requests-cpu: 25m + vault.hashicorp.com/auth-path: auth/kubernetes + vault.hashicorp.com/role: documentations + vault.hashicorp.com/agent-inject-secret-cde-api-db: secrets/data/apps/documentations/postgres + vault.hashicorp.com/agent-inject-template-cde-api-db: '{{- with secret + "secrets/data/apps/documentations/postgres" -}} + + CDE_API_DATABASE__HOST=''{{ index .Data.data "host" }}'' + + CDE_API_DATABASE__PORT=''{{ index .Data.data "port" }}'' + + CDE_API_DATABASE__NAME=''{{ index .Data.data "database" }}'' + + CDE_API_DATABASE__USER=''{{ index .Data.data "username" }}'' + + CDE_API_DATABASE__PASSWORD=''{{ index .Data.data "password" }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-s3: secrets/data/minio/apps/documentations + vault.hashicorp.com/agent-inject-template-cde-api-s3: '{{- with secret + "secrets/data/minio/apps/documentations" -}} + + CDE_API_S3_ACCESS_KEY=''{{ or (index .Data.data "access_key_id") (index + .Data.data "access_key") }}'' + + CDE_API_S3_SECRET_KEY=''{{ or (index .Data.data "secret_access_key") + (index .Data.data "secret_key") }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-zeebe: secrets/data/camunda/identity-components + vault.hashicorp.com/agent-inject-template-cde-api-zeebe: '{{- with secret + "secrets/data/camunda/identity-components" -}} + + CDE_API_ZEEBE_CLIENT_SECRET=''{{ index .Data.data "zeebe-secret" }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-rabbitmq: secrets/data/rabbitmq/apps/cde + vault.hashicorp.com/agent-inject-template-cde-api-rabbitmq: '{{- with + secret "secrets/data/rabbitmq/apps/cde" -}} + + CDE_API_RABBITMQ__HOST=''{{ index .Data.data "host" }}'' + + CDE_API_RABBITMQ__PORT=''{{ index .Data.data "port" }}'' + + CDE_API_RABBITMQ__USER=''{{ index .Data.data "username" }}'' + + CDE_API_RABBITMQ__PASSWORD=''{{ index .Data.data "password" }}'' + + CDE_API_RABBITMQ__VHOST=''{{ index .Data.data "vhost" }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-users: secrets/data/vault/common/django_auth + vault.hashicorp.com/agent-inject-template-cde-api-users: '{{- with secret + "secrets/data/vault/common/django_auth" -}} + + CDE_API_USERS_AUTH_TOKEN=''{{ index .Data.data "key" }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-cde-api-public-key: secrets/data/vault/common/rsa_keys + vault.hashicorp.com/agent-inject-template-cde-api-public-key: '{{- with + secret "secrets/data/vault/common/rsa_keys" -}} + + {{ index .Data.data "public_key" }} + + {{- end -}}' diff --git a/apps/documentations/stand/cde-api/kustomization.yaml b/apps/documentations/stand/cde-api/kustomization.yaml new file mode 100644 index 0000000..aa7a622 --- /dev/null +++ b/apps/documentations/stand/cde-api/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- cde-api-worker-copy.yaml +- cde-api-worker-move.yaml +- cde-api-worker-s32d-create-upload.yaml +- cde-api-worker-s32d-handle-error.yaml +- cde-api-worker-s32d-process-workflows.yaml +- cde-api-worker-s32d-publish-documents.yaml +- cde-api.yaml +- tasks-execution-config.yaml +- virtualservice.yaml diff --git a/apps/documentations/stand/cde-api/tasks-execution-config.yaml b/apps/documentations/stand/cde-api/tasks-execution-config.yaml new file mode 100644 index 0000000..9c4d9b2 --- /dev/null +++ b/apps/documentations/stand/cde-api/tasks-execution-config.yaml @@ -0,0 +1,66 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: tasks-execution-config-documentation-v2 + namespace: documentations +data: + tasks-execution-config-documentation-v2.json: "{\n \"bim_api_metadata_inserter\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"bim_api_metadata_inserter_v2\": {\n \"executor\": \"\ + k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \ + \ \"memory_requests\": \"64Mi\"\n }\n },\n \"bim_api_metadata_inserter_v4\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"bim_differ\": {\n \"executor\": \"k8s\",\n \"\ + resources\": {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\ + : \"64Mi\"\n }\n },\n \"bim_updater\": {\n \"executor\": \"\ + k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \ + \ \"memory_requests\": \"64Mi\"\n }\n },\n \"convert_to_potree\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"docx_to_pdf\": {\n \"executor\": \"k8s\",\n \"\ + resources\": {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\ + : \"64Mi\"\n }\n },\n \"dwg_to_geojson\": {\n \"executor\"\ + : \"k8s\",\n \"resources\": {\n \"cpu_limits\": \"4\",\n \ + \ \"cpu_requests\": \"100m\",\n \"memory_limits\": \"40Gi\"\ + ,\n \"memory_requests\": \"64Mi\"\n }\n },\n \"e57_to_las\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"ifc_converter_job\": {\n \"executor\": \"k8s\",\n \ + \ \"resources\": {\n \"cpu_requests\": \"100m\",\n \ + \ \"memory_requests\": \"64Mi\"\n }\n },\n \"las_merge\": {\n \ + \ \"executor\": \"k8s\",\n \"resources\": {\n \"cpu_requests\"\ + : \"100m\",\n \"memory_requests\": \"64Mi\"\n }\n },\n \ + \ \"mesh_optimizer\": {\n \"executor\": \"k8s\",\n \"resources\"\ + : {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\ + : \"64Mi\"\n }\n },\n \"mesh_optimizer_v2\": {\n \"executor\"\ + : \"k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n\ + \ \"memory_requests\": \"64Mi\"\n }\n },\n \"parsing_template\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"processing_converter_to_tiles\": {\n \"executor\": \"\ + k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \ + \ \"memory_requests\": \"64Mi\"\n }\n },\n \"processing_create_colored_surface_from_geotiff\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"rendering_template\": {\n \"executor\": \"k8s\",\n \ + \ \"resources\": {\n \"cpu_requests\": \"100m\",\n \ + \ \"memory_requests\": \"64Mi\"\n }\n },\n \"split_pdf_document\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"split_pdf_document_legacy\": {\n \"executor\": \"k8s\"\ + ,\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \ + \ \"memory_requests\": \"64Mi\"\n }\n },\n \"update_orthomosaic_data\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"web_hook_caller\": {\n \"executor\": \"k8s\",\n \ + \ \"resources\": {\n \"cpu_requests\": \"100m\",\n \"\ + memory_requests\": \"64Mi\"\n }\n },\n \"xml_to_glb\": {\n \ + \ \"executor\": \"k8s\",\n \"resources\": {\n \"cpu_requests\"\ + : \"100m\",\n \"memory_requests\": \"64Mi\"\n }\n },\n \ + \ \"document_converter\": {\n \"executor\": \"k8s\",\n \"resources\"\ + : {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\ + : \"64Mi\"\n }\n },\n \"sparkjs_converter_wrapper\": {\n \"\ + executor\": \"k8s\",\n \"resources\": {\n \"cpu_requests\":\ + \ \"100m\",\n \"memory_requests\": \"64Mi\"\n }\n }\n}\n" diff --git a/apps/documentations/stand/cde-api/virtualservice.yaml b/apps/documentations/stand/cde-api/virtualservice.yaml new file mode 100644 index 0000000..ce94925 --- /dev/null +++ b/apps/documentations/stand/cde-api/virtualservice.yaml @@ -0,0 +1,52 @@ +apiVersion: networking.istio.io/v1 +kind: VirtualService +metadata: + name: vs-cde-api + namespace: documentations +spec: + hosts: + - sarex.stand.sarex.tech + gateways: + - default/platform-gateway + http: + - match: + - uri: + prefix: /documentations/v2/ + rewrite: + uri: /external/v2/ + corsPolicy: &id001 + allowOrigins: + - exact: https://sarex.stand.sarex.tech + - exact: https://document-link.stand.sarex.tech + allowMethods: + - GET + - POST + - PUT + - DELETE + - PATCH + - OPTIONS + - HEAD + allowHeaders: + - Authorization + - Content-Type + - Identity + - Range + - Cache-control + allowCredentials: true + maxAge: 24h + route: + - destination: + host: cde-api.documentations.svc.cluster.local + port: + number: 8000 + - match: + - uri: + prefix: /cde/app/ + rewrite: + uri: /app/ + corsPolicy: *id001 + route: + - destination: + host: cde-api.documentations.svc.cluster.local + port: + number: 8000 diff --git a/apps/documentations/stand/kustomization.yaml b/apps/documentations/stand/kustomization.yaml index 49f70de..32ccdd9 100644 --- a/apps/documentations/stand/kustomization.yaml +++ b/apps/documentations/stand/kustomization.yaml @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../base + - cde-api patches: - path: api.yaml - path: filestream.yaml From 70729ddb4519edbb9714863af6831581beeda480 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 16:22:36 +0500 Subject: [PATCH 11/32] stand: pass Keycloak origin expected by CDE API Zeebe client --- apps/documentations/stand/cde-api/cde-api-worker-copy.yaml | 2 +- apps/documentations/stand/cde-api/cde-api-worker-move.yaml | 2 +- .../stand/cde-api/cde-api-worker-s32d-create-upload.yaml | 2 +- .../stand/cde-api/cde-api-worker-s32d-handle-error.yaml | 2 +- .../stand/cde-api/cde-api-worker-s32d-process-workflows.yaml | 2 +- .../stand/cde-api/cde-api-worker-s32d-publish-documents.yaml | 2 +- apps/documentations/stand/cde-api/cde-api.yaml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/documentations/stand/cde-api/cde-api-worker-copy.yaml b/apps/documentations/stand/cde-api/cde-api-worker-copy.yaml index ea8f179..7af2373 100644 --- a/apps/documentations/stand/cde-api/cde-api-worker-copy.yaml +++ b/apps/documentations/stand/cde-api/cde-api-worker-copy.yaml @@ -309,7 +309,7 @@ spec: _default: zeebe - name: CDE_API_ZEEBE_AUTH_SERVER_URL value: - _default: http://camunda-keycloak.camunda.svc.cluster.local/auth/realms/camunda-platform/protocol/openid-connect/token + _default: http://camunda-keycloak.camunda.svc.cluster.local volumes: _default: - name: tasks-execution-config diff --git a/apps/documentations/stand/cde-api/cde-api-worker-move.yaml b/apps/documentations/stand/cde-api/cde-api-worker-move.yaml index b35c356..33a0f4b 100644 --- a/apps/documentations/stand/cde-api/cde-api-worker-move.yaml +++ b/apps/documentations/stand/cde-api/cde-api-worker-move.yaml @@ -291,7 +291,7 @@ spec: _default: zeebe - name: CDE_API_ZEEBE_AUTH_SERVER_URL value: - _default: http://camunda-keycloak.camunda.svc.cluster.local/auth/realms/camunda-platform/protocol/openid-connect/token + _default: http://camunda-keycloak.camunda.svc.cluster.local volumes: _default: - name: tasks-execution-config diff --git a/apps/documentations/stand/cde-api/cde-api-worker-s32d-create-upload.yaml b/apps/documentations/stand/cde-api/cde-api-worker-s32d-create-upload.yaml index 16e28e1..1161917 100644 --- a/apps/documentations/stand/cde-api/cde-api-worker-s32d-create-upload.yaml +++ b/apps/documentations/stand/cde-api/cde-api-worker-s32d-create-upload.yaml @@ -202,7 +202,7 @@ spec: _default: zeebe - name: CDE_API_ZEEBE_AUTH_SERVER_URL value: - _default: http://camunda-keycloak.camunda.svc.cluster.local/auth/realms/camunda-platform/protocol/openid-connect/token + _default: http://camunda-keycloak.camunda.svc.cluster.local volumes: _default: - name: tasks-execution-config diff --git a/apps/documentations/stand/cde-api/cde-api-worker-s32d-handle-error.yaml b/apps/documentations/stand/cde-api/cde-api-worker-s32d-handle-error.yaml index 695e423..ef105cb 100644 --- a/apps/documentations/stand/cde-api/cde-api-worker-s32d-handle-error.yaml +++ b/apps/documentations/stand/cde-api/cde-api-worker-s32d-handle-error.yaml @@ -196,7 +196,7 @@ spec: _default: zeebe - name: CDE_API_ZEEBE_AUTH_SERVER_URL value: - _default: http://camunda-keycloak.camunda.svc.cluster.local/auth/realms/camunda-platform/protocol/openid-connect/token + _default: http://camunda-keycloak.camunda.svc.cluster.local volumes: _default: - name: tasks-execution-config diff --git a/apps/documentations/stand/cde-api/cde-api-worker-s32d-process-workflows.yaml b/apps/documentations/stand/cde-api/cde-api-worker-s32d-process-workflows.yaml index 0492a70..7eef0bd 100644 --- a/apps/documentations/stand/cde-api/cde-api-worker-s32d-process-workflows.yaml +++ b/apps/documentations/stand/cde-api/cde-api-worker-s32d-process-workflows.yaml @@ -265,7 +265,7 @@ spec: _default: zeebe - name: CDE_API_ZEEBE_AUTH_SERVER_URL value: - _default: http://camunda-keycloak.camunda.svc.cluster.local/auth/realms/camunda-platform/protocol/openid-connect/token + _default: http://camunda-keycloak.camunda.svc.cluster.local volumes: _default: - name: tasks-execution-config diff --git a/apps/documentations/stand/cde-api/cde-api-worker-s32d-publish-documents.yaml b/apps/documentations/stand/cde-api/cde-api-worker-s32d-publish-documents.yaml index d545ce0..ccfa9a1 100644 --- a/apps/documentations/stand/cde-api/cde-api-worker-s32d-publish-documents.yaml +++ b/apps/documentations/stand/cde-api/cde-api-worker-s32d-publish-documents.yaml @@ -211,7 +211,7 @@ spec: _default: zeebe - name: CDE_API_ZEEBE_AUTH_SERVER_URL value: - _default: http://camunda-keycloak.camunda.svc.cluster.local/auth/realms/camunda-platform/protocol/openid-connect/token + _default: http://camunda-keycloak.camunda.svc.cluster.local volumes: _default: - name: tasks-execution-config diff --git a/apps/documentations/stand/cde-api/cde-api.yaml b/apps/documentations/stand/cde-api/cde-api.yaml index 26c9d1b..30ac798 100644 --- a/apps/documentations/stand/cde-api/cde-api.yaml +++ b/apps/documentations/stand/cde-api/cde-api.yaml @@ -386,7 +386,7 @@ spec: _default: zeebe - name: CDE_API_ZEEBE_AUTH_SERVER_URL value: - _default: http://camunda-keycloak.camunda.svc.cluster.local/auth/realms/camunda-platform/protocol/openid-connect/token + _default: http://camunda-keycloak.camunda.svc.cluster.local volumes: _default: - name: tasks-execution-config From 72f9de81c5a1a3b5e4de0d9078848d8b0e678abc Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 16:25:22 +0500 Subject: [PATCH 12/32] stand: enable documentations integration after CDE API readiness --- .../stand/cde-api-integration.yaml | 169 ++++++++++++++++++ apps/documentations/stand/kustomization.yaml | 1 + 2 files changed, 170 insertions(+) create mode 100644 apps/documentations/stand/cde-api-integration.yaml diff --git a/apps/documentations/stand/cde-api-integration.yaml b/apps/documentations/stand/cde-api-integration.yaml new file mode 100644 index 0000000..edb97b6 --- /dev/null +++ b/apps/documentations/stand/cde-api-integration.yaml @@ -0,0 +1,169 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: documentations-api + namespace: documentations +spec: + dependsOn: + - name: cde-api + namespace: documentations + values: + services: + backend: + envs: + - name: POSTGRES_POOL_SIZE + value: + _default: '20' + - name: USE_LEGACY_BIM_FLOW + value: + _default: 'true' + - name: ZITADEL_ACCOUNT + value: + _default: /vault/secrets/documentations-zitadel-account-json + - name: ZITADEL_DOMAIN + value: + _default: ${HOST_LOGIN} + - name: USE_ZITADEL + value: + _default: '1' + - name: FLOWS_URL + value: + _default: http://backend-svc.flows.svc.cluster.local:80 + - name: LAST_MASTER_BIM + value: + _default: '36311' + - name: API_ADDRESS + value: + _default: 0.0.0.0:8080 + - name: API_ADDRESS_FILE + value: + _default: 0.0.0.0:8080 + - name: DOCUMENT_PUBLIC_LINK_JWT_EXPIRATION_MINUTES + value: + _default: '5' + - name: PUBLIC_LINK_FOLDER_CONNECTOR_ENABLED + value: + _default: 'true' + - name: ENABLE_SQL_QUERY + value: + _default: '0' + - name: ENABLE_SSL + value: + _default: '0' + - name: WORKSPACE_V2_EXTERNAL_URL + value: + _default: https://sarex.${CONTOUR_DOMAIN}/workspaces-v2/ + - name: ENABLE_S3 + value: + _default: '1' + - name: CONTAINER_REGISTRY + value: + _default: cr.yandex/crp3ccidau046kdj8g9q + - name: ENVIRONMENT + value: + _default: production + - name: LAST_SLAVE_1_BIM + value: + _default: '1000000' + - name: HOST + value: + _default: http://backend-api-svc.documentations.svc.cluster.local:80 + - name: FILE_STREAM_HOST + value: + _default: sarex.${CONTOUR_DOMAIN} + - name: DOCUMENTATION_URL + value: + _default: http://backend-api-svc.documentations.svc.cluster.local:80/ + - name: WORKFLOW_URL + value: + _default: http://backend-svc.processing.svc.cluster.local:80/ + - name: WORKSPACE_URL + value: + _default: http://backend-svc.workspaces.svc.cluster.local:80/ + - name: BIM_API_URL + value: + _default: http://backend-svc.bim.svc.cluster.local:80/ + - name: BIM_API_V2_URL + value: + _default: http://backend-svc.bim.svc.cluster.local:80/ + - name: WORKSPACE_BUNDLE_VERSION + value: + _default: v1 + - name: SYSTEM_LOG_URL + value: + _default: http://backend-svc.system-log.svc.cluster.local:80 + - name: DJANGO_HOST + value: + _default: http://backend-svc.django.svc.cluster.local:80 + - name: MARKS_PROCESSING_URL + value: + _default: http://marks-service:8000 + - name: USE_MARKS_RABBITMQ + value: + _default: 'true' + - name: MARKS_RABBITMQ_HOST + value: + _default: rabbitmq.rabbitmq.svc.cluster.local + - name: MARKS_RABBITMQ_PORT + value: + _default: '5672' + - name: PUBLIC_LINK_HOST + value: + _default: https://document-link.${CONTOUR_DOMAIN} + - name: NAMESPACE + value: + _default: documentations + - name: DJANGO_ORIGINATOR + value: + _default: docs_prod + - name: WORKFLOW_IMAGES_VERSION + value: + _default: master + - name: WORKFLOWS_IMAGES_VERSION + value: + _default: master + - name: S3_SERVICE_ACCOUNT + value: + _default: /vault/secrets/documentations-s3-account-json + - name: READ_WRITE_TIMEOUT_FILE_STREAM + value: + _default: 6h + - name: CACHE_DEFAULT_EXPIRATION + value: + _default: 60s + - name: ENABLE_SMTP + value: + _default: 'True' + - name: ENABLE_MAILGUN + value: + _default: 'False' + - name: CACHE_CLEANUP_INTERVAL + value: + _default: 60s + - name: DOCUMENT_PUBLIC_LINK_JWT_SECRET + value: + _default: mock + - name: ENABLE_AUTH_JWT_IN_URL + value: + _default: 'true' + - name: ENABLE_SIGNATURE_IN_URL + value: + _default: 'false' + - name: USE_CACHE_IN_FILE_STREAMER + value: + _default: '0' + - name: VALKEY_ADDR + value: + _default: redis:6379 + - name: VALKEY_HOST + value: + _default: redis + - name: VALKEY_PORT + value: + _default: '6379' + - name: CDE_API_ENABLED + value: + _default: 'true' + - name: CDE_API_URL + value: + _default: http://cde-api.documentations.svc.cluster.local:8000 diff --git a/apps/documentations/stand/kustomization.yaml b/apps/documentations/stand/kustomization.yaml index 32ccdd9..7edd956 100644 --- a/apps/documentations/stand/kustomization.yaml +++ b/apps/documentations/stand/kustomization.yaml @@ -5,6 +5,7 @@ resources: - cde-api patches: - path: api.yaml + - path: cde-api-integration.yaml - path: filestream.yaml - path: pdm.yaml configMapGenerator: From 62a1b2746e59b4a4a6cbe4a20a0f5ead3e4f8cc9 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 16:54:14 +0500 Subject: [PATCH 13/32] stand: deploy ams-sync with Vault credentials and Kafka health checks --- apps/ams-sync/stand/helmrelease.yaml | 181 ++++++++++++++++++++++ apps/ams-sync/stand/kustomization.yaml | 4 +- clusters/stand/50-apps/kustomization.yaml | 1 + 3 files changed, 185 insertions(+), 1 deletion(-) create mode 100644 apps/ams-sync/stand/helmrelease.yaml diff --git a/apps/ams-sync/stand/helmrelease.yaml b/apps/ams-sync/stand/helmrelease.yaml new file mode 100644 index 0000000..09ce5a8 --- /dev/null +++ b/apps/ams-sync/stand/helmrelease.yaml @@ -0,0 +1,181 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: ams-sync + namespace: ams-sync +spec: + chart: + spec: + version: 0.1.9 + values: + services: + backend: + serviceAccount: + enabled: + _default: true + name: + _default: ams-sync-vault + secretEnvs: [] + volumes: + _default: [] + podAnnotations: + _default: + sidecar.istio.io/proxyCPU: 25m + sidecar.istio.io/proxyMemory: 128Mi + sidecar.istio.io/proxyCPULimit: '2' + sidecar.istio.io/proxyMemoryLimit: 1Gi + proxy.istio.io/config: '{"holdApplicationUntilProxyStarts":true}' + traffic.sidecar.istio.io/excludeOutboundPorts: 4317,4318,9411,8200,9092 + vault.hashicorp.com/agent-inject: 'true' + vault.hashicorp.com/agent-init-first: 'true' + vault.hashicorp.com/agent-pre-populate-only: 'true' + vault.hashicorp.com/agent-requests-cpu: 25m + vault.hashicorp.com/auth-path: auth/kubernetes + vault.hashicorp.com/role: ams-sync + vault.hashicorp.com/agent-inject-secret-ams-sync-kafka: secrets/data/kafka/apps/ams-sync + vault.hashicorp.com/agent-inject-template-ams-sync-kafka: '{{- with secret + "secrets/data/kafka/apps/ams-sync" -}} + + KAFKA_BOOTSTRAP_SERVERS=''["{{ index .Data.data "bootstrap_servers" + }}"]'' + + KAFKA_SASL_PLAIN_USERNAME=''{{ index .Data.data "username" }}'' + + KAFKA_SASL_PLAIN_PASSWORD=''{{ index .Data.data "password" }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-ams-sync-zitadel: secrets/data/zitadel/setup + vault.hashicorp.com/agent-inject-template-ams-sync-zitadel: '{{- with + secret "secrets/data/zitadel/setup" -}} + + ZITADEL_SERVICE_ACCESS_TOKEN=''{{ index .Data.data "django_zitadel_access_token" + }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-ams-sync-auth: secrets/data/vault/common/django_auth + vault.hashicorp.com/agent-inject-template-ams-sync-auth: '{{- with secret + "secrets/data/vault/common/django_auth" -}} + + AUTH_ADMIN_USERNAME=''{{ index .Data.data "username" }}'' + + AUTH_ADMIN_PASSWORD=''{{ index .Data.data "password" }}'' + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-ams-sync-db: secrets/data/apps/django/postgres + vault.hashicorp.com/agent-inject-template-ams-sync-db: '{{- with secret + "secrets/data/apps/django/postgres" -}} + + USER_DB_NAME=''{{ index .Data.data "database" }}'' + + USER_DB_USER=''{{ index .Data.data "username" }}'' + + USER_DB_PASSWORD=''{{ index .Data.data "password" }}'' + + USER_DB_HOST=''{{ index .Data.data "host" }}'' + + USER_DB_PORT=''{{ index .Data.data "port" }}'' + + {{- end -}}' + sidecar.istio.io/inject: 'true' + envs: + - name: AMS_SYNC_TOPIC + value: + _default: ams-sync + - name: ENVIRONMENT + value: + _default: PRODUCTION + - name: HOST_ORGANIZATION_ID + value: + _default: '397401610885551249' + - name: ALERT_ENABLED + value: + _default: 'False' + - name: VERIFY_USERS + value: + _default: 'True' + - name: USER_SERVER_HOST + value: + _default: https://sarex.${CONTOUR_DOMAIN} + - name: AUTH_HOST + value: + _default: http://backend-svc.django.svc.cluster.local:80 + - name: RESOURCES_INTERNAL_HOST + value: + _default: http://iam-backend.iam.svc.cluster.local:8000 + - name: ZITADEL_HOST + value: + _default: https://${HOST_LOGIN} + - name: KAFKA_SECURITY_PROTOCOL + value: + _default: SASL_PLAINTEXT + - name: KAFKA_SASL_MECHANISM + value: + _default: SCRAM-SHA-512 + - name: KAFKA_SSL_CAFILE + value: + _default: '' + - name: TELEGRAM_TOKEN + value: + _default: 000000:disabled + - name: TELEGRAM_GROUP_ID + value: + _default: '0' + - name: PYTHONUNBUFFERED + value: + _default: '1' + - name: HEALTHCHECK_PORT + value: + _default: '8008' + service: + enabled: false + deployment: + port: + _default: 8008 + command: + _default: + - /bin/sh + - -ec + args: + _default: + - 'set -a + + . /vault/secrets/ams-sync-kafka + + . /vault/secrets/ams-sync-zitadel + + . /vault/secrets/ams-sync-auth + + . /vault/secrets/ams-sync-db + + set +a + + exec python3 cmd.py run + + ' + resources: + requests: + cpu: + _default: 25m + memory: + _default: 128Mi + probes: + readiness: + enabled: true + type: &id001 + _default: tcpSocket + tcpSocket: &id002 + port: + _default: 8008 + periodSeconds: + _default: 5 + timeoutSeconds: &id003 + _default: 2 + liveness: + enabled: true + type: *id001 + tcpSocket: *id002 + periodSeconds: + _default: 30 + timeoutSeconds: *id003 + initialDelaySeconds: + _default: 30 diff --git a/apps/ams-sync/stand/kustomization.yaml b/apps/ams-sync/stand/kustomization.yaml index dcbb122..e44ec8a 100644 --- a/apps/ams-sync/stand/kustomization.yaml +++ b/apps/ams-sync/stand/kustomization.yaml @@ -6,7 +6,7 @@ configMapGenerator: - name: ams-sync-contour-env literals: - USER_SERVER_HOST=https://sarex.${CONTOUR_DOMAIN} - - AUTH_HOST=https://sarex.${CONTOUR_DOMAIN} + - AUTH_HOST=http://backend-svc.django.svc.cluster.local:80 options: disableNameSuffixHash: true annotations: @@ -32,3 +32,5 @@ replacements: name: ams-sync fieldPaths: - spec.values.services.backend.envs.[name=AUTH_HOST].value._default +patches: + - path: helmrelease.yaml diff --git a/clusters/stand/50-apps/kustomization.yaml b/clusters/stand/50-apps/kustomization.yaml index a45dbed..337ac7b 100644 --- a/clusters/stand/50-apps/kustomization.yaml +++ b/clusters/stand/50-apps/kustomization.yaml @@ -1,6 +1,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: + - ../../../apps/ams-sync/stand - ../../../apps/attachments/stand - ../../../apps/auth-flow/stand - ../../../apps/bi/stand From 5fad7d54e8d3f02ef39ae4b63d11995eecd15c0c Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 16:58:22 +0500 Subject: [PATCH 14/32] stand: enable Django ams-sync events with Vault-backed Kafka credentials --- apps/django/stand/backend.yaml | 49 ++++++++++++++++++++++----- apps/django/stand/celery.yaml | 46 ++++++++++++++++++++----- clusters/stand/50-apps/stage-env.yaml | 4 +-- 3 files changed, 79 insertions(+), 20 deletions(-) diff --git a/apps/django/stand/backend.yaml b/apps/django/stand/backend.yaml index 366cb9b..70cfbc3 100644 --- a/apps/django/stand/backend.yaml +++ b/apps/django/stand/backend.yaml @@ -9,21 +9,52 @@ spec: backend: podAnnotations: _default: - vault.hashicorp.com/agent-inject-template-django-s3: |- - {{- with secret "secrets/data/minio/apps/django" }} + vault.hashicorp.com/agent-inject-template-django-s3: '{{- with secret + "secrets/data/minio/apps/django" }} + AWS_S3_ENDPOINT_URL=http://${MINIO_ENDPOINT} + S3_HOST=http://${MINIO_ENDPOINT} + S3_BUCKET={{ index .Data.data "bucket" }} + S3_LOGIN={{ index .Data.data "access_key_id" }} + S3_PASSWORD={{ index .Data.data "secret_access_key" }} + AWS_S3_ACCESS_KEY_ID={{ index .Data.data "access_key_id" }} + AWS_S3_SECRET_ACCESS_KEY={{ index .Data.data "secret_access_key" }} + AWS_STORAGE_BUCKET_NAME={{ index .Data.data "bucket" }} - {{- end }} + + {{- end }}' vault.hashicorp.com/agent-inject-secret-django-common: secrets/data/zitadel/setup - vault.hashicorp.com/agent-inject-template-django-common: |- - {{- with secret "secrets/data/zitadel/setup" -}} - ZITADEL_ACCESS_TOKEN={{ index .Data.data "django_zitadel_access_token" }} - {{- end -}} - vault.hashicorp.com/agent-inject-secret-django-kafka: null - vault.hashicorp.com/agent-inject-template-django-kafka: null + vault.hashicorp.com/agent-inject-template-django-common: '{{- with secret + "secrets/data/zitadel/setup" -}} + + ZITADEL_ACCESS_TOKEN={{ index .Data.data "django_zitadel_access_token" + }} + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-django-kafka: secrets/data/kafka/apps/iam + vault.hashicorp.com/agent-inject-template-django-kafka: '{{- with secret + "secrets/data/kafka/apps/iam" -}} + + KAFKA_BOOTSTRAP_SERVERS=''["{{ with index .Data.data "auth" }}{{ index + . "bootstrap_servers" }}{{ else }}{{ index .Data.data "bootstrap_servers" + }}{{ end }}"]'' + + KAFKA_SECURITY_PROTOCOL=''SASL_PLAINTEXT'' + + KAFKA_SASL_MECHANISM=''SCRAM-SHA-512'' + + KAFKA_SASL_PLAIN_USERNAME=''{{ index .Data.data "username" }}'' + + KAFKA_SASL_PLAIN_PASSWORD=''{{ index .Data.data "password" }}'' + + KAFKA_SSL_CAFILE='''' + + {{- end -}}' + traffic.sidecar.istio.io/excludeOutboundPorts: 8200,9092 + proxy.istio.io/config: '{"holdApplicationUntilProxyStarts":true}' diff --git a/apps/django/stand/celery.yaml b/apps/django/stand/celery.yaml index 26e55fb..860323c 100644 --- a/apps/django/stand/celery.yaml +++ b/apps/django/stand/celery.yaml @@ -9,18 +9,46 @@ spec: celery: podAnnotations: _default: - vault.hashicorp.com/agent-inject-template-django-s3: |- - {{- with secret "secrets/data/minio/apps/django" }} + vault.hashicorp.com/agent-inject-template-django-s3: '{{- with secret + "secrets/data/minio/apps/django" }} + AWS_S3_ENDPOINT_URL=http://${MINIO_ENDPOINT} + S3_HOST=http://${MINIO_ENDPOINT} + S3_BUCKET={{ index .Data.data "bucket" }} + S3_LOGIN={{ index .Data.data "access_key_id" }} + S3_PASSWORD={{ index .Data.data "secret_access_key" }} - {{- end }} + + {{- end }}' vault.hashicorp.com/agent-inject-secret-django-common: secrets/data/zitadel/setup - vault.hashicorp.com/agent-inject-template-django-common: |- - {{- with secret "secrets/data/zitadel/setup" -}} - ZITADEL_ACCESS_TOKEN={{ index .Data.data "django_zitadel_access_token" }} - {{- end -}} - vault.hashicorp.com/agent-inject-secret-django-kafka: null - vault.hashicorp.com/agent-inject-template-django-kafka: null + vault.hashicorp.com/agent-inject-template-django-common: '{{- with secret + "secrets/data/zitadel/setup" -}} + + ZITADEL_ACCESS_TOKEN={{ index .Data.data "django_zitadel_access_token" + }} + + {{- end -}}' + vault.hashicorp.com/agent-inject-secret-django-kafka: secrets/data/kafka/apps/iam + vault.hashicorp.com/agent-inject-template-django-kafka: '{{- with secret + "secrets/data/kafka/apps/iam" -}} + + KAFKA_BOOTSTRAP_SERVERS=''["{{ with index .Data.data "auth" }}{{ index + . "bootstrap_servers" }}{{ else }}{{ index .Data.data "bootstrap_servers" + }}{{ end }}"]'' + + KAFKA_SECURITY_PROTOCOL=''SASL_PLAINTEXT'' + + KAFKA_SASL_MECHANISM=''SCRAM-SHA-512'' + + KAFKA_SASL_PLAIN_USERNAME=''{{ index .Data.data "username" }}'' + + KAFKA_SASL_PLAIN_PASSWORD=''{{ index .Data.data "password" }}'' + + KAFKA_SSL_CAFILE='''' + + {{- end -}}' + traffic.sidecar.istio.io/excludeOutboundPorts: 8200,9092 + proxy.istio.io/config: '{"holdApplicationUntilProxyStarts":true}' diff --git a/clusters/stand/50-apps/stage-env.yaml b/clusters/stand/50-apps/stage-env.yaml index 7fa205b..f9cedd0 100644 --- a/clusters/stand/50-apps/stage-env.yaml +++ b/clusters/stand/50-apps/stage-env.yaml @@ -127,7 +127,7 @@ spec: _default: https://${HOST_LOGIN} - name: SERVER_KAFKA_ENABLED value: - _default: 'False' + _default: 'True' - name: KAFKA_TOPICS value: _default: '{"planning": "message-hub-stage", "ams-sync": "ams-sync"}' @@ -264,7 +264,7 @@ spec: _default: https://${HOST_LOGIN} - name: SERVER_KAFKA_ENABLED value: - _default: 'False' + _default: 'True' - name: KAFKA_TOPICS value: _default: '{"planning": "message-hub-stage", "ams-sync": "ams-sync"}' From 608f87b7151c95289a71c1c5df2620c51b6beb60 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 17:25:20 +0500 Subject: [PATCH 15/32] stand: fix Zitadel JWKS URL for ingress token validation --- infrastructure/istio-config/stand/istio-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/istio-config/stand/istio-config.yaml b/infrastructure/istio-config/stand/istio-config.yaml index 96d18b4..5324f27 100644 --- a/infrastructure/istio-config/stand/istio-config.yaml +++ b/infrastructure/istio-config/stand/istio-config.yaml @@ -55,7 +55,7 @@ spec: istio: ingressgateway jwtRules: - issuer: https://login.stand.sarex.tech - jwksUri: http://login.stand.sarex.tech:8080/oauth/v2/keys + jwksUri: https://login.stand.sarex.tech/oauth/v2/keys forwardOriginalToken: true outputClaimToHeaders: - claim: urn:zitadel:iam:user:metadata.user_id From 0d11e9fadfaca37ae3c5e56e62ea3937886bf79a Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Nov 2026 19:07:56 +0500 Subject: [PATCH 16/32] stand: use stand Zitadel organization for IAM registration --- apps/iam/stand/kustomization.yaml | 1 + apps/iam/stand/zitadel-org-rules.yaml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 apps/iam/stand/zitadel-org-rules.yaml diff --git a/apps/iam/stand/kustomization.yaml b/apps/iam/stand/kustomization.yaml index b599ebf..feb5e03 100644 --- a/apps/iam/stand/kustomization.yaml +++ b/apps/iam/stand/kustomization.yaml @@ -6,6 +6,7 @@ resources: patches: - path: backend.yaml - path: spicedb.yaml + - path: zitadel-org-rules.yaml configMapGenerator: - name: iam-contour-env literals: diff --git a/apps/iam/stand/zitadel-org-rules.yaml b/apps/iam/stand/zitadel-org-rules.yaml new file mode 100644 index 0000000..2ac08b3 --- /dev/null +++ b/apps/iam/stand/zitadel-org-rules.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: iam-zitadel-org-rules + namespace: iam +data: + org-rules-prod.json: | + { + "default_org_id": "397401610281571473", + "rules": [] + } From 1f4a4836c14e72a0a969a74d6a713944d1ee7c7a Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Mon, 23 Nov 2026 21:18:22 +0300 Subject: [PATCH 17/32] ++ nn-dev contour --- .../nn-dev/00-vault/helm-repositories.yaml | 14 + clusters/nn-dev/00-vault/kustomization.yaml | 5 + clusters/nn-dev/10-mesh/kustomization.yaml | 26 + clusters/nn-dev/20-data/kustomization.yaml | 5 + .../nn-dev/30-platform/kustomization.yaml | 5 + clusters/nn-dev/40-routing/kustomization.yaml | 12 + .../nn-dev/flux-system/gotk-components.yaml | 6440 +++++++++++++++++ clusters/nn-dev/flux-system/gotk-sync.yaml | 25 + .../nn-dev/flux-system/kustomization.yaml | 13 + clusters/nn-dev/kustomization.yaml | 5 + clusters/nn-dev/layers.yaml | 93 + .../camunda/contour-template/camunda.yaml | 8 +- .../contour-template/istio-gateway.yaml | 8 + .../rabbitmq/contour-template/rabbitmq.yaml | 3 +- 14 files changed, 6657 insertions(+), 5 deletions(-) create mode 100644 clusters/nn-dev/00-vault/helm-repositories.yaml create mode 100644 clusters/nn-dev/00-vault/kustomization.yaml create mode 100644 clusters/nn-dev/10-mesh/kustomization.yaml create mode 100644 clusters/nn-dev/20-data/kustomization.yaml create mode 100644 clusters/nn-dev/30-platform/kustomization.yaml create mode 100644 clusters/nn-dev/40-routing/kustomization.yaml create mode 100644 clusters/nn-dev/flux-system/gotk-components.yaml create mode 100644 clusters/nn-dev/flux-system/gotk-sync.yaml create mode 100644 clusters/nn-dev/flux-system/kustomization.yaml create mode 100644 clusters/nn-dev/kustomization.yaml create mode 100644 clusters/nn-dev/layers.yaml diff --git a/clusters/nn-dev/00-vault/helm-repositories.yaml b/clusters/nn-dev/00-vault/helm-repositories.yaml new file mode 100644 index 0000000..a5d9484 --- /dev/null +++ b/clusters/nn-dev/00-vault/helm-repositories.yaml @@ -0,0 +1,14 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1 +kind: HelmRepository +metadata: + name: yc-oci-charts + namespace: flux-system +spec: + type: oci + interval: 10m0s + url: ${CHART_REPO:=oci://cr.yandex/crp3ccidau046kdj8g9q/charts} + secretRef: + name: ${CHART_REPO_SECRET:=yc-cr-auth} + certSecretRef: + name: chart-repo-ca diff --git a/clusters/nn-dev/00-vault/kustomization.yaml b/clusters/nn-dev/00-vault/kustomization.yaml new file mode 100644 index 0000000..1573199 --- /dev/null +++ b/clusters/nn-dev/00-vault/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ./helm-repositories.yaml + - ../../../infrastructure/vault/contour-template diff --git a/clusters/nn-dev/10-mesh/kustomization.yaml b/clusters/nn-dev/10-mesh/kustomization.yaml new file mode 100644 index 0000000..1ec7cf3 --- /dev/null +++ b/clusters/nn-dev/10-mesh/kustomization.yaml @@ -0,0 +1,26 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../../../infrastructure/istio-base/contour-template + - ../../../infrastructure/istio-pilot/contour-template + - ../../../infrastructure/istio-gateway/contour-template + - ../../../infrastructure/cert-manager/contour-template +patches: + - target: + kind: HelmRelease + name: ingressgateway + patch: |- + - op: replace + path: /spec/values/_internal_defaults_do_not_set/service/type + value: LoadBalancer + - op: add + path: /spec/values/_internal_defaults_do_not_set/service/annotations + value: + yandex.cloud/load-balancer-type: internal + yandex.cloud/subnet-id: "${GATEWAY_SUBNET_ID}" + - op: add + path: /spec/values/_internal_defaults_do_not_set/service/externalTrafficPolicy + value: Local + - op: add + path: /spec/values/_internal_defaults_do_not_set/service/loadBalancerIP + value: "${BALANCER_IP:=}" diff --git a/clusters/nn-dev/20-data/kustomization.yaml b/clusters/nn-dev/20-data/kustomization.yaml new file mode 100644 index 0000000..be8662d --- /dev/null +++ b/clusters/nn-dev/20-data/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../../../infrastructure/postgresql/contour-template + - ../../../infrastructure/rabbitmq/contour-template diff --git a/clusters/nn-dev/30-platform/kustomization.yaml b/clusters/nn-dev/30-platform/kustomization.yaml new file mode 100644 index 0000000..a375cd7 --- /dev/null +++ b/clusters/nn-dev/30-platform/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../../../infrastructure/zitadel/contour-template + - ../../../infrastructure/camunda/contour-template diff --git a/clusters/nn-dev/40-routing/kustomization.yaml b/clusters/nn-dev/40-routing/kustomization.yaml new file mode 100644 index 0000000..de4ca1e --- /dev/null +++ b/clusters/nn-dev/40-routing/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../../../infrastructure/istio-config/contour-template +patches: + - target: + kind: HelmRelease + name: istio-config + patch: |- + - op: replace + path: /spec/chart/spec/version + value: "0.1.1" diff --git a/clusters/nn-dev/flux-system/gotk-components.yaml b/clusters/nn-dev/flux-system/gotk-components.yaml new file mode 100644 index 0000000..2f35cdf --- /dev/null +++ b/clusters/nn-dev/flux-system/gotk-components.yaml @@ -0,0 +1,6440 @@ +--- +# This manifest was generated by flux. DO NOT EDIT. +# Flux Version: v2.8.5 +# Components: source-controller,kustomize-controller,helm-controller,notification-controller +apiVersion: v1 +kind: Namespace +metadata: + labels: + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + pod-security.kubernetes.io/warn: restricted + pod-security.kubernetes.io/warn-version: latest + name: flux-system +--- +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + labels: + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: allow-egress + namespace: flux-system +spec: + egress: + - {} + ingress: + - from: + - podSelector: {} + podSelector: {} + policyTypes: + - Ingress + - Egress +--- +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + labels: + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: allow-scraping + namespace: flux-system +spec: + ingress: + - from: + - namespaceSelector: {} + ports: + - port: 8080 + protocol: TCP + podSelector: {} + policyTypes: + - Ingress +--- +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + labels: + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: allow-webhooks + namespace: flux-system +spec: + ingress: + - from: + - namespaceSelector: {} + podSelector: + matchLabels: + app: notification-controller + policyTypes: + - Ingress +--- +apiVersion: v1 +kind: ResourceQuota +metadata: + labels: + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: critical-pods-flux-system + namespace: flux-system +spec: + hard: + pods: "1000" + scopeSelector: + matchExpressions: + - operator: In + scopeName: PriorityClass + values: + - system-node-critical + - system-cluster-critical +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + labels: + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: crd-controller-flux-system +rules: +- apiGroups: + - source.toolkit.fluxcd.io + resources: + - '*' + verbs: + - '*' +- apiGroups: + - kustomize.toolkit.fluxcd.io + resources: + - '*' + verbs: + - '*' +- apiGroups: + - helm.toolkit.fluxcd.io + resources: + - '*' + verbs: + - '*' +- apiGroups: + - notification.toolkit.fluxcd.io + resources: + - '*' + verbs: + - '*' +- apiGroups: + - image.toolkit.fluxcd.io + resources: + - '*' + verbs: + - '*' +- apiGroups: + - source.extensions.fluxcd.io + resources: + - '*' + verbs: + - '*' +- apiGroups: + - "" + resources: + - namespaces + - secrets + - configmaps + - serviceaccounts + verbs: + - get + - list + - watch +- apiGroups: + - "" + resources: + - events + verbs: + - create + - patch +- apiGroups: + - "" + resources: + - configmaps + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - "" + resources: + - configmaps/status + verbs: + - get + - update + - patch +- apiGroups: + - coordination.k8s.io + resources: + - leases + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - "" + resources: + - serviceaccounts/token + verbs: + - create +- nonResourceURLs: + - /livez/ping + verbs: + - head +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + labels: + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + rbac.authorization.k8s.io/aggregate-to-admin: "true" + rbac.authorization.k8s.io/aggregate-to-edit: "true" + name: flux-edit-flux-system +rules: +- apiGroups: + - notification.toolkit.fluxcd.io + - source.toolkit.fluxcd.io + - source.extensions.fluxcd.io + - helm.toolkit.fluxcd.io + - image.toolkit.fluxcd.io + - kustomize.toolkit.fluxcd.io + resources: + - '*' + verbs: + - create + - delete + - deletecollection + - patch + - update +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + labels: + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + rbac.authorization.k8s.io/aggregate-to-admin: "true" + rbac.authorization.k8s.io/aggregate-to-edit: "true" + rbac.authorization.k8s.io/aggregate-to-view: "true" + name: flux-view-flux-system +rules: +- apiGroups: + - notification.toolkit.fluxcd.io + - source.toolkit.fluxcd.io + - source.extensions.fluxcd.io + - helm.toolkit.fluxcd.io + - image.toolkit.fluxcd.io + - kustomize.toolkit.fluxcd.io + resources: + - '*' + verbs: + - get + - list + - watch +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + labels: + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: cluster-reconciler-flux-system +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: cluster-admin +subjects: +- kind: ServiceAccount + name: kustomize-controller + namespace: flux-system +- kind: ServiceAccount + name: helm-controller + namespace: flux-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + labels: + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: crd-controller-flux-system +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: crd-controller-flux-system +subjects: +- kind: ServiceAccount + name: kustomize-controller + namespace: flux-system +- kind: ServiceAccount + name: helm-controller + namespace: flux-system +- kind: ServiceAccount + name: source-controller + namespace: flux-system +- kind: ServiceAccount + name: notification-controller + namespace: flux-system +- kind: ServiceAccount + name: image-reflector-controller + namespace: flux-system +- kind: ServiceAccount + name: image-automation-controller + namespace: flux-system +- kind: ServiceAccount + name: source-watcher + namespace: flux-system +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.19.0 + labels: + app.kubernetes.io/component: source-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: buckets.source.toolkit.fluxcd.io +spec: + group: source.toolkit.fluxcd.io + names: + kind: Bucket + listKind: BucketList + plural: buckets + singular: bucket + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .spec.endpoint + name: Endpoint + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + - jsonPath: .status.conditions[?(@.type=="Ready")].status + name: Ready + type: string + - jsonPath: .status.conditions[?(@.type=="Ready")].message + name: Status + type: string + name: v1 + schema: + openAPIV3Schema: + description: Bucket is the Schema for the buckets API. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: |- + BucketSpec specifies the required configuration to produce an Artifact for + an object storage bucket. + properties: + bucketName: + description: BucketName is the name of the object storage bucket. + type: string + certSecretRef: + description: |- + CertSecretRef can be given the name of a Secret containing + either or both of + + - a PEM-encoded client certificate (`tls.crt`) and private + key (`tls.key`); + - a PEM-encoded CA certificate (`ca.crt`) + + and whichever are supplied, will be used for connecting to the + bucket. The client cert and key are useful if you are + authenticating with a certificate; the CA cert is useful if + you are using a self-signed server certificate. The Secret must + be of type `Opaque` or `kubernetes.io/tls`. + + This field is only supported for the `generic` provider. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + endpoint: + description: Endpoint is the object storage address the BucketName + is located at. + type: string + ignore: + description: |- + Ignore overrides the set of excluded patterns in the .sourceignore format + (which is the same as .gitignore). If not provided, a default will be used, + consult the documentation for your version to find out what those are. + type: string + insecure: + description: Insecure allows connecting to a non-TLS HTTP Endpoint. + type: boolean + interval: + description: |- + Interval at which the Bucket Endpoint is checked for updates. + This interval is approximate and may be subject to jitter to ensure + efficient use of resources. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + prefix: + description: Prefix to use for server-side filtering of files in the + Bucket. + type: string + provider: + default: generic + description: |- + Provider of the object storage bucket. + Defaults to 'generic', which expects an S3 (API) compatible object + storage. + enum: + - generic + - aws + - gcp + - azure + type: string + proxySecretRef: + description: |- + ProxySecretRef specifies the Secret containing the proxy configuration + to use while communicating with the Bucket server. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + region: + description: Region of the Endpoint where the BucketName is located + in. + type: string + secretRef: + description: |- + SecretRef specifies the Secret containing authentication credentials + for the Bucket. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + serviceAccountName: + description: |- + ServiceAccountName is the name of the Kubernetes ServiceAccount used to authenticate + the bucket. This field is only supported for the 'gcp' and 'aws' providers. + For more information about workload identity: + https://fluxcd.io/flux/components/source/buckets/#workload-identity + type: string + sts: + description: |- + STS specifies the required configuration to use a Security Token + Service for fetching temporary credentials to authenticate in a + Bucket provider. + + This field is only supported for the `aws` and `generic` providers. + properties: + certSecretRef: + description: |- + CertSecretRef can be given the name of a Secret containing + either or both of + + - a PEM-encoded client certificate (`tls.crt`) and private + key (`tls.key`); + - a PEM-encoded CA certificate (`ca.crt`) + + and whichever are supplied, will be used for connecting to the + STS endpoint. The client cert and key are useful if you are + authenticating with a certificate; the CA cert is useful if + you are using a self-signed server certificate. The Secret must + be of type `Opaque` or `kubernetes.io/tls`. + + This field is only supported for the `ldap` provider. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + endpoint: + description: |- + Endpoint is the HTTP/S endpoint of the Security Token Service from + where temporary credentials will be fetched. + pattern: ^(http|https)://.*$ + type: string + provider: + description: Provider of the Security Token Service. + enum: + - aws + - ldap + type: string + secretRef: + description: |- + SecretRef specifies the Secret containing authentication credentials + for the STS endpoint. This Secret must contain the fields `username` + and `password` and is supported only for the `ldap` provider. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + required: + - endpoint + - provider + type: object + suspend: + description: |- + Suspend tells the controller to suspend the reconciliation of this + Bucket. + type: boolean + timeout: + default: 60s + description: Timeout for fetch operations, defaults to 60s. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ + type: string + required: + - bucketName + - endpoint + - interval + type: object + x-kubernetes-validations: + - message: STS configuration is only supported for the 'aws' and 'generic' + Bucket providers + rule: self.provider == 'aws' || self.provider == 'generic' || !has(self.sts) + - message: '''aws'' is the only supported STS provider for the ''aws'' + Bucket provider' + rule: self.provider != 'aws' || !has(self.sts) || self.sts.provider + == 'aws' + - message: '''ldap'' is the only supported STS provider for the ''generic'' + Bucket provider' + rule: self.provider != 'generic' || !has(self.sts) || self.sts.provider + == 'ldap' + - message: spec.sts.secretRef is not required for the 'aws' STS provider + rule: '!has(self.sts) || self.sts.provider != ''aws'' || !has(self.sts.secretRef)' + - message: spec.sts.certSecretRef is not required for the 'aws' STS provider + rule: '!has(self.sts) || self.sts.provider != ''aws'' || !has(self.sts.certSecretRef)' + - message: ServiceAccountName is not supported for the 'generic' Bucket + provider + rule: self.provider != 'generic' || !has(self.serviceAccountName) + - message: cannot set both .spec.secretRef and .spec.serviceAccountName + rule: '!has(self.secretRef) || !has(self.serviceAccountName)' + status: + default: + observedGeneration: -1 + description: BucketStatus records the observed state of a Bucket. + properties: + artifact: + description: Artifact represents the last successful Bucket reconciliation. + properties: + digest: + description: Digest is the digest of the file in the form of ':'. + pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ + type: string + lastUpdateTime: + description: |- + LastUpdateTime is the timestamp corresponding to the last update of the + Artifact. + format: date-time + type: string + metadata: + additionalProperties: + type: string + description: Metadata holds upstream information such as OCI annotations. + type: object + path: + description: |- + Path is the relative file path of the Artifact. It can be used to locate + the file in the root of the Artifact storage on the local file system of + the controller managing the Source. + type: string + revision: + description: |- + Revision is a human-readable identifier traceable in the origin source + system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. + type: string + size: + description: Size is the number of bytes in the file. + format: int64 + type: integer + url: + description: |- + URL is the HTTP address of the Artifact as exposed by the controller + managing the Source. It can be used to retrieve the Artifact for + consumption, e.g. by another controller applying the Artifact contents. + type: string + required: + - digest + - lastUpdateTime + - path + - revision + - url + type: object + conditions: + description: Conditions holds the conditions for the Bucket. + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + lastHandledReconcileAt: + description: |- + LastHandledReconcileAt holds the value of the most recent + reconcile request value, so a change of the annotation value + can be detected. + type: string + observedGeneration: + description: ObservedGeneration is the last observed generation of + the Bucket object. + format: int64 + type: integer + observedIgnore: + description: |- + ObservedIgnore is the observed exclusion patterns used for constructing + the source artifact. + type: string + url: + description: |- + URL is the dynamic fetch link for the latest Artifact. + It is provided on a "best effort" basis, and using the precise + BucketStatus.Artifact data is recommended. + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.19.0 + labels: + app.kubernetes.io/component: source-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: externalartifacts.source.toolkit.fluxcd.io +spec: + group: source.toolkit.fluxcd.io + names: + kind: ExternalArtifact + listKind: ExternalArtifactList + plural: externalartifacts + singular: externalartifact + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + - jsonPath: .status.conditions[?(@.type=="Ready")].status + name: Ready + type: string + - jsonPath: .status.conditions[?(@.type=="Ready")].message + name: Status + type: string + - jsonPath: .spec.sourceRef.name + name: Source + type: string + name: v1 + schema: + openAPIV3Schema: + description: ExternalArtifact is the Schema for the external artifacts API + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: ExternalArtifactSpec defines the desired state of ExternalArtifact + properties: + sourceRef: + description: |- + SourceRef points to the Kubernetes custom resource for + which the artifact is generated. + properties: + apiVersion: + description: API version of the referent, if not specified the + Kubernetes preferred version will be used. + type: string + kind: + description: Kind of the referent. + type: string + name: + description: Name of the referent. + type: string + namespace: + description: Namespace of the referent, when not specified it + acts as LocalObjectReference. + type: string + required: + - kind + - name + type: object + type: object + status: + description: ExternalArtifactStatus defines the observed state of ExternalArtifact + properties: + artifact: + description: Artifact represents the output of an ExternalArtifact + reconciliation. + properties: + digest: + description: Digest is the digest of the file in the form of ':'. + pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ + type: string + lastUpdateTime: + description: |- + LastUpdateTime is the timestamp corresponding to the last update of the + Artifact. + format: date-time + type: string + metadata: + additionalProperties: + type: string + description: Metadata holds upstream information such as OCI annotations. + type: object + path: + description: |- + Path is the relative file path of the Artifact. It can be used to locate + the file in the root of the Artifact storage on the local file system of + the controller managing the Source. + type: string + revision: + description: |- + Revision is a human-readable identifier traceable in the origin source + system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. + type: string + size: + description: Size is the number of bytes in the file. + format: int64 + type: integer + url: + description: |- + URL is the HTTP address of the Artifact as exposed by the controller + managing the Source. It can be used to retrieve the Artifact for + consumption, e.g. by another controller applying the Artifact contents. + type: string + required: + - digest + - lastUpdateTime + - path + - revision + - url + type: object + conditions: + description: Conditions holds the conditions for the ExternalArtifact. + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + type: object + type: object + served: true + storage: true + subresources: + status: {} +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.19.0 + labels: + app.kubernetes.io/component: source-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: gitrepositories.source.toolkit.fluxcd.io +spec: + group: source.toolkit.fluxcd.io + names: + kind: GitRepository + listKind: GitRepositoryList + plural: gitrepositories + shortNames: + - gitrepo + singular: gitrepository + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .spec.url + name: URL + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + - jsonPath: .status.conditions[?(@.type=="Ready")].status + name: Ready + type: string + - jsonPath: .status.conditions[?(@.type=="Ready")].message + name: Status + type: string + name: v1 + schema: + openAPIV3Schema: + description: GitRepository is the Schema for the gitrepositories API. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: |- + GitRepositorySpec specifies the required configuration to produce an + Artifact for a Git repository. + properties: + ignore: + description: |- + Ignore overrides the set of excluded patterns in the .sourceignore format + (which is the same as .gitignore). If not provided, a default will be used, + consult the documentation for your version to find out what those are. + type: string + include: + description: |- + Include specifies a list of GitRepository resources which Artifacts + should be included in the Artifact produced for this GitRepository. + items: + description: |- + GitRepositoryInclude specifies a local reference to a GitRepository which + Artifact (sub-)contents must be included, and where they should be placed. + properties: + fromPath: + description: |- + FromPath specifies the path to copy contents from, defaults to the root + of the Artifact. + type: string + repository: + description: |- + GitRepositoryRef specifies the GitRepository which Artifact contents + must be included. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + toPath: + description: |- + ToPath specifies the path to copy contents to, defaults to the name of + the GitRepositoryRef. + type: string + required: + - repository + type: object + type: array + interval: + description: |- + Interval at which the GitRepository URL is checked for updates. + This interval is approximate and may be subject to jitter to ensure + efficient use of resources. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + provider: + description: |- + Provider used for authentication, can be 'azure', 'github', 'generic'. + When not specified, defaults to 'generic'. + enum: + - generic + - azure + - github + type: string + proxySecretRef: + description: |- + ProxySecretRef specifies the Secret containing the proxy configuration + to use while communicating with the Git server. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + recurseSubmodules: + description: |- + RecurseSubmodules enables the initialization of all submodules within + the GitRepository as cloned from the URL, using their default settings. + type: boolean + ref: + description: |- + Reference specifies the Git reference to resolve and monitor for + changes, defaults to the 'master' branch. + properties: + branch: + description: Branch to check out, defaults to 'master' if no other + field is defined. + type: string + commit: + description: |- + Commit SHA to check out, takes precedence over all reference fields. + + This can be combined with Branch to shallow clone the branch, in which + the commit is expected to exist. + type: string + name: + description: |- + Name of the reference to check out; takes precedence over Branch, Tag and SemVer. + + It must be a valid Git reference: https://git-scm.com/docs/git-check-ref-format#_description + Examples: "refs/heads/main", "refs/tags/v0.1.0", "refs/pull/420/head", "refs/merge-requests/1/head" + type: string + semver: + description: SemVer tag expression to check out, takes precedence + over Tag. + type: string + tag: + description: Tag to check out, takes precedence over Branch. + type: string + type: object + secretRef: + description: |- + SecretRef specifies the Secret containing authentication credentials for + the GitRepository. + For HTTPS repositories the Secret must contain 'username' and 'password' + fields for basic auth or 'bearerToken' field for token auth. + For SSH repositories the Secret must contain 'identity' + and 'known_hosts' fields. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + serviceAccountName: + description: |- + ServiceAccountName is the name of the Kubernetes ServiceAccount used to + authenticate to the GitRepository. This field is only supported for 'azure' provider. + type: string + sparseCheckout: + description: |- + SparseCheckout specifies a list of directories to checkout when cloning + the repository. If specified, only these directories are included in the + Artifact produced for this GitRepository. + items: + type: string + type: array + suspend: + description: |- + Suspend tells the controller to suspend the reconciliation of this + GitRepository. + type: boolean + timeout: + default: 60s + description: Timeout for Git operations like cloning, defaults to + 60s. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ + type: string + url: + description: URL specifies the Git repository URL, it can be an HTTP/S + or SSH address. + pattern: ^(http|https|ssh)://.*$ + type: string + verify: + description: |- + Verification specifies the configuration to verify the Git commit + signature(s). + properties: + mode: + default: HEAD + description: |- + Mode specifies which Git object(s) should be verified. + + The variants "head" and "HEAD" both imply the same thing, i.e. verify + the commit that the HEAD of the Git repository points to. The variant + "head" solely exists to ensure backwards compatibility. + enum: + - head + - HEAD + - Tag + - TagAndHEAD + type: string + secretRef: + description: |- + SecretRef specifies the Secret containing the public keys of trusted Git + authors. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + required: + - secretRef + type: object + required: + - interval + - url + type: object + x-kubernetes-validations: + - message: serviceAccountName can only be set when provider is 'azure' + rule: '!has(self.serviceAccountName) || (has(self.provider) && self.provider + == ''azure'')' + status: + default: + observedGeneration: -1 + description: GitRepositoryStatus records the observed state of a Git repository. + properties: + artifact: + description: Artifact represents the last successful GitRepository + reconciliation. + properties: + digest: + description: Digest is the digest of the file in the form of ':'. + pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ + type: string + lastUpdateTime: + description: |- + LastUpdateTime is the timestamp corresponding to the last update of the + Artifact. + format: date-time + type: string + metadata: + additionalProperties: + type: string + description: Metadata holds upstream information such as OCI annotations. + type: object + path: + description: |- + Path is the relative file path of the Artifact. It can be used to locate + the file in the root of the Artifact storage on the local file system of + the controller managing the Source. + type: string + revision: + description: |- + Revision is a human-readable identifier traceable in the origin source + system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. + type: string + size: + description: Size is the number of bytes in the file. + format: int64 + type: integer + url: + description: |- + URL is the HTTP address of the Artifact as exposed by the controller + managing the Source. It can be used to retrieve the Artifact for + consumption, e.g. by another controller applying the Artifact contents. + type: string + required: + - digest + - lastUpdateTime + - path + - revision + - url + type: object + conditions: + description: Conditions holds the conditions for the GitRepository. + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + includedArtifacts: + description: |- + IncludedArtifacts contains a list of the last successfully included + Artifacts as instructed by GitRepositorySpec.Include. + items: + description: Artifact represents the output of a Source reconciliation. + properties: + digest: + description: Digest is the digest of the file in the form of + ':'. + pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ + type: string + lastUpdateTime: + description: |- + LastUpdateTime is the timestamp corresponding to the last update of the + Artifact. + format: date-time + type: string + metadata: + additionalProperties: + type: string + description: Metadata holds upstream information such as OCI + annotations. + type: object + path: + description: |- + Path is the relative file path of the Artifact. It can be used to locate + the file in the root of the Artifact storage on the local file system of + the controller managing the Source. + type: string + revision: + description: |- + Revision is a human-readable identifier traceable in the origin source + system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. + type: string + size: + description: Size is the number of bytes in the file. + format: int64 + type: integer + url: + description: |- + URL is the HTTP address of the Artifact as exposed by the controller + managing the Source. It can be used to retrieve the Artifact for + consumption, e.g. by another controller applying the Artifact contents. + type: string + required: + - digest + - lastUpdateTime + - path + - revision + - url + type: object + type: array + lastHandledReconcileAt: + description: |- + LastHandledReconcileAt holds the value of the most recent + reconcile request value, so a change of the annotation value + can be detected. + type: string + observedGeneration: + description: |- + ObservedGeneration is the last observed generation of the GitRepository + object. + format: int64 + type: integer + observedIgnore: + description: |- + ObservedIgnore is the observed exclusion patterns used for constructing + the source artifact. + type: string + observedInclude: + description: |- + ObservedInclude is the observed list of GitRepository resources used to + produce the current Artifact. + items: + description: |- + GitRepositoryInclude specifies a local reference to a GitRepository which + Artifact (sub-)contents must be included, and where they should be placed. + properties: + fromPath: + description: |- + FromPath specifies the path to copy contents from, defaults to the root + of the Artifact. + type: string + repository: + description: |- + GitRepositoryRef specifies the GitRepository which Artifact contents + must be included. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + toPath: + description: |- + ToPath specifies the path to copy contents to, defaults to the name of + the GitRepositoryRef. + type: string + required: + - repository + type: object + type: array + observedRecurseSubmodules: + description: |- + ObservedRecurseSubmodules is the observed resource submodules + configuration used to produce the current Artifact. + type: boolean + observedSparseCheckout: + description: |- + ObservedSparseCheckout is the observed list of directories used to + produce the current Artifact. + items: + type: string + type: array + sourceVerificationMode: + description: |- + SourceVerificationMode is the last used verification mode indicating + which Git object(s) have been verified. + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.19.0 + labels: + app.kubernetes.io/component: source-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: helmcharts.source.toolkit.fluxcd.io +spec: + group: source.toolkit.fluxcd.io + names: + kind: HelmChart + listKind: HelmChartList + plural: helmcharts + shortNames: + - hc + singular: helmchart + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .spec.chart + name: Chart + type: string + - jsonPath: .spec.version + name: Version + type: string + - jsonPath: .spec.sourceRef.kind + name: Source Kind + type: string + - jsonPath: .spec.sourceRef.name + name: Source Name + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + - jsonPath: .status.conditions[?(@.type=="Ready")].status + name: Ready + type: string + - jsonPath: .status.conditions[?(@.type=="Ready")].message + name: Status + type: string + name: v1 + schema: + openAPIV3Schema: + description: HelmChart is the Schema for the helmcharts API. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: HelmChartSpec specifies the desired state of a Helm chart. + properties: + chart: + description: |- + Chart is the name or path the Helm chart is available at in the + SourceRef. + type: string + ignoreMissingValuesFiles: + description: |- + IgnoreMissingValuesFiles controls whether to silently ignore missing values + files rather than failing. + type: boolean + interval: + description: |- + Interval at which the HelmChart SourceRef is checked for updates. + This interval is approximate and may be subject to jitter to ensure + efficient use of resources. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + reconcileStrategy: + default: ChartVersion + description: |- + ReconcileStrategy determines what enables the creation of a new artifact. + Valid values are ('ChartVersion', 'Revision'). + See the documentation of the values for an explanation on their behavior. + Defaults to ChartVersion when omitted. + enum: + - ChartVersion + - Revision + type: string + sourceRef: + description: SourceRef is the reference to the Source the chart is + available at. + properties: + apiVersion: + description: APIVersion of the referent. + type: string + kind: + description: |- + Kind of the referent, valid values are ('HelmRepository', 'GitRepository', + 'Bucket'). + enum: + - HelmRepository + - GitRepository + - Bucket + type: string + name: + description: Name of the referent. + type: string + required: + - kind + - name + type: object + suspend: + description: |- + Suspend tells the controller to suspend the reconciliation of this + source. + type: boolean + valuesFiles: + description: |- + ValuesFiles is an alternative list of values files to use as the chart + values (values.yaml is not included by default), expected to be a + relative path in the SourceRef. + Values files are merged in the order of this list with the last file + overriding the first. Ignored when omitted. + items: + type: string + type: array + verify: + description: |- + Verify contains the secret name containing the trusted public keys + used to verify the signature and specifies which provider to use to check + whether OCI image is authentic. + This field is only supported when using HelmRepository source with spec.type 'oci'. + Chart dependencies, which are not bundled in the umbrella chart artifact, are not verified. + properties: + matchOIDCIdentity: + description: |- + MatchOIDCIdentity specifies the identity matching criteria to use + while verifying an OCI artifact which was signed using Cosign keyless + signing. The artifact's identity is deemed to be verified if any of the + specified matchers match against the identity. + items: + description: |- + OIDCIdentityMatch specifies options for verifying the certificate identity, + i.e. the issuer and the subject of the certificate. + properties: + issuer: + description: |- + Issuer specifies the regex pattern to match against to verify + the OIDC issuer in the Fulcio certificate. The pattern must be a + valid Go regular expression. + type: string + subject: + description: |- + Subject specifies the regex pattern to match against to verify + the identity subject in the Fulcio certificate. The pattern must + be a valid Go regular expression. + type: string + required: + - issuer + - subject + type: object + type: array + provider: + default: cosign + description: Provider specifies the technology used to sign the + OCI Artifact. + enum: + - cosign + - notation + type: string + secretRef: + description: |- + SecretRef specifies the Kubernetes Secret containing the + trusted public keys. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + required: + - provider + type: object + version: + default: '*' + description: |- + Version is the chart version semver expression, ignored for charts from + GitRepository and Bucket sources. Defaults to latest when omitted. + type: string + required: + - chart + - interval + - sourceRef + type: object + x-kubernetes-validations: + - message: spec.verify is only supported when spec.sourceRef.kind is 'HelmRepository' + rule: '!has(self.verify) || self.sourceRef.kind == ''HelmRepository''' + status: + default: + observedGeneration: -1 + description: HelmChartStatus records the observed state of the HelmChart. + properties: + artifact: + description: Artifact represents the output of the last successful + reconciliation. + properties: + digest: + description: Digest is the digest of the file in the form of ':'. + pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ + type: string + lastUpdateTime: + description: |- + LastUpdateTime is the timestamp corresponding to the last update of the + Artifact. + format: date-time + type: string + metadata: + additionalProperties: + type: string + description: Metadata holds upstream information such as OCI annotations. + type: object + path: + description: |- + Path is the relative file path of the Artifact. It can be used to locate + the file in the root of the Artifact storage on the local file system of + the controller managing the Source. + type: string + revision: + description: |- + Revision is a human-readable identifier traceable in the origin source + system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. + type: string + size: + description: Size is the number of bytes in the file. + format: int64 + type: integer + url: + description: |- + URL is the HTTP address of the Artifact as exposed by the controller + managing the Source. It can be used to retrieve the Artifact for + consumption, e.g. by another controller applying the Artifact contents. + type: string + required: + - digest + - lastUpdateTime + - path + - revision + - url + type: object + conditions: + description: Conditions holds the conditions for the HelmChart. + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + lastHandledReconcileAt: + description: |- + LastHandledReconcileAt holds the value of the most recent + reconcile request value, so a change of the annotation value + can be detected. + type: string + observedChartName: + description: |- + ObservedChartName is the last observed chart name as specified by the + resolved chart reference. + type: string + observedGeneration: + description: |- + ObservedGeneration is the last observed generation of the HelmChart + object. + format: int64 + type: integer + observedSourceArtifactRevision: + description: |- + ObservedSourceArtifactRevision is the last observed Artifact.Revision + of the HelmChartSpec.SourceRef. + type: string + observedValuesFiles: + description: |- + ObservedValuesFiles are the observed value files of the last successful + reconciliation. + It matches the chart in the last successfully reconciled artifact. + items: + type: string + type: array + url: + description: |- + URL is the dynamic fetch link for the latest Artifact. + It is provided on a "best effort" basis, and using the precise + BucketStatus.Artifact data is recommended. + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.19.0 + labels: + app.kubernetes.io/component: source-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: helmrepositories.source.toolkit.fluxcd.io +spec: + group: source.toolkit.fluxcd.io + names: + kind: HelmRepository + listKind: HelmRepositoryList + plural: helmrepositories + shortNames: + - helmrepo + singular: helmrepository + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .spec.url + name: URL + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + - jsonPath: .status.conditions[?(@.type=="Ready")].status + name: Ready + type: string + - jsonPath: .status.conditions[?(@.type=="Ready")].message + name: Status + type: string + name: v1 + schema: + openAPIV3Schema: + description: HelmRepository is the Schema for the helmrepositories API. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: |- + HelmRepositorySpec specifies the required configuration to produce an + Artifact for a Helm repository index YAML. + properties: + accessFrom: + description: |- + AccessFrom specifies an Access Control List for allowing cross-namespace + references to this object. + NOTE: Not implemented, provisional as of https://github.com/fluxcd/flux2/pull/2092 + properties: + namespaceSelectors: + description: |- + NamespaceSelectors is the list of namespace selectors to which this ACL applies. + Items in this list are evaluated using a logical OR operation. + items: + description: |- + NamespaceSelector selects the namespaces to which this ACL applies. + An empty map of MatchLabels matches all namespaces in a cluster. + properties: + matchLabels: + additionalProperties: + type: string + description: |- + MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, whose key field is "key", the + operator is "In", and the values array contains only "value". The requirements are ANDed. + type: object + type: object + type: array + required: + - namespaceSelectors + type: object + certSecretRef: + description: |- + CertSecretRef can be given the name of a Secret containing + either or both of + + - a PEM-encoded client certificate (`tls.crt`) and private + key (`tls.key`); + - a PEM-encoded CA certificate (`ca.crt`) + + and whichever are supplied, will be used for connecting to the + registry. The client cert and key are useful if you are + authenticating with a certificate; the CA cert is useful if + you are using a self-signed server certificate. The Secret must + be of type `Opaque` or `kubernetes.io/tls`. + + It takes precedence over the values specified in the Secret referred + to by `.spec.secretRef`. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + insecure: + description: |- + Insecure allows connecting to a non-TLS HTTP container registry. + This field is only taken into account if the .spec.type field is set to 'oci'. + type: boolean + interval: + description: |- + Interval at which the HelmRepository URL is checked for updates. + This interval is approximate and may be subject to jitter to ensure + efficient use of resources. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + passCredentials: + description: |- + PassCredentials allows the credentials from the SecretRef to be passed + on to a host that does not match the host as defined in URL. + This may be required if the host of the advertised chart URLs in the + index differ from the defined URL. + Enabling this should be done with caution, as it can potentially result + in credentials getting stolen in a MITM-attack. + type: boolean + provider: + default: generic + description: |- + Provider used for authentication, can be 'aws', 'azure', 'gcp' or 'generic'. + This field is optional, and only taken into account if the .spec.type field is set to 'oci'. + When not specified, defaults to 'generic'. + enum: + - generic + - aws + - azure + - gcp + type: string + secretRef: + description: |- + SecretRef specifies the Secret containing authentication credentials + for the HelmRepository. + For HTTP/S basic auth the secret must contain 'username' and 'password' + fields. + Support for TLS auth using the 'certFile' and 'keyFile', and/or 'caFile' + keys is deprecated. Please use `.spec.certSecretRef` instead. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + suspend: + description: |- + Suspend tells the controller to suspend the reconciliation of this + HelmRepository. + type: boolean + timeout: + description: |- + Timeout is used for the index fetch operation for an HTTPS helm repository, + and for remote OCI Repository operations like pulling for an OCI helm + chart by the associated HelmChart. + Its default value is 60s. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ + type: string + type: + description: |- + Type of the HelmRepository. + When this field is set to "oci", the URL field value must be prefixed with "oci://". + enum: + - default + - oci + type: string + url: + description: |- + URL of the Helm repository, a valid URL contains at least a protocol and + host. + pattern: ^(http|https|oci)://.*$ + type: string + required: + - url + type: object + status: + default: + observedGeneration: -1 + description: HelmRepositoryStatus records the observed state of the HelmRepository. + properties: + artifact: + description: Artifact represents the last successful HelmRepository + reconciliation. + properties: + digest: + description: Digest is the digest of the file in the form of ':'. + pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ + type: string + lastUpdateTime: + description: |- + LastUpdateTime is the timestamp corresponding to the last update of the + Artifact. + format: date-time + type: string + metadata: + additionalProperties: + type: string + description: Metadata holds upstream information such as OCI annotations. + type: object + path: + description: |- + Path is the relative file path of the Artifact. It can be used to locate + the file in the root of the Artifact storage on the local file system of + the controller managing the Source. + type: string + revision: + description: |- + Revision is a human-readable identifier traceable in the origin source + system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. + type: string + size: + description: Size is the number of bytes in the file. + format: int64 + type: integer + url: + description: |- + URL is the HTTP address of the Artifact as exposed by the controller + managing the Source. It can be used to retrieve the Artifact for + consumption, e.g. by another controller applying the Artifact contents. + type: string + required: + - digest + - lastUpdateTime + - path + - revision + - url + type: object + conditions: + description: Conditions holds the conditions for the HelmRepository. + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + lastHandledReconcileAt: + description: |- + LastHandledReconcileAt holds the value of the most recent + reconcile request value, so a change of the annotation value + can be detected. + type: string + observedGeneration: + description: |- + ObservedGeneration is the last observed generation of the HelmRepository + object. + format: int64 + type: integer + url: + description: |- + URL is the dynamic fetch link for the latest Artifact. + It is provided on a "best effort" basis, and using the precise + HelmRepositoryStatus.Artifact data is recommended. + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.19.0 + labels: + app.kubernetes.io/component: source-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: ocirepositories.source.toolkit.fluxcd.io +spec: + group: source.toolkit.fluxcd.io + names: + kind: OCIRepository + listKind: OCIRepositoryList + plural: ocirepositories + shortNames: + - ocirepo + singular: ocirepository + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .spec.url + name: URL + type: string + - jsonPath: .status.conditions[?(@.type=="Ready")].status + name: Ready + type: string + - jsonPath: .status.conditions[?(@.type=="Ready")].message + name: Status + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1 + schema: + openAPIV3Schema: + description: OCIRepository is the Schema for the ocirepositories API + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: OCIRepositorySpec defines the desired state of OCIRepository + properties: + certSecretRef: + description: |- + CertSecretRef can be given the name of a Secret containing + either or both of + + - a PEM-encoded client certificate (`tls.crt`) and private + key (`tls.key`); + - a PEM-encoded CA certificate (`ca.crt`) + + and whichever are supplied, will be used for connecting to the + registry. The client cert and key are useful if you are + authenticating with a certificate; the CA cert is useful if + you are using a self-signed server certificate. The Secret must + be of type `Opaque` or `kubernetes.io/tls`. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + ignore: + description: |- + Ignore overrides the set of excluded patterns in the .sourceignore format + (which is the same as .gitignore). If not provided, a default will be used, + consult the documentation for your version to find out what those are. + type: string + insecure: + description: Insecure allows connecting to a non-TLS HTTP container + registry. + type: boolean + interval: + description: |- + Interval at which the OCIRepository URL is checked for updates. + This interval is approximate and may be subject to jitter to ensure + efficient use of resources. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + layerSelector: + description: |- + LayerSelector specifies which layer should be extracted from the OCI artifact. + When not specified, the first layer found in the artifact is selected. + properties: + mediaType: + description: |- + MediaType specifies the OCI media type of the layer + which should be extracted from the OCI Artifact. The + first layer matching this type is selected. + type: string + operation: + description: |- + Operation specifies how the selected layer should be processed. + By default, the layer compressed content is extracted to storage. + When the operation is set to 'copy', the layer compressed content + is persisted to storage as it is. + enum: + - extract + - copy + type: string + type: object + provider: + default: generic + description: |- + The provider used for authentication, can be 'aws', 'azure', 'gcp' or 'generic'. + When not specified, defaults to 'generic'. + enum: + - generic + - aws + - azure + - gcp + type: string + proxySecretRef: + description: |- + ProxySecretRef specifies the Secret containing the proxy configuration + to use while communicating with the container registry. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + ref: + description: |- + The OCI reference to pull and monitor for changes, + defaults to the latest tag. + properties: + digest: + description: |- + Digest is the image digest to pull, takes precedence over SemVer. + The value should be in the format 'sha256:'. + type: string + semver: + description: |- + SemVer is the range of tags to pull selecting the latest within + the range, takes precedence over Tag. + type: string + semverFilter: + description: SemverFilter is a regex pattern to filter the tags + within the SemVer range. + type: string + tag: + description: Tag is the image tag to pull, defaults to latest. + type: string + type: object + secretRef: + description: |- + SecretRef contains the secret name containing the registry login + credentials to resolve image metadata. + The secret must be of type kubernetes.io/dockerconfigjson. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + serviceAccountName: + description: |- + ServiceAccountName is the name of the Kubernetes ServiceAccount used to authenticate + the image pull if the service account has attached pull secrets. For more information: + https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account + type: string + suspend: + description: This flag tells the controller to suspend the reconciliation + of this source. + type: boolean + timeout: + default: 60s + description: The timeout for remote OCI Repository operations like + pulling, defaults to 60s. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ + type: string + url: + description: |- + URL is a reference to an OCI artifact repository hosted + on a remote container registry. + pattern: ^oci://.*$ + type: string + verify: + description: |- + Verify contains the secret name containing the trusted public keys + used to verify the signature and specifies which provider to use to check + whether OCI image is authentic. + properties: + matchOIDCIdentity: + description: |- + MatchOIDCIdentity specifies the identity matching criteria to use + while verifying an OCI artifact which was signed using Cosign keyless + signing. The artifact's identity is deemed to be verified if any of the + specified matchers match against the identity. + items: + description: |- + OIDCIdentityMatch specifies options for verifying the certificate identity, + i.e. the issuer and the subject of the certificate. + properties: + issuer: + description: |- + Issuer specifies the regex pattern to match against to verify + the OIDC issuer in the Fulcio certificate. The pattern must be a + valid Go regular expression. + type: string + subject: + description: |- + Subject specifies the regex pattern to match against to verify + the identity subject in the Fulcio certificate. The pattern must + be a valid Go regular expression. + type: string + required: + - issuer + - subject + type: object + type: array + provider: + default: cosign + description: Provider specifies the technology used to sign the + OCI Artifact. + enum: + - cosign + - notation + type: string + secretRef: + description: |- + SecretRef specifies the Kubernetes Secret containing the + trusted public keys. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + required: + - provider + type: object + required: + - interval + - url + type: object + status: + default: + observedGeneration: -1 + description: OCIRepositoryStatus defines the observed state of OCIRepository + properties: + artifact: + description: Artifact represents the output of the last successful + OCI Repository sync. + properties: + digest: + description: Digest is the digest of the file in the form of ':'. + pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ + type: string + lastUpdateTime: + description: |- + LastUpdateTime is the timestamp corresponding to the last update of the + Artifact. + format: date-time + type: string + metadata: + additionalProperties: + type: string + description: Metadata holds upstream information such as OCI annotations. + type: object + path: + description: |- + Path is the relative file path of the Artifact. It can be used to locate + the file in the root of the Artifact storage on the local file system of + the controller managing the Source. + type: string + revision: + description: |- + Revision is a human-readable identifier traceable in the origin source + system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. + type: string + size: + description: Size is the number of bytes in the file. + format: int64 + type: integer + url: + description: |- + URL is the HTTP address of the Artifact as exposed by the controller + managing the Source. It can be used to retrieve the Artifact for + consumption, e.g. by another controller applying the Artifact contents. + type: string + required: + - digest + - lastUpdateTime + - path + - revision + - url + type: object + conditions: + description: Conditions holds the conditions for the OCIRepository. + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + lastHandledReconcileAt: + description: |- + LastHandledReconcileAt holds the value of the most recent + reconcile request value, so a change of the annotation value + can be detected. + type: string + observedGeneration: + description: ObservedGeneration is the last observed generation. + format: int64 + type: integer + observedIgnore: + description: |- + ObservedIgnore is the observed exclusion patterns used for constructing + the source artifact. + type: string + observedLayerSelector: + description: |- + ObservedLayerSelector is the observed layer selector used for constructing + the source artifact. + properties: + mediaType: + description: |- + MediaType specifies the OCI media type of the layer + which should be extracted from the OCI Artifact. The + first layer matching this type is selected. + type: string + operation: + description: |- + Operation specifies how the selected layer should be processed. + By default, the layer compressed content is extracted to storage. + When the operation is set to 'copy', the layer compressed content + is persisted to storage as it is. + enum: + - extract + - copy + type: string + type: object + url: + description: URL is the download link for the artifact output of the + last OCI Repository sync. + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} +--- +apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + app.kubernetes.io/component: source-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: source-controller + namespace: flux-system +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/component: source-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + control-plane: controller + name: source-controller + namespace: flux-system +spec: + ports: + - name: http + port: 80 + protocol: TCP + targetPort: http + selector: + app: source-controller + type: ClusterIP +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app.kubernetes.io/component: source-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + control-plane: controller + name: source-controller + namespace: flux-system +spec: + replicas: 1 + selector: + matchLabels: + app: source-controller + strategy: + type: Recreate + template: + metadata: + annotations: + prometheus.io/port: "8080" + prometheus.io/scrape: "true" + labels: + app: source-controller + app.kubernetes.io/component: source-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + spec: + containers: + - args: + - --events-addr=http://notification-controller.$(RUNTIME_NAMESPACE).svc.cluster.local./ + - --watch-all-namespaces=true + - --log-level=info + - --log-encoding=json + - --enable-leader-election + - --storage-path=/data + - --storage-adv-addr=source-controller.$(RUNTIME_NAMESPACE).svc.cluster.local. + env: + - name: RUNTIME_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + - name: TUF_ROOT + value: /tmp/.sigstore + - name: GOMEMLIMIT + valueFrom: + resourceFieldRef: + containerName: manager + resource: limits.memory + image: cr.yandex/crp3ccidau046kdj8g9q/fluxcd/source-controller:v1.8.2 + imagePullPolicy: IfNotPresent + livenessProbe: + httpGet: + path: /healthz + port: healthz + name: manager + ports: + - containerPort: 9090 + name: http + protocol: TCP + - containerPort: 8080 + name: http-prom + protocol: TCP + - containerPort: 9440 + name: healthz + protocol: TCP + readinessProbe: + httpGet: + path: / + port: http + resources: + limits: + cpu: 1000m + memory: 1Gi + requests: + cpu: 50m + memory: 64Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + runAsNonRoot: true + seccompProfile: + type: RuntimeDefault + volumeMounts: + - mountPath: /data + name: data + - mountPath: /tmp + name: tmp + imagePullSecrets: + - name: regcred + nodeSelector: + kubernetes.io/os: linux + priorityClassName: system-cluster-critical + securityContext: + fsGroup: 1337 + serviceAccountName: source-controller + terminationGracePeriodSeconds: 10 + volumes: + - emptyDir: {} + name: data + - emptyDir: {} + name: tmp +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.19.0 + labels: + app.kubernetes.io/component: kustomize-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: kustomizations.kustomize.toolkit.fluxcd.io +spec: + group: kustomize.toolkit.fluxcd.io + names: + kind: Kustomization + listKind: KustomizationList + plural: kustomizations + shortNames: + - ks + singular: kustomization + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + - jsonPath: .status.conditions[?(@.type=="Ready")].status + name: Ready + type: string + - jsonPath: .status.conditions[?(@.type=="Ready")].message + name: Status + type: string + name: v1 + schema: + openAPIV3Schema: + description: Kustomization is the Schema for the kustomizations API. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: |- + KustomizationSpec defines the configuration to calculate the desired state + from a Source using Kustomize. + properties: + commonMetadata: + description: |- + CommonMetadata specifies the common labels and annotations that are + applied to all resources. Any existing label or annotation will be + overridden if its key matches a common one. + properties: + annotations: + additionalProperties: + type: string + description: Annotations to be added to the object's metadata. + type: object + labels: + additionalProperties: + type: string + description: Labels to be added to the object's metadata. + type: object + type: object + components: + description: Components specifies relative paths to kustomize Components. + items: + type: string + type: array + decryption: + description: Decrypt Kubernetes secrets before applying them on the + cluster. + properties: + provider: + description: Provider is the name of the decryption engine. + enum: + - sops + type: string + secretRef: + description: |- + The secret name containing the private OpenPGP keys used for decryption. + A static credential for a cloud provider defined inside the Secret + takes priority to secret-less authentication with the ServiceAccountName + field. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + serviceAccountName: + description: |- + ServiceAccountName is the name of the service account used to + authenticate with KMS services from cloud providers. If a + static credential for a given cloud provider is defined + inside the Secret referenced by SecretRef, that static + credential takes priority. + type: string + required: + - provider + type: object + deletionPolicy: + description: |- + DeletionPolicy can be used to control garbage collection when this + Kustomization is deleted. Valid values are ('MirrorPrune', 'Delete', + 'WaitForTermination', 'Orphan'). 'MirrorPrune' mirrors the Prune field + (orphan if false, delete if true). Defaults to 'MirrorPrune'. + enum: + - MirrorPrune + - Delete + - WaitForTermination + - Orphan + type: string + dependsOn: + description: |- + DependsOn may contain a DependencyReference slice + with references to Kustomization resources that must be ready before this + Kustomization can be reconciled. + items: + description: DependencyReference defines a Kustomization dependency + on another Kustomization resource. + properties: + name: + description: Name of the referent. + type: string + namespace: + description: |- + Namespace of the referent, defaults to the namespace of the Kustomization + resource object that contains the reference. + type: string + readyExpr: + description: |- + ReadyExpr is a CEL expression that can be used to assess the readiness + of a dependency. When specified, the built-in readiness check + is replaced by the logic defined in the CEL expression. + To make the CEL expression additive to the built-in readiness check, + the feature gate `AdditiveCELDependencyCheck` must be set to `true`. + type: string + required: + - name + type: object + type: array + force: + default: false + description: |- + Force instructs the controller to recreate resources + when patching fails due to an immutable field change. + type: boolean + healthCheckExprs: + description: |- + HealthCheckExprs is a list of healthcheck expressions for evaluating the + health of custom resources using Common Expression Language (CEL). + The expressions are evaluated only when Wait or HealthChecks are specified. + items: + description: CustomHealthCheck defines the health check for custom + resources. + properties: + apiVersion: + description: APIVersion of the custom resource under evaluation. + type: string + current: + description: |- + Current is the CEL expression that determines if the status + of the custom resource has reached the desired state. + type: string + failed: + description: |- + Failed is the CEL expression that determines if the status + of the custom resource has failed to reach the desired state. + type: string + inProgress: + description: |- + InProgress is the CEL expression that determines if the status + of the custom resource has not yet reached the desired state. + type: string + kind: + description: Kind of the custom resource under evaluation. + type: string + required: + - apiVersion + - current + - kind + type: object + type: array + healthChecks: + description: A list of resources to be included in the health assessment. + items: + description: |- + NamespacedObjectKindReference contains enough information to locate the typed referenced Kubernetes resource object + in any namespace. + properties: + apiVersion: + description: API version of the referent, if not specified the + Kubernetes preferred version will be used. + type: string + kind: + description: Kind of the referent. + type: string + name: + description: Name of the referent. + type: string + namespace: + description: Namespace of the referent, when not specified it + acts as LocalObjectReference. + type: string + required: + - kind + - name + type: object + type: array + ignoreMissingComponents: + description: |- + IgnoreMissingComponents instructs the controller to ignore Components paths + not found in source by removing them from the generated kustomization.yaml + before running kustomize build. + type: boolean + images: + description: |- + Images is a list of (image name, new name, new tag or digest) + for changing image names, tags or digests. This can also be achieved with a + patch, but this operator is simpler to specify. + items: + description: Image contains an image name, a new name, a new tag + or digest, which will replace the original name and tag. + properties: + digest: + description: |- + Digest is the value used to replace the original image tag. + If digest is present NewTag value is ignored. + type: string + name: + description: Name is a tag-less image name. + type: string + newName: + description: NewName is the value used to replace the original + name. + type: string + newTag: + description: NewTag is the value used to replace the original + tag. + type: string + required: + - name + type: object + type: array + interval: + description: |- + The interval at which to reconcile the Kustomization. + This interval is approximate and may be subject to jitter to ensure + efficient use of resources. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + kubeConfig: + description: |- + The KubeConfig for reconciling the Kustomization on a remote cluster. + When used in combination with KustomizationSpec.ServiceAccountName, + forces the controller to act on behalf of that Service Account at the + target cluster. + If the --default-service-account flag is set, its value will be used as + a controller level fallback for when KustomizationSpec.ServiceAccountName + is empty. + properties: + configMapRef: + description: |- + ConfigMapRef holds an optional name of a ConfigMap that contains + the following keys: + + - `provider`: the provider to use. One of `aws`, `azure`, `gcp`, or + `generic`. Required. + - `cluster`: the fully qualified resource name of the Kubernetes + cluster in the cloud provider API. Not used by the `generic` + provider. Required when one of `address` or `ca.crt` is not set. + - `address`: the address of the Kubernetes API server. Required + for `generic`. For the other providers, if not specified, the + first address in the cluster resource will be used, and if + specified, it must match one of the addresses in the cluster + resource. + If audiences is not set, will be used as the audience for the + `generic` provider. + - `ca.crt`: the optional PEM-encoded CA certificate for the + Kubernetes API server. If not set, the controller will use the + CA certificate from the cluster resource. + - `audiences`: the optional audiences as a list of + line-break-separated strings for the Kubernetes ServiceAccount + token. Defaults to the `address` for the `generic` provider, or + to specific values for the other providers depending on the + provider. + - `serviceAccountName`: the optional name of the Kubernetes + ServiceAccount in the same namespace that should be used + for authentication. If not specified, the controller + ServiceAccount will be used. + + Mutually exclusive with SecretRef. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + secretRef: + description: |- + SecretRef holds an optional name of a secret that contains a key with + the kubeconfig file as the value. If no key is set, the key will default + to 'value'. Mutually exclusive with ConfigMapRef. + It is recommended that the kubeconfig is self-contained, and the secret + is regularly updated if credentials such as a cloud-access-token expire. + Cloud specific `cmd-path` auth helpers will not function without adding + binaries and credentials to the Pod that is responsible for reconciling + Kubernetes resources. Supported only for the generic provider. + properties: + key: + description: Key in the Secret, when not specified an implementation-specific + default key is used. + type: string + name: + description: Name of the Secret. + type: string + required: + - name + type: object + type: object + x-kubernetes-validations: + - message: exactly one of spec.kubeConfig.configMapRef or spec.kubeConfig.secretRef + must be specified + rule: has(self.configMapRef) || has(self.secretRef) + - message: exactly one of spec.kubeConfig.configMapRef or spec.kubeConfig.secretRef + must be specified + rule: '!has(self.configMapRef) || !has(self.secretRef)' + namePrefix: + description: NamePrefix will prefix the names of all managed resources. + maxLength: 200 + minLength: 1 + type: string + nameSuffix: + description: NameSuffix will suffix the names of all managed resources. + maxLength: 200 + minLength: 1 + type: string + patches: + description: |- + Strategic merge and JSON patches, defined as inline YAML objects, + capable of targeting objects based on kind, label and annotation selectors. + items: + description: |- + Patch contains an inline StrategicMerge or JSON6902 patch, and the target the patch should + be applied to. + properties: + patch: + description: |- + Patch contains an inline StrategicMerge patch or an inline JSON6902 patch with + an array of operation objects. + type: string + target: + description: Target points to the resources that the patch document + should be applied to. + properties: + annotationSelector: + description: |- + AnnotationSelector is a string that follows the label selection expression + https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api + It matches with the resource annotations. + type: string + group: + description: |- + Group is the API group to select resources from. + Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources. + https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md + type: string + kind: + description: |- + Kind of the API Group to select resources from. + Together with Group and Version it is capable of unambiguously + identifying and/or selecting resources. + https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md + type: string + labelSelector: + description: |- + LabelSelector is a string that follows the label selection expression + https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api + It matches with the resource labels. + type: string + name: + description: Name to match resources with. + type: string + namespace: + description: Namespace to select resources from. + type: string + version: + description: |- + Version of the API Group to select resources from. + Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources. + https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md + type: string + type: object + required: + - patch + type: object + type: array + path: + description: |- + Path to the directory containing the kustomization.yaml file, or the + set of plain YAMLs a kustomization.yaml should be generated for. + Defaults to 'None', which translates to the root path of the SourceRef. + type: string + postBuild: + description: |- + PostBuild describes which actions to perform on the YAML manifest + generated by building the kustomize overlay. + properties: + substitute: + additionalProperties: + type: string + description: |- + Substitute holds a map of key/value pairs. + The variables defined in your YAML manifests that match any of the keys + defined in the map will be substituted with the set value. + Includes support for bash string replacement functions + e.g. ${var:=default}, ${var:position} and ${var/substring/replacement}. + type: object + substituteFrom: + description: |- + SubstituteFrom holds references to ConfigMaps and Secrets containing + the variables and their values to be substituted in the YAML manifests. + The ConfigMap and the Secret data keys represent the var names, and they + must match the vars declared in the manifests for the substitution to + happen. + items: + description: |- + SubstituteReference contains a reference to a resource containing + the variables name and value. + properties: + kind: + description: Kind of the values referent, valid values are + ('Secret', 'ConfigMap'). + enum: + - Secret + - ConfigMap + type: string + name: + description: |- + Name of the values referent. Should reside in the same namespace as the + referring resource. + maxLength: 253 + minLength: 1 + type: string + optional: + default: false + description: |- + Optional indicates whether the referenced resource must exist, or whether to + tolerate its absence. If true and the referenced resource is absent, proceed + as if the resource was present but empty, without any variables defined. + type: boolean + required: + - kind + - name + type: object + type: array + type: object + prune: + description: Prune enables garbage collection. + type: boolean + retryInterval: + description: |- + The interval at which to retry a previously failed reconciliation. + When not specified, the controller uses the KustomizationSpec.Interval + value to retry failures. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + serviceAccountName: + description: |- + The name of the Kubernetes service account to impersonate + when reconciling this Kustomization. + type: string + sourceRef: + description: Reference of the source where the kustomization file + is. + properties: + apiVersion: + description: API version of the referent. + type: string + kind: + description: Kind of the referent. + enum: + - OCIRepository + - GitRepository + - Bucket + - ExternalArtifact + type: string + name: + description: Name of the referent. + type: string + namespace: + description: |- + Namespace of the referent, defaults to the namespace of the Kubernetes + resource object that contains the reference. + type: string + required: + - kind + - name + type: object + suspend: + description: |- + This flag tells the controller to suspend subsequent kustomize executions, + it does not apply to already started executions. Defaults to false. + type: boolean + targetNamespace: + description: |- + TargetNamespace sets or overrides the namespace in the + kustomization.yaml file. + maxLength: 63 + minLength: 1 + type: string + timeout: + description: |- + Timeout for validation, apply and health checking operations. + Defaults to 'Interval' duration. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + wait: + description: |- + Wait instructs the controller to check the health of all the reconciled + resources. When enabled, the HealthChecks are ignored. Defaults to false. + type: boolean + required: + - interval + - prune + - sourceRef + type: object + status: + default: + observedGeneration: -1 + description: KustomizationStatus defines the observed state of a kustomization. + properties: + conditions: + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + history: + description: |- + History contains a set of snapshots of the last reconciliation attempts + tracking the revision, the state and the duration of each attempt. + items: + description: |- + Snapshot represents a point-in-time record of a group of resources reconciliation, + including timing information, status, and a unique digest identifier. + properties: + digest: + description: Digest is the checksum in the format `:` + of the resources in this snapshot. + type: string + firstReconciled: + description: FirstReconciled is the time when this revision + was first reconciled to the cluster. + format: date-time + type: string + lastReconciled: + description: LastReconciled is the time when this revision was + last reconciled to the cluster. + format: date-time + type: string + lastReconciledDuration: + description: LastReconciledDuration is time it took to reconcile + the resources in this revision. + type: string + lastReconciledStatus: + description: LastReconciledStatus is the status of the last + reconciliation. + type: string + metadata: + additionalProperties: + type: string + description: Metadata contains additional information about + the snapshot. + type: object + totalReconciliations: + description: TotalReconciliations is the total number of reconciliations + that have occurred for this snapshot. + format: int64 + type: integer + required: + - digest + - firstReconciled + - lastReconciled + - lastReconciledDuration + - lastReconciledStatus + - totalReconciliations + type: object + type: array + inventory: + description: |- + Inventory contains the list of Kubernetes resource object references that + have been successfully applied. + properties: + entries: + description: Entries of Kubernetes resource object references. + items: + description: ResourceRef contains the information necessary + to locate a resource within a cluster. + properties: + id: + description: |- + ID is the string representation of the Kubernetes resource object's metadata, + in the format '___'. + type: string + v: + description: Version is the API version of the Kubernetes + resource object's kind. + type: string + required: + - id + - v + type: object + type: array + required: + - entries + type: object + lastAppliedOriginRevision: + description: |- + The last successfully applied origin revision. + Equals the origin revision of the applied Artifact from the referenced Source. + Usually present on the Metadata of the applied Artifact and depends on the + Source type, e.g. for OCI it's the value associated with the key + "org.opencontainers.image.revision". + type: string + lastAppliedRevision: + description: |- + The last successfully applied revision. + Equals the Revision of the applied Artifact from the referenced Source. + type: string + lastAttemptedRevision: + description: LastAttemptedRevision is the revision of the last reconciliation + attempt. + type: string + lastHandledReconcileAt: + description: |- + LastHandledReconcileAt holds the value of the most recent + reconcile request value, so a change of the annotation value + can be detected. + type: string + observedGeneration: + description: ObservedGeneration is the last reconciled generation. + format: int64 + type: integer + type: object + type: object + served: true + storage: true + subresources: + status: {} +--- +apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + app.kubernetes.io/component: kustomize-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: kustomize-controller + namespace: flux-system +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app.kubernetes.io/component: kustomize-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + control-plane: controller + name: kustomize-controller + namespace: flux-system +spec: + replicas: 1 + selector: + matchLabels: + app: kustomize-controller + template: + metadata: + annotations: + prometheus.io/port: "8080" + prometheus.io/scrape: "true" + labels: + app: kustomize-controller + app.kubernetes.io/component: kustomize-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + spec: + containers: + - args: + - --events-addr=http://notification-controller.$(RUNTIME_NAMESPACE).svc.cluster.local./ + - --watch-all-namespaces=true + - --log-level=info + - --log-encoding=json + - --enable-leader-election + env: + - name: RUNTIME_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + - name: GOMEMLIMIT + valueFrom: + resourceFieldRef: + containerName: manager + resource: limits.memory + image: cr.yandex/crp3ccidau046kdj8g9q/fluxcd/kustomize-controller:v1.8.3 + imagePullPolicy: IfNotPresent + livenessProbe: + httpGet: + path: /healthz + port: healthz + name: manager + ports: + - containerPort: 8080 + name: http-prom + protocol: TCP + - containerPort: 9440 + name: healthz + protocol: TCP + readinessProbe: + httpGet: + path: /readyz + port: healthz + resources: + limits: + cpu: 1000m + memory: 1Gi + requests: + cpu: 100m + memory: 64Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + runAsNonRoot: true + seccompProfile: + type: RuntimeDefault + volumeMounts: + - mountPath: /tmp + name: temp + imagePullSecrets: + - name: regcred + nodeSelector: + kubernetes.io/os: linux + priorityClassName: system-cluster-critical + securityContext: + fsGroup: 1337 + serviceAccountName: kustomize-controller + terminationGracePeriodSeconds: 60 + volumes: + - emptyDir: {} + name: temp +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.19.0 + labels: + app.kubernetes.io/component: helm-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: helmreleases.helm.toolkit.fluxcd.io +spec: + group: helm.toolkit.fluxcd.io + names: + kind: HelmRelease + listKind: HelmReleaseList + plural: helmreleases + shortNames: + - hr + singular: helmrelease + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + - jsonPath: .status.conditions[?(@.type=="Ready")].status + name: Ready + type: string + - jsonPath: .status.conditions[?(@.type=="Ready")].message + name: Status + type: string + name: v2 + schema: + openAPIV3Schema: + description: HelmRelease is the Schema for the helmreleases API + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: HelmReleaseSpec defines the desired state of a Helm release. + properties: + chart: + description: |- + Chart defines the template of the v1.HelmChart that should be created + for this HelmRelease. + properties: + metadata: + description: ObjectMeta holds the template for metadata like labels + and annotations. + properties: + annotations: + additionalProperties: + type: string + description: |- + Annotations is an unstructured key value map stored with a resource that may be + set by external tools to store and retrieve arbitrary metadata. They are not + queryable and should be preserved when modifying objects. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ + type: object + labels: + additionalProperties: + type: string + description: |- + Map of string keys and values that can be used to organize and categorize + (scope and select) objects. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + type: object + type: object + spec: + description: Spec holds the template for the v1.HelmChartSpec + for this HelmRelease. + properties: + chart: + description: The name or path the Helm chart is available + at in the SourceRef. + maxLength: 2048 + minLength: 1 + type: string + ignoreMissingValuesFiles: + description: IgnoreMissingValuesFiles controls whether to + silently ignore missing values files rather than failing. + type: boolean + interval: + description: |- + Interval at which to check the v1.Source for updates. Defaults to + 'HelmReleaseSpec.Interval'. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + reconcileStrategy: + default: ChartVersion + description: |- + Determines what enables the creation of a new artifact. Valid values are + ('ChartVersion', 'Revision'). + See the documentation of the values for an explanation on their behavior. + Defaults to ChartVersion when omitted. + enum: + - ChartVersion + - Revision + type: string + sourceRef: + description: The name and namespace of the v1.Source the chart + is available at. + properties: + apiVersion: + description: APIVersion of the referent. + type: string + kind: + description: Kind of the referent. + enum: + - HelmRepository + - GitRepository + - Bucket + type: string + name: + description: Name of the referent. + maxLength: 253 + minLength: 1 + type: string + namespace: + description: Namespace of the referent. + maxLength: 63 + minLength: 1 + type: string + required: + - kind + - name + type: object + valuesFiles: + description: |- + Alternative list of values files to use as the chart values (values.yaml + is not included by default), expected to be a relative path in the SourceRef. + Values files are merged in the order of this list with the last file overriding + the first. Ignored when omitted. + items: + type: string + type: array + verify: + description: |- + Verify contains the secret name containing the trusted public keys + used to verify the signature and specifies which provider to use to check + whether OCI image is authentic. + This field is only supported for OCI sources. + Chart dependencies, which are not bundled in the umbrella chart artifact, + are not verified. + properties: + provider: + default: cosign + description: Provider specifies the technology used to + sign the OCI Helm chart. + enum: + - cosign + - notation + type: string + secretRef: + description: |- + SecretRef specifies the Kubernetes Secret containing the + trusted public keys. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + required: + - provider + type: object + version: + default: '*' + description: |- + Version semver expression, ignored for charts from v1.GitRepository and + v1beta2.Bucket sources. Defaults to latest when omitted. + type: string + required: + - chart + - sourceRef + type: object + required: + - spec + type: object + chartRef: + description: |- + ChartRef holds a reference to a source controller resource containing the + Helm chart artifact. + properties: + apiVersion: + description: APIVersion of the referent. + type: string + kind: + description: Kind of the referent. + enum: + - OCIRepository + - HelmChart + - ExternalArtifact + type: string + name: + description: Name of the referent. + maxLength: 253 + minLength: 1 + type: string + namespace: + description: |- + Namespace of the referent, defaults to the namespace of the Kubernetes + resource object that contains the reference. + maxLength: 63 + minLength: 1 + type: string + required: + - kind + - name + type: object + commonMetadata: + description: |- + CommonMetadata specifies the common labels and annotations that are + applied to all resources. Any existing label or annotation will be + overridden if its key matches a common one. + properties: + annotations: + additionalProperties: + type: string + description: Annotations to be added to the object's metadata. + type: object + labels: + additionalProperties: + type: string + description: Labels to be added to the object's metadata. + type: object + type: object + dependsOn: + description: |- + DependsOn may contain a DependencyReference slice with + references to HelmRelease resources that must be ready before this HelmRelease + can be reconciled. + items: + description: DependencyReference defines a HelmRelease dependency + on another HelmRelease resource. + properties: + name: + description: Name of the referent. + type: string + namespace: + description: |- + Namespace of the referent, defaults to the namespace of the HelmRelease + resource object that contains the reference. + type: string + readyExpr: + description: |- + ReadyExpr is a CEL expression that can be used to assess the readiness + of a dependency. When specified, the built-in readiness check + is replaced by the logic defined in the CEL expression. + To make the CEL expression additive to the built-in readiness check, + the feature gate `AdditiveCELDependencyCheck` must be set to `true`. + type: string + required: + - name + type: object + type: array + driftDetection: + description: |- + DriftDetection holds the configuration for detecting and handling + differences between the manifest in the Helm storage and the resources + currently existing in the cluster. + properties: + ignore: + description: |- + Ignore contains a list of rules for specifying which changes to ignore + during diffing. + items: + description: |- + IgnoreRule defines a rule to selectively disregard specific changes during + the drift detection process. + properties: + paths: + description: |- + Paths is a list of JSON Pointer (RFC 6901) paths to be excluded from + consideration in a Kubernetes object. + items: + type: string + type: array + target: + description: |- + Target is a selector for specifying Kubernetes objects to which this + rule applies. + If Target is not set, the Paths will be ignored for all Kubernetes + objects within the manifest of the Helm release. + properties: + annotationSelector: + description: |- + AnnotationSelector is a string that follows the label selection expression + https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api + It matches with the resource annotations. + type: string + group: + description: |- + Group is the API group to select resources from. + Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources. + https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md + type: string + kind: + description: |- + Kind of the API Group to select resources from. + Together with Group and Version it is capable of unambiguously + identifying and/or selecting resources. + https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md + type: string + labelSelector: + description: |- + LabelSelector is a string that follows the label selection expression + https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api + It matches with the resource labels. + type: string + name: + description: Name to match resources with. + type: string + namespace: + description: Namespace to select resources from. + type: string + version: + description: |- + Version of the API Group to select resources from. + Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources. + https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md + type: string + type: object + required: + - paths + type: object + type: array + mode: + description: |- + Mode defines how differences should be handled between the Helm manifest + and the manifest currently applied to the cluster. + If not explicitly set, it defaults to DiffModeDisabled. + enum: + - enabled + - warn + - disabled + type: string + type: object + healthCheckExprs: + description: |- + HealthCheckExprs is a list of healthcheck expressions for evaluating the + health of custom resources using Common Expression Language (CEL). + The expressions are evaluated only when the specific Helm action + taking place has wait enabled, i.e. DisableWait is false, and the + 'poller' WaitStrategy is used. + items: + description: CustomHealthCheck defines the health check for custom + resources. + properties: + apiVersion: + description: APIVersion of the custom resource under evaluation. + type: string + current: + description: |- + Current is the CEL expression that determines if the status + of the custom resource has reached the desired state. + type: string + failed: + description: |- + Failed is the CEL expression that determines if the status + of the custom resource has failed to reach the desired state. + type: string + inProgress: + description: |- + InProgress is the CEL expression that determines if the status + of the custom resource has not yet reached the desired state. + type: string + kind: + description: Kind of the custom resource under evaluation. + type: string + required: + - apiVersion + - current + - kind + type: object + type: array + install: + description: Install holds the configuration for Helm install actions + for this HelmRelease. + properties: + crds: + description: |- + CRDs upgrade CRDs from the Helm Chart's crds directory according + to the CRD upgrade policy provided here. Valid values are `Skip`, + `Create` or `CreateReplace`. Default is `Create` and if omitted + CRDs are installed but not updated. + + Skip: do neither install nor replace (update) any CRDs. + + Create: new CRDs are created, existing CRDs are neither updated nor deleted. + + CreateReplace: new CRDs are created, existing CRDs are updated (replaced) + but not deleted. + + By default, CRDs are applied (installed) during Helm install action. + With this option users can opt in to CRD replace existing CRDs on Helm + install actions, which is not (yet) natively supported by Helm. + https://helm.sh/docs/chart_best_practices/custom_resource_definitions. + enum: + - Skip + - Create + - CreateReplace + type: string + createNamespace: + description: |- + CreateNamespace tells the Helm install action to create the + HelmReleaseSpec.TargetNamespace if it does not exist yet. + On uninstall, the namespace will not be garbage collected. + type: boolean + disableHooks: + description: DisableHooks prevents hooks from running during the + Helm install action. + type: boolean + disableOpenAPIValidation: + description: |- + DisableOpenAPIValidation prevents the Helm install action from validating + rendered templates against the Kubernetes OpenAPI Schema. + type: boolean + disableSchemaValidation: + description: |- + DisableSchemaValidation prevents the Helm install action from validating + the values against the JSON Schema. + type: boolean + disableTakeOwnership: + description: |- + DisableTakeOwnership disables taking ownership of existing resources + during the Helm install action. Defaults to false. + type: boolean + disableWait: + description: |- + DisableWait disables the waiting for resources to be ready after a Helm + install has been performed. + type: boolean + disableWaitForJobs: + description: |- + DisableWaitForJobs disables waiting for jobs to complete after a Helm + install has been performed. + type: boolean + remediation: + description: |- + Remediation holds the remediation configuration for when the Helm install + action for the HelmRelease fails. The default is to not perform any action. + properties: + ignoreTestFailures: + description: |- + IgnoreTestFailures tells the controller to skip remediation when the Helm + tests are run after an install action but fail. Defaults to + 'Test.IgnoreFailures'. + type: boolean + remediateLastFailure: + description: |- + RemediateLastFailure tells the controller to remediate the last failure, when + no retries remain. Defaults to 'false'. + type: boolean + retries: + description: |- + Retries is the number of retries that should be attempted on failures before + bailing. Remediation, using an uninstall, is performed between each attempt. + Defaults to '0', a negative integer equals to unlimited retries. + type: integer + type: object + replace: + description: |- + Replace tells the Helm install action to re-use the 'ReleaseName', but only + if that name is a deleted release which remains in the history. + type: boolean + serverSideApply: + description: |- + ServerSideApply enables server-side apply for resources during install. + Defaults to true (or false when UseHelm3Defaults feature gate is enabled). + type: boolean + skipCRDs: + description: |- + SkipCRDs tells the Helm install action to not install any CRDs. By default, + CRDs are installed if not already present. + + Deprecated use CRD policy (`crds`) attribute with value `Skip` instead. + type: boolean + strategy: + description: |- + Strategy defines the install strategy to use for this HelmRelease. + Defaults to 'RemediateOnFailure', or 'RetryOnFailure' when the + DefaultToRetryOnFailure feature gate is enabled. + properties: + name: + description: Name of the install strategy. + enum: + - RemediateOnFailure + - RetryOnFailure + type: string + retryInterval: + description: |- + RetryInterval is the interval at which to retry a failed install. + Can be used only when Name is set to RetryOnFailure. + Defaults to '5m'. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + required: + - name + type: object + x-kubernetes-validations: + - message: .retryInterval cannot be set when .name is 'RemediateOnFailure' + rule: '!has(self.retryInterval) || self.name != ''RemediateOnFailure''' + timeout: + description: |- + Timeout is the time to wait for any individual Kubernetes operation (like + Jobs for hooks) during the performance of a Helm install action. Defaults to + 'HelmReleaseSpec.Timeout'. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + type: object + interval: + description: Interval at which to reconcile the Helm release. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + kubeConfig: + description: |- + KubeConfig for reconciling the HelmRelease on a remote cluster. + When used in combination with HelmReleaseSpec.ServiceAccountName, + forces the controller to act on behalf of that Service Account at the + target cluster. + If the --default-service-account flag is set, its value will be used as + a controller level fallback for when HelmReleaseSpec.ServiceAccountName + is empty. + properties: + configMapRef: + description: |- + ConfigMapRef holds an optional name of a ConfigMap that contains + the following keys: + + - `provider`: the provider to use. One of `aws`, `azure`, `gcp`, or + `generic`. Required. + - `cluster`: the fully qualified resource name of the Kubernetes + cluster in the cloud provider API. Not used by the `generic` + provider. Required when one of `address` or `ca.crt` is not set. + - `address`: the address of the Kubernetes API server. Required + for `generic`. For the other providers, if not specified, the + first address in the cluster resource will be used, and if + specified, it must match one of the addresses in the cluster + resource. + If audiences is not set, will be used as the audience for the + `generic` provider. + - `ca.crt`: the optional PEM-encoded CA certificate for the + Kubernetes API server. If not set, the controller will use the + CA certificate from the cluster resource. + - `audiences`: the optional audiences as a list of + line-break-separated strings for the Kubernetes ServiceAccount + token. Defaults to the `address` for the `generic` provider, or + to specific values for the other providers depending on the + provider. + - `serviceAccountName`: the optional name of the Kubernetes + ServiceAccount in the same namespace that should be used + for authentication. If not specified, the controller + ServiceAccount will be used. + + Mutually exclusive with SecretRef. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + secretRef: + description: |- + SecretRef holds an optional name of a secret that contains a key with + the kubeconfig file as the value. If no key is set, the key will default + to 'value'. Mutually exclusive with ConfigMapRef. + It is recommended that the kubeconfig is self-contained, and the secret + is regularly updated if credentials such as a cloud-access-token expire. + Cloud specific `cmd-path` auth helpers will not function without adding + binaries and credentials to the Pod that is responsible for reconciling + Kubernetes resources. Supported only for the generic provider. + properties: + key: + description: Key in the Secret, when not specified an implementation-specific + default key is used. + type: string + name: + description: Name of the Secret. + type: string + required: + - name + type: object + type: object + x-kubernetes-validations: + - message: exactly one of spec.kubeConfig.configMapRef or spec.kubeConfig.secretRef + must be specified + rule: has(self.configMapRef) || has(self.secretRef) + - message: exactly one of spec.kubeConfig.configMapRef or spec.kubeConfig.secretRef + must be specified + rule: '!has(self.configMapRef) || !has(self.secretRef)' + maxHistory: + description: |- + MaxHistory is the number of revisions saved by Helm for this HelmRelease. + Use '0' for an unlimited number of revisions; defaults to '5'. + type: integer + persistentClient: + description: |- + PersistentClient tells the controller to use a persistent Kubernetes + client for this release. When enabled, the client will be reused for the + duration of the reconciliation, instead of being created and destroyed + for each (step of a) Helm action. + + This can improve performance, but may cause issues with some Helm charts + that for example do create Custom Resource Definitions during installation + outside Helm's CRD lifecycle hooks, which are then not observed to be + available by e.g. post-install hooks. + + If not set, it defaults to true. + type: boolean + postRenderers: + description: |- + PostRenderers holds an array of Helm PostRenderers, which will be applied in order + of their definition. + items: + description: PostRenderer contains a Helm PostRenderer specification. + properties: + kustomize: + description: Kustomization to apply as PostRenderer. + properties: + images: + description: |- + Images is a list of (image name, new name, new tag or digest) + for changing image names, tags or digests. This can also be achieved with a + patch, but this operator is simpler to specify. + items: + description: Image contains an image name, a new name, + a new tag or digest, which will replace the original + name and tag. + properties: + digest: + description: |- + Digest is the value used to replace the original image tag. + If digest is present NewTag value is ignored. + type: string + name: + description: Name is a tag-less image name. + type: string + newName: + description: NewName is the value used to replace + the original name. + type: string + newTag: + description: NewTag is the value used to replace the + original tag. + type: string + required: + - name + type: object + type: array + patches: + description: |- + Strategic merge and JSON patches, defined as inline YAML objects, + capable of targeting objects based on kind, label and annotation selectors. + items: + description: |- + Patch contains an inline StrategicMerge or JSON6902 patch, and the target the patch should + be applied to. + properties: + patch: + description: |- + Patch contains an inline StrategicMerge patch or an inline JSON6902 patch with + an array of operation objects. + type: string + target: + description: Target points to the resources that the + patch document should be applied to. + properties: + annotationSelector: + description: |- + AnnotationSelector is a string that follows the label selection expression + https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api + It matches with the resource annotations. + type: string + group: + description: |- + Group is the API group to select resources from. + Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources. + https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md + type: string + kind: + description: |- + Kind of the API Group to select resources from. + Together with Group and Version it is capable of unambiguously + identifying and/or selecting resources. + https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md + type: string + labelSelector: + description: |- + LabelSelector is a string that follows the label selection expression + https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api + It matches with the resource labels. + type: string + name: + description: Name to match resources with. + type: string + namespace: + description: Namespace to select resources from. + type: string + version: + description: |- + Version of the API Group to select resources from. + Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources. + https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md + type: string + type: object + required: + - patch + type: object + type: array + type: object + type: object + type: array + releaseName: + description: |- + ReleaseName used for the Helm release. Defaults to a composition of + '[TargetNamespace-]Name'. + maxLength: 53 + minLength: 1 + type: string + rollback: + description: Rollback holds the configuration for Helm rollback actions + for this HelmRelease. + properties: + cleanupOnFail: + description: |- + CleanupOnFail allows deletion of new resources created during the Helm + rollback action when it fails. + type: boolean + disableHooks: + description: DisableHooks prevents hooks from running during the + Helm rollback action. + type: boolean + disableWait: + description: |- + DisableWait disables the waiting for resources to be ready after a Helm + rollback has been performed. + type: boolean + disableWaitForJobs: + description: |- + DisableWaitForJobs disables waiting for jobs to complete after a Helm + rollback has been performed. + type: boolean + force: + description: Force forces resource updates through a replacement + strategy. + type: boolean + recreate: + description: |- + Recreate performs pod restarts for any managed workloads. + + Deprecated: This behavior was deprecated in Helm 3: + - Deprecation: https://github.com/helm/helm/pull/6463 + - Removal: https://github.com/helm/helm/pull/31023 + After helm-controller was upgraded to the Helm 4 SDK, + this field is no longer functional and will print a + warning if set to true. It will also be removed in a + future release. + type: boolean + serverSideApply: + description: |- + ServerSideApply enables server-side apply for resources during rollback. + Can be "enabled", "disabled", or "auto". + When "auto", server-side apply usage will be based on the release's previous usage. + Defaults to "auto". + enum: + - enabled + - disabled + - auto + type: string + timeout: + description: |- + Timeout is the time to wait for any individual Kubernetes operation (like + Jobs for hooks) during the performance of a Helm rollback action. Defaults to + 'HelmReleaseSpec.Timeout'. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + type: object + serviceAccountName: + description: |- + The name of the Kubernetes service account to impersonate + when reconciling this HelmRelease. + maxLength: 253 + minLength: 1 + type: string + storageNamespace: + description: |- + StorageNamespace used for the Helm storage. + Defaults to the namespace of the HelmRelease. + maxLength: 63 + minLength: 1 + type: string + suspend: + description: |- + Suspend tells the controller to suspend reconciliation for this HelmRelease, + it does not apply to already started reconciliations. Defaults to false. + type: boolean + targetNamespace: + description: |- + TargetNamespace to target when performing operations for the HelmRelease. + Defaults to the namespace of the HelmRelease. + maxLength: 63 + minLength: 1 + type: string + test: + description: Test holds the configuration for Helm test actions for + this HelmRelease. + properties: + enable: + description: |- + Enable enables Helm test actions for this HelmRelease after an Helm install + or upgrade action has been performed. + type: boolean + filters: + description: Filters is a list of tests to run or exclude from + running. + items: + description: Filter holds the configuration for individual Helm + test filters. + properties: + exclude: + description: Exclude specifies whether the named test should + be excluded. + type: boolean + name: + description: Name is the name of the test. + maxLength: 253 + minLength: 1 + type: string + required: + - name + type: object + type: array + ignoreFailures: + description: |- + IgnoreFailures tells the controller to skip remediation when the Helm tests + are run but fail. Can be overwritten for tests run after install or upgrade + actions in 'Install.IgnoreTestFailures' and 'Upgrade.IgnoreTestFailures'. + type: boolean + timeout: + description: |- + Timeout is the time to wait for any individual Kubernetes operation during + the performance of a Helm test action. Defaults to 'HelmReleaseSpec.Timeout'. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + type: object + timeout: + description: |- + Timeout is the time to wait for any individual Kubernetes operation (like Jobs + for hooks) during the performance of a Helm action. Defaults to '5m0s'. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + uninstall: + description: Uninstall holds the configuration for Helm uninstall + actions for this HelmRelease. + properties: + deletionPropagation: + default: background + description: |- + DeletionPropagation specifies the deletion propagation policy when + a Helm uninstall is performed. + enum: + - background + - foreground + - orphan + type: string + disableHooks: + description: DisableHooks prevents hooks from running during the + Helm rollback action. + type: boolean + disableWait: + description: |- + DisableWait disables waiting for all the resources to be deleted after + a Helm uninstall is performed. + type: boolean + keepHistory: + description: |- + KeepHistory tells Helm to remove all associated resources and mark the + release as deleted, but retain the release history. + type: boolean + timeout: + description: |- + Timeout is the time to wait for any individual Kubernetes operation (like + Jobs for hooks) during the performance of a Helm uninstall action. Defaults + to 'HelmReleaseSpec.Timeout'. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + type: object + upgrade: + description: Upgrade holds the configuration for Helm upgrade actions + for this HelmRelease. + properties: + cleanupOnFail: + description: |- + CleanupOnFail allows deletion of new resources created during the Helm + upgrade action when it fails. + type: boolean + crds: + description: |- + CRDs upgrade CRDs from the Helm Chart's crds directory according + to the CRD upgrade policy provided here. Valid values are `Skip`, + `Create` or `CreateReplace`. Default is `Skip` and if omitted + CRDs are neither installed nor upgraded. + + Skip: do neither install nor replace (update) any CRDs. + + Create: new CRDs are created, existing CRDs are neither updated nor deleted. + + CreateReplace: new CRDs are created, existing CRDs are updated (replaced) + but not deleted. + + By default, CRDs are not applied during Helm upgrade action. With this + option users can opt-in to CRD upgrade, which is not (yet) natively supported by Helm. + https://helm.sh/docs/chart_best_practices/custom_resource_definitions. + enum: + - Skip + - Create + - CreateReplace + type: string + disableHooks: + description: DisableHooks prevents hooks from running during the + Helm upgrade action. + type: boolean + disableOpenAPIValidation: + description: |- + DisableOpenAPIValidation prevents the Helm upgrade action from validating + rendered templates against the Kubernetes OpenAPI Schema. + type: boolean + disableSchemaValidation: + description: |- + DisableSchemaValidation prevents the Helm upgrade action from validating + the values against the JSON Schema. + type: boolean + disableTakeOwnership: + description: |- + DisableTakeOwnership disables taking ownership of existing resources + during the Helm upgrade action. Defaults to false. + type: boolean + disableWait: + description: |- + DisableWait disables the waiting for resources to be ready after a Helm + upgrade has been performed. + type: boolean + disableWaitForJobs: + description: |- + DisableWaitForJobs disables waiting for jobs to complete after a Helm + upgrade has been performed. + type: boolean + force: + description: Force forces resource updates through a replacement + strategy. + type: boolean + preserveValues: + description: |- + PreserveValues will make Helm reuse the last release's values and merge in + overrides from 'Values'. Setting this flag makes the HelmRelease + non-declarative. + type: boolean + remediation: + description: |- + Remediation holds the remediation configuration for when the Helm upgrade + action for the HelmRelease fails. The default is to not perform any action. + properties: + ignoreTestFailures: + description: |- + IgnoreTestFailures tells the controller to skip remediation when the Helm + tests are run after an upgrade action but fail. + Defaults to 'Test.IgnoreFailures'. + type: boolean + remediateLastFailure: + description: |- + RemediateLastFailure tells the controller to remediate the last failure, when + no retries remain. Defaults to 'false' unless 'Retries' is greater than 0. + type: boolean + retries: + description: |- + Retries is the number of retries that should be attempted on failures before + bailing. Remediation, using 'Strategy', is performed between each attempt. + Defaults to '0', a negative integer equals to unlimited retries. + type: integer + strategy: + description: Strategy to use for failure remediation. Defaults + to 'rollback'. + enum: + - rollback + - uninstall + type: string + type: object + serverSideApply: + description: |- + ServerSideApply enables server-side apply for resources during upgrade. + Can be "enabled", "disabled", or "auto". + When "auto", server-side apply usage will be based on the release's previous usage. + Defaults to "auto". + enum: + - enabled + - disabled + - auto + type: string + strategy: + description: |- + Strategy defines the upgrade strategy to use for this HelmRelease. + Defaults to 'RemediateOnFailure', or 'RetryOnFailure' when the + DefaultToRetryOnFailure feature gate is enabled. + properties: + name: + description: Name of the upgrade strategy. + enum: + - RemediateOnFailure + - RetryOnFailure + type: string + retryInterval: + description: |- + RetryInterval is the interval at which to retry a failed upgrade. + Can be used only when Name is set to RetryOnFailure. + Defaults to '5m'. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + required: + - name + type: object + x-kubernetes-validations: + - message: .retryInterval can only be set when .name is 'RetryOnFailure' + rule: '!has(self.retryInterval) || self.name == ''RetryOnFailure''' + timeout: + description: |- + Timeout is the time to wait for any individual Kubernetes operation (like + Jobs for hooks) during the performance of a Helm upgrade action. Defaults to + 'HelmReleaseSpec.Timeout'. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + type: object + values: + description: Values holds the values for this Helm release. + x-kubernetes-preserve-unknown-fields: true + valuesFrom: + description: |- + ValuesFrom holds references to resources containing Helm values for this HelmRelease, + and information about how they should be merged. + items: + description: |- + ValuesReference contains a reference to a resource containing Helm values, + and optionally the key they can be found at. + properties: + kind: + description: Kind of the values referent, valid values are ('Secret', + 'ConfigMap'). + enum: + - Secret + - ConfigMap + type: string + name: + description: |- + Name of the values referent. Should reside in the same namespace as the + referring resource. + maxLength: 253 + minLength: 1 + type: string + optional: + description: |- + Optional marks this ValuesReference as optional. When set, a not found error + for the values reference is ignored, but any ValuesKey, TargetPath or + transient error will still result in a reconciliation failure. + type: boolean + targetPath: + description: |- + TargetPath is the YAML dot notation path the value should be merged at. When + set, the ValuesKey is expected to be a single flat value. Defaults to 'None', + which results in the values getting merged at the root. + maxLength: 250 + pattern: ^([a-zA-Z0-9_\-.\\\/]|\[[0-9]{1,5}\])+$ + type: string + valuesKey: + description: |- + ValuesKey is the data key where the values.yaml or a specific value can be + found at. Defaults to 'values.yaml'. + maxLength: 253 + pattern: ^[\-._a-zA-Z0-9]+$ + type: string + required: + - kind + - name + type: object + type: array + waitStrategy: + description: |- + WaitStrategy defines Helm's wait strategy for waiting for applied + resources to become ready. + properties: + name: + description: |- + Name is Helm's wait strategy for waiting for applied resources to + become ready. One of 'poller' or 'legacy'. The 'poller' strategy uses + kstatus to poll resource statuses, while the 'legacy' strategy uses + Helm v3's waiting logic. + Defaults to 'poller', or to 'legacy' when UseHelm3Defaults feature + gate is enabled. + enum: + - poller + - legacy + type: string + required: + - name + type: object + required: + - interval + type: object + x-kubernetes-validations: + - message: either chart or chartRef must be set + rule: (has(self.chart) && !has(self.chartRef)) || (!has(self.chart) + && has(self.chartRef)) + status: + default: + observedGeneration: -1 + description: HelmReleaseStatus defines the observed state of a HelmRelease. + properties: + conditions: + description: Conditions holds the conditions for the HelmRelease. + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + failures: + description: |- + Failures is the reconciliation failure count against the latest desired + state. It is reset after a successful reconciliation. + format: int64 + type: integer + helmChart: + description: |- + HelmChart is the namespaced name of the HelmChart resource created by + the controller for the HelmRelease. + type: string + history: + description: |- + History holds the history of Helm releases performed for this HelmRelease + up to the last successfully completed release. + items: + description: |- + Snapshot captures a point-in-time copy of the status information for a Helm release, + as managed by the controller. + properties: + action: + description: Action is the action that resulted in this snapshot + being created. + type: string + apiVersion: + description: |- + APIVersion is the API version of the Snapshot. + When the calculation method of the Digest field is changed, this + field will be used to distinguish between the old and new methods. + type: string + appVersion: + description: AppVersion is the chart app version of the release + object in storage. + type: string + chartName: + description: ChartName is the chart name of the release object + in storage. + type: string + chartVersion: + description: |- + ChartVersion is the chart version of the release object in + storage. + type: string + configDigest: + description: |- + ConfigDigest is the checksum of the config (better known as + "values") of the release object in storage. + It has the format of `:`. + type: string + deleted: + description: Deleted is when the release was deleted. + format: date-time + type: string + digest: + description: |- + Digest is the checksum of the release object in storage. + It has the format of `:`. + type: string + firstDeployed: + description: FirstDeployed is when the release was first deployed. + format: date-time + type: string + lastDeployed: + description: LastDeployed is when the release was last deployed. + format: date-time + type: string + name: + description: Name is the name of the release. + type: string + namespace: + description: Namespace is the namespace the release is deployed + to. + type: string + ociDigest: + description: OCIDigest is the digest of the OCI artifact associated + with the release. + type: string + status: + description: Status is the current state of the release. + type: string + testHooks: + additionalProperties: + description: |- + TestHookStatus holds the status information for a test hook as observed + to be run by the controller. + properties: + lastCompleted: + description: LastCompleted is the time the test hook last + completed. + format: date-time + type: string + lastStarted: + description: LastStarted is the time the test hook was + last started. + format: date-time + type: string + phase: + description: Phase the test hook was observed to be in. + type: string + type: object + description: |- + TestHooks is the list of test hooks for the release as observed to be + run by the controller. + type: object + version: + description: Version is the version of the release object in + storage. + type: integer + required: + - chartName + - chartVersion + - configDigest + - digest + - firstDeployed + - lastDeployed + - name + - namespace + - status + - version + type: object + type: array + installFailures: + description: |- + InstallFailures is the install failure count against the latest desired + state. It is reset after a successful reconciliation. + format: int64 + type: integer + inventory: + description: |- + Inventory contains the list of Kubernetes resource object references + that have been applied for this release. + properties: + entries: + description: Entries of Kubernetes resource object references. + items: + description: ResourceRef contains the information necessary + to locate a resource within a cluster. + properties: + id: + description: |- + ID is the string representation of the Kubernetes resource object's metadata, + in the format '___'. + type: string + v: + description: Version is the API version of the Kubernetes + resource object's kind. + type: string + required: + - id + - v + type: object + type: array + required: + - entries + type: object + lastAttemptedConfigDigest: + description: |- + LastAttemptedConfigDigest is the digest for the config (better known as + "values") of the last reconciliation attempt. + type: string + lastAttemptedGeneration: + description: |- + LastAttemptedGeneration is the last generation the controller attempted + to reconcile. + format: int64 + type: integer + lastAttemptedReleaseAction: + description: |- + LastAttemptedReleaseAction is the last release action performed for this + HelmRelease. It is used to determine the active retry or remediation + strategy. + enum: + - install + - upgrade + type: string + lastAttemptedReleaseActionDuration: + description: |- + LastAttemptedReleaseActionDuration is the duration of the last + release action performed for this HelmRelease. + type: string + lastAttemptedRevision: + description: |- + LastAttemptedRevision is the Source revision of the last reconciliation + attempt. For OCIRepository sources, the 12 first characters of the digest are + appended to the chart version e.g. "1.2.3+1234567890ab". + type: string + lastAttemptedRevisionDigest: + description: |- + LastAttemptedRevisionDigest is the digest of the last reconciliation attempt. + This is only set for OCIRepository sources. + type: string + lastAttemptedValuesChecksum: + description: |- + LastAttemptedValuesChecksum is the SHA1 checksum for the values of the last + reconciliation attempt. + + Deprecated: Use LastAttemptedConfigDigest instead. + type: string + lastHandledForceAt: + description: |- + LastHandledForceAt holds the value of the most recent + force request value, so a change of the annotation value + can be detected. + type: string + lastHandledReconcileAt: + description: |- + LastHandledReconcileAt holds the value of the most recent + reconcile request value, so a change of the annotation value + can be detected. + type: string + lastHandledResetAt: + description: |- + LastHandledResetAt holds the value of the most recent reset request + value, so a change of the annotation value can be detected. + type: string + lastReleaseRevision: + description: |- + LastReleaseRevision is the revision of the last successful Helm release. + + Deprecated: Use History instead. + type: integer + observedCommonMetadataDigest: + description: |- + ObservedCommonMetadataDigest is the digest for the common metadata of + the last successful reconciliation attempt. + type: string + observedGeneration: + description: ObservedGeneration is the last observed generation. + format: int64 + type: integer + observedPostRenderersDigest: + description: |- + ObservedPostRenderersDigest is the digest for the post-renderers of + the last successful reconciliation attempt. + type: string + storageNamespace: + description: |- + StorageNamespace is the namespace of the Helm release storage for the + current release. + maxLength: 63 + minLength: 1 + type: string + upgradeFailures: + description: |- + UpgradeFailures is the upgrade failure count against the latest desired + state. It is reset after a successful reconciliation. + format: int64 + type: integer + type: object + type: object + served: true + storage: true + subresources: + status: {} +--- +apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + app.kubernetes.io/component: helm-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: helm-controller + namespace: flux-system +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app.kubernetes.io/component: helm-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + control-plane: controller + name: helm-controller + namespace: flux-system +spec: + replicas: 1 + selector: + matchLabels: + app: helm-controller + template: + metadata: + annotations: + prometheus.io/port: "8080" + prometheus.io/scrape: "true" + labels: + app: helm-controller + app.kubernetes.io/component: helm-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + spec: + containers: + - args: + - --events-addr=http://notification-controller.$(RUNTIME_NAMESPACE).svc.cluster.local./ + - --watch-all-namespaces=true + - --log-level=info + - --log-encoding=json + - --enable-leader-election + env: + - name: RUNTIME_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + - name: GOMEMLIMIT + valueFrom: + resourceFieldRef: + containerName: manager + resource: limits.memory + image: cr.yandex/crp3ccidau046kdj8g9q/fluxcd/helm-controller:v1.5.3 + imagePullPolicy: IfNotPresent + livenessProbe: + httpGet: + path: /healthz + port: healthz + name: manager + ports: + - containerPort: 8080 + name: http-prom + protocol: TCP + - containerPort: 9440 + name: healthz + protocol: TCP + readinessProbe: + httpGet: + path: /readyz + port: healthz + resources: + limits: + cpu: 1000m + memory: 1Gi + requests: + cpu: 100m + memory: 64Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + runAsNonRoot: true + seccompProfile: + type: RuntimeDefault + volumeMounts: + - mountPath: /tmp + name: temp + imagePullSecrets: + - name: regcred + nodeSelector: + kubernetes.io/os: linux + priorityClassName: system-cluster-critical + securityContext: + fsGroup: 1337 + serviceAccountName: helm-controller + terminationGracePeriodSeconds: 600 + volumes: + - emptyDir: {} + name: temp +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.19.0 + labels: + app.kubernetes.io/component: notification-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: alerts.notification.toolkit.fluxcd.io +spec: + group: notification.toolkit.fluxcd.io + names: + kind: Alert + listKind: AlertList + plural: alerts + singular: alert + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + - jsonPath: .status.conditions[?(@.type=="Ready")].status + name: Ready + type: string + - jsonPath: .status.conditions[?(@.type=="Ready")].message + name: Status + type: string + deprecated: true + deprecationWarning: v1beta2 Alert is deprecated, upgrade to v1beta3 + name: v1beta2 + schema: + openAPIV3Schema: + description: Alert is the Schema for the alerts API + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: AlertSpec defines an alerting rule for events involving a + list of objects. + properties: + eventMetadata: + additionalProperties: + type: string + description: |- + EventMetadata is an optional field for adding metadata to events dispatched by the + controller. This can be used for enhancing the context of the event. If a field + would override one already present on the original event as generated by the emitter, + then the override doesn't happen, i.e. the original value is preserved, and an info + log is printed. + type: object + eventSeverity: + default: info + description: |- + EventSeverity specifies how to filter events based on severity. + If set to 'info' no events will be filtered. + enum: + - info + - error + type: string + eventSources: + description: |- + EventSources specifies how to filter events based + on the involved object kind, name and namespace. + items: + description: |- + CrossNamespaceObjectReference contains enough information to let you locate the + typed referenced object at cluster level + properties: + apiVersion: + description: API version of the referent + type: string + kind: + description: Kind of the referent + enum: + - Bucket + - GitRepository + - Kustomization + - HelmRelease + - HelmChart + - HelmRepository + - ImageRepository + - ImagePolicy + - ImageUpdateAutomation + - OCIRepository + - ArtifactGenerator + - ExternalArtifact + type: string + matchLabels: + additionalProperties: + type: string + description: |- + MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, whose key field is "key", the + operator is "In", and the values array contains only "value". The requirements are ANDed. + MatchLabels requires the name to be set to `*`. + type: object + name: + description: |- + Name of the referent + If multiple resources are targeted `*` may be set. + maxLength: 253 + minLength: 1 + type: string + namespace: + description: Namespace of the referent + maxLength: 253 + minLength: 1 + type: string + required: + - kind + - name + type: object + type: array + exclusionList: + description: |- + ExclusionList specifies a list of Golang regular expressions + to be used for excluding messages. + items: + type: string + type: array + inclusionList: + description: |- + InclusionList specifies a list of Golang regular expressions + to be used for including messages. + items: + type: string + type: array + providerRef: + description: ProviderRef specifies which Provider this Alert should + use. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + summary: + description: Summary holds a short description of the impact and affected + cluster. + maxLength: 255 + type: string + suspend: + description: |- + Suspend tells the controller to suspend subsequent + events handling for this Alert. + type: boolean + required: + - eventSources + - providerRef + type: object + status: + default: + observedGeneration: -1 + description: AlertStatus defines the observed state of the Alert. + properties: + conditions: + description: Conditions holds the conditions for the Alert. + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + lastHandledReconcileAt: + description: |- + LastHandledReconcileAt holds the value of the most recent + reconcile request value, so a change of the annotation value + can be detected. + type: string + observedGeneration: + description: ObservedGeneration is the last observed generation. + format: int64 + type: integer + type: object + type: object + served: true + storage: false + subresources: + status: {} + - additionalPrinterColumns: + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1beta3 + schema: + openAPIV3Schema: + description: Alert is the Schema for the alerts API + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: AlertSpec defines an alerting rule for events involving a + list of objects. + properties: + eventMetadata: + additionalProperties: + type: string + description: |- + EventMetadata is an optional field for adding metadata to events dispatched by the + controller. This can be used for enhancing the context of the event. If a field + would override one already present on the original event as generated by the emitter, + then the override doesn't happen, i.e. the original value is preserved, and an info + log is printed. + type: object + eventSeverity: + default: info + description: |- + EventSeverity specifies how to filter events based on severity. + If set to 'info' no events will be filtered. + enum: + - info + - error + type: string + eventSources: + description: |- + EventSources specifies how to filter events based + on the involved object kind, name and namespace. + items: + description: |- + CrossNamespaceObjectReference contains enough information to let you locate the + typed referenced object at cluster level + properties: + apiVersion: + description: API version of the referent + type: string + kind: + description: Kind of the referent + enum: + - Bucket + - GitRepository + - Kustomization + - HelmRelease + - HelmChart + - HelmRepository + - ImageRepository + - ImagePolicy + - ImageUpdateAutomation + - OCIRepository + - ArtifactGenerator + - ExternalArtifact + type: string + matchLabels: + additionalProperties: + type: string + description: |- + MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, whose key field is "key", the + operator is "In", and the values array contains only "value". The requirements are ANDed. + MatchLabels requires the name to be set to `*`. + type: object + name: + description: |- + Name of the referent + If multiple resources are targeted `*` may be set. + maxLength: 253 + minLength: 1 + type: string + namespace: + description: Namespace of the referent + maxLength: 253 + minLength: 1 + type: string + required: + - kind + - name + type: object + type: array + exclusionList: + description: |- + ExclusionList specifies a list of Golang regular expressions + to be used for excluding messages. + items: + type: string + type: array + inclusionList: + description: |- + InclusionList specifies a list of Golang regular expressions + to be used for including messages. + items: + type: string + type: array + providerRef: + description: ProviderRef specifies which Provider this Alert should + use. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + summary: + description: |- + Summary holds a short description of the impact and affected cluster. + Deprecated: Use EventMetadata instead. + maxLength: 255 + type: string + suspend: + description: |- + Suspend tells the controller to suspend subsequent + events handling for this Alert. + type: boolean + required: + - eventSources + - providerRef + type: object + type: object + served: true + storage: true + subresources: {} +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.19.0 + labels: + app.kubernetes.io/component: notification-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: providers.notification.toolkit.fluxcd.io +spec: + group: notification.toolkit.fluxcd.io + names: + kind: Provider + listKind: ProviderList + plural: providers + singular: provider + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + - jsonPath: .status.conditions[?(@.type=="Ready")].status + name: Ready + type: string + - jsonPath: .status.conditions[?(@.type=="Ready")].message + name: Status + type: string + deprecated: true + deprecationWarning: v1beta2 Provider is deprecated, upgrade to v1beta3 + name: v1beta2 + schema: + openAPIV3Schema: + description: Provider is the Schema for the providers API. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: ProviderSpec defines the desired state of the Provider. + properties: + address: + description: |- + Address specifies the endpoint, in a generic sense, to where alerts are sent. + What kind of endpoint depends on the specific Provider type being used. + For the generic Provider, for example, this is an HTTP/S address. + For other Provider types this could be a project ID or a namespace. + maxLength: 2048 + type: string + certSecretRef: + description: |- + CertSecretRef specifies the Secret containing + a PEM-encoded CA certificate (in the `ca.crt` key). + + Note: Support for the `caFile` key has + been deprecated. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + channel: + description: Channel specifies the destination channel where events + should be posted. + maxLength: 2048 + type: string + interval: + description: Interval at which to reconcile the Provider with its + Secret references. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + proxy: + description: Proxy the HTTP/S address of the proxy server. + maxLength: 2048 + pattern: ^(http|https)://.*$ + type: string + secretRef: + description: |- + SecretRef specifies the Secret containing the authentication + credentials for this Provider. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + suspend: + description: |- + Suspend tells the controller to suspend subsequent + events handling for this Provider. + type: boolean + timeout: + description: Timeout for sending alerts to the Provider. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ + type: string + type: + description: Type specifies which Provider implementation to use. + enum: + - slack + - discord + - msteams + - rocket + - generic + - generic-hmac + - github + - gitlab + - gitea + - bitbucketserver + - bitbucket + - azuredevops + - googlechat + - googlepubsub + - webex + - sentry + - azureeventhub + - telegram + - lark + - matrix + - opsgenie + - alertmanager + - grafana + - githubdispatch + - pagerduty + - datadog + type: string + username: + description: Username specifies the name under which events are posted. + maxLength: 2048 + type: string + required: + - type + type: object + status: + default: + observedGeneration: -1 + description: ProviderStatus defines the observed state of the Provider. + properties: + conditions: + description: Conditions holds the conditions for the Provider. + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + lastHandledReconcileAt: + description: |- + LastHandledReconcileAt holds the value of the most recent + reconcile request value, so a change of the annotation value + can be detected. + type: string + observedGeneration: + description: ObservedGeneration is the last reconciled generation. + format: int64 + type: integer + type: object + type: object + served: true + storage: false + subresources: + status: {} + - additionalPrinterColumns: + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1beta3 + schema: + openAPIV3Schema: + description: Provider is the Schema for the providers API + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: ProviderSpec defines the desired state of the Provider. + properties: + address: + description: |- + Address specifies the endpoint, in a generic sense, to where alerts are sent. + What kind of endpoint depends on the specific Provider type being used. + For the generic Provider, for example, this is an HTTP/S address. + For other Provider types this could be a project ID or a namespace. + maxLength: 2048 + type: string + certSecretRef: + description: |- + CertSecretRef specifies the Secret containing TLS certificates + for secure communication. + + Supported configurations: + - CA-only: Server authentication (provide ca.crt only) + - mTLS: Mutual authentication (provide ca.crt + tls.crt + tls.key) + - Client-only: Client authentication with system CA (provide tls.crt + tls.key only) + + Legacy keys "caFile", "certFile", "keyFile" are supported but deprecated. Use "ca.crt", "tls.crt", "tls.key" instead. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + channel: + description: Channel specifies the destination channel where events + should be posted. + maxLength: 2048 + type: string + commitStatusExpr: + description: |- + CommitStatusExpr is a CEL expression that evaluates to a string value + that can be used to generate a custom commit status message for use + with eligible Provider types (github, gitlab, gitea, bitbucketserver, + bitbucket, azuredevops). Supported variables are: event, provider, + and alert. + type: string + interval: + description: |- + Interval at which to reconcile the Provider with its Secret references. + Deprecated and not used in v1beta3. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + proxy: + description: |- + Proxy the HTTP/S address of the proxy server. + Deprecated: Use ProxySecretRef instead. Will be removed in v1. + maxLength: 2048 + pattern: ^(http|https)://.*$ + type: string + proxySecretRef: + description: |- + ProxySecretRef specifies the Secret containing the proxy configuration + for this Provider. The Secret should contain an 'address' key with the + HTTP/S address of the proxy server. Optional 'username' and 'password' + keys can be provided for proxy authentication. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + secretRef: + description: |- + SecretRef specifies the Secret containing the authentication + credentials for this Provider. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + serviceAccountName: + description: |- + ServiceAccountName is the name of the Kubernetes ServiceAccount used to + authenticate with cloud provider services through workload identity. + This enables multi-tenant authentication without storing static credentials. + + Supported provider types: azureeventhub, azuredevops, googlepubsub + + When specified, the controller will: + 1. Create an OIDC token for the specified ServiceAccount + 2. Exchange it for cloud provider credentials via STS + 3. Use the obtained credentials for API authentication + + When unspecified, controller-level authentication is used (single-tenant). + + An error is thrown if static credentials are also defined in SecretRef. + This field requires the ObjectLevelWorkloadIdentity feature gate to be enabled. + type: string + suspend: + description: |- + Suspend tells the controller to suspend subsequent + events handling for this Provider. + type: boolean + timeout: + description: Timeout for sending alerts to the Provider. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ + type: string + type: + description: Type specifies which Provider implementation to use. + enum: + - slack + - discord + - msteams + - rocket + - generic + - generic-hmac + - github + - gitlab + - gitea + - giteapullrequestcomment + - bitbucketserver + - bitbucket + - azuredevops + - googlechat + - googlepubsub + - webex + - sentry + - azureeventhub + - telegram + - lark + - matrix + - opsgenie + - alertmanager + - grafana + - githubdispatch + - githubpullrequestcomment + - gitlabmergerequestcomment + - pagerduty + - datadog + - nats + - zulip + - otel + type: string + username: + description: Username specifies the name under which events are posted. + maxLength: 2048 + type: string + required: + - type + type: object + x-kubernetes-validations: + - message: spec.commitStatusExpr is only supported for the 'github', 'gitlab', + 'gitea', 'bitbucketserver', 'bitbucket', 'azuredevops' provider types + rule: self.type == 'github' || self.type == 'gitlab' || self.type == + 'gitea' || self.type == 'bitbucketserver' || self.type == 'bitbucket' + || self.type == 'azuredevops' || !has(self.commitStatusExpr) + type: object + served: true + storage: true + subresources: {} +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.19.0 + labels: + app.kubernetes.io/component: notification-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: receivers.notification.toolkit.fluxcd.io +spec: + group: notification.toolkit.fluxcd.io + names: + kind: Receiver + listKind: ReceiverList + plural: receivers + singular: receiver + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + - jsonPath: .status.conditions[?(@.type=="Ready")].status + name: Ready + type: string + - jsonPath: .status.conditions[?(@.type=="Ready")].message + name: Status + type: string + name: v1 + schema: + openAPIV3Schema: + description: Receiver is the Schema for the receivers API. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: ReceiverSpec defines the desired state of the Receiver. + properties: + events: + description: |- + Events specifies the list of event types to handle, + e.g. 'push' for GitHub or 'Push Hook' for GitLab. + items: + type: string + type: array + interval: + default: 10m + description: Interval at which to reconcile the Receiver with its + Secret references. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + resourceFilter: + description: |- + ResourceFilter is a CEL expression expected to return a boolean that is + evaluated for each resource referenced in the Resources field when a + webhook is received. If the expression returns false then the controller + will not request a reconciliation for the resource. + When the expression is specified the controller will parse it and mark + the object as terminally failed if the expression is invalid or does not + return a boolean. + type: string + resources: + description: A list of resources to be notified about changes. + items: + description: |- + CrossNamespaceObjectReference contains enough information to let you locate the + typed referenced object at cluster level + properties: + apiVersion: + description: API version of the referent + type: string + kind: + description: Kind of the referent + enum: + - Bucket + - GitRepository + - Kustomization + - HelmRelease + - HelmChart + - HelmRepository + - ImageRepository + - ImagePolicy + - ImageUpdateAutomation + - OCIRepository + - ArtifactGenerator + - ExternalArtifact + type: string + matchLabels: + additionalProperties: + type: string + description: |- + MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, whose key field is "key", the + operator is "In", and the values array contains only "value". The requirements are ANDed. + MatchLabels requires the name to be set to `*`. + type: object + name: + description: |- + Name of the referent + If multiple resources are targeted `*` may be set. + maxLength: 253 + minLength: 1 + type: string + namespace: + description: Namespace of the referent + maxLength: 253 + minLength: 1 + type: string + required: + - kind + - name + type: object + type: array + secretRef: + description: |- + SecretRef specifies the Secret containing the token used + to validate the payload authenticity. The Secret must contain a 'token' + key. For GCR receivers, the Secret must also contain an 'email' key + with the IAM service account email configured on the Pub/Sub push + subscription, and may optionally contain an 'audience' key with the + expected OIDC token audience. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + suspend: + description: |- + Suspend tells the controller to suspend subsequent + events handling for this receiver. + type: boolean + type: + description: |- + Type of webhook sender, used to determine + the validation procedure and payload deserialization. + enum: + - generic + - generic-hmac + - github + - gitlab + - bitbucket + - harbor + - dockerhub + - quay + - gcr + - nexus + - acr + - cdevents + type: string + required: + - resources + - secretRef + - type + type: object + status: + default: + observedGeneration: -1 + description: ReceiverStatus defines the observed state of the Receiver. + properties: + conditions: + description: Conditions holds the conditions for the Receiver. + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + lastHandledReconcileAt: + description: |- + LastHandledReconcileAt holds the value of the most recent + reconcile request value, so a change of the annotation value + can be detected. + type: string + observedGeneration: + description: ObservedGeneration is the last observed generation of + the Receiver object. + format: int64 + type: integer + webhookPath: + description: |- + WebhookPath is the generated incoming webhook address in the format + of '/hook/sha256sum(token+name+namespace)'. + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} + - additionalPrinterColumns: + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + - jsonPath: .status.conditions[?(@.type=="Ready")].status + name: Ready + type: string + - jsonPath: .status.conditions[?(@.type=="Ready")].message + name: Status + type: string + deprecated: true + deprecationWarning: v1beta2 Receiver is deprecated, upgrade to v1 + name: v1beta2 + schema: + openAPIV3Schema: + description: Receiver is the Schema for the receivers API. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: ReceiverSpec defines the desired state of the Receiver. + properties: + events: + description: |- + Events specifies the list of event types to handle, + e.g. 'push' for GitHub or 'Push Hook' for GitLab. + items: + type: string + type: array + interval: + description: Interval at which to reconcile the Receiver with its + Secret references. + pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ + type: string + resources: + description: A list of resources to be notified about changes. + items: + description: |- + CrossNamespaceObjectReference contains enough information to let you locate the + typed referenced object at cluster level + properties: + apiVersion: + description: API version of the referent + type: string + kind: + description: Kind of the referent + enum: + - Bucket + - GitRepository + - Kustomization + - HelmRelease + - HelmChart + - HelmRepository + - ImageRepository + - ImagePolicy + - ImageUpdateAutomation + - OCIRepository + - ArtifactGenerator + - ExternalArtifact + type: string + matchLabels: + additionalProperties: + type: string + description: |- + MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, whose key field is "key", the + operator is "In", and the values array contains only "value". The requirements are ANDed. + MatchLabels requires the name to be set to `*`. + type: object + name: + description: |- + Name of the referent + If multiple resources are targeted `*` may be set. + maxLength: 253 + minLength: 1 + type: string + namespace: + description: Namespace of the referent + maxLength: 253 + minLength: 1 + type: string + required: + - kind + - name + type: object + type: array + secretRef: + description: |- + SecretRef specifies the Secret containing the token used + to validate the payload authenticity. + properties: + name: + description: Name of the referent. + type: string + required: + - name + type: object + suspend: + description: |- + Suspend tells the controller to suspend subsequent + events handling for this receiver. + type: boolean + type: + description: |- + Type of webhook sender, used to determine + the validation procedure and payload deserialization. + enum: + - generic + - generic-hmac + - github + - gitlab + - bitbucket + - harbor + - dockerhub + - quay + - gcr + - nexus + - acr + type: string + required: + - resources + - secretRef + - type + type: object + status: + default: + observedGeneration: -1 + description: ReceiverStatus defines the observed state of the Receiver. + properties: + conditions: + description: Conditions holds the conditions for the Receiver. + items: + description: Condition contains details for one aspect of the current + state of this API Resource. + properties: + lastTransitionTime: + description: |- + lastTransitionTime is the last time the condition transitioned from one status to another. + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: |- + message is a human readable message indicating details about the transition. + This may be an empty string. + maxLength: 32768 + type: string + observedGeneration: + description: |- + observedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + minimum: 0 + type: integer + reason: + description: |- + reason contains a programmatic identifier indicating the reason for the condition's last transition. + Producers of specific condition types may define expected values and meanings for this field, + and whether the values are considered a guaranteed API. + The value should be a CamelCase string. + This field may not be empty. + maxLength: 1024 + minLength: 1 + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ + type: string + status: + description: status of the condition, one of True, False, Unknown. + enum: + - "True" + - "False" + - Unknown + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + maxLength: 316 + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + lastHandledReconcileAt: + description: |- + LastHandledReconcileAt holds the value of the most recent + reconcile request value, so a change of the annotation value + can be detected. + type: string + observedGeneration: + description: ObservedGeneration is the last observed generation of + the Receiver object. + format: int64 + type: integer + url: + description: |- + URL is the generated incoming webhook address in the format + of '/hook/sha256sum(token+name+namespace)'. + Deprecated: Replaced by WebhookPath. + type: string + webhookPath: + description: |- + WebhookPath is the generated incoming webhook address in the format + of '/hook/sha256sum(token+name+namespace)'. + type: string + type: object + type: object + served: true + storage: false + subresources: + status: {} +--- +apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + app.kubernetes.io/component: notification-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + name: notification-controller + namespace: flux-system +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/component: notification-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + control-plane: controller + name: notification-controller + namespace: flux-system +spec: + ports: + - name: http + port: 80 + protocol: TCP + targetPort: http + selector: + app: notification-controller + type: ClusterIP +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/component: notification-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + control-plane: controller + name: webhook-receiver + namespace: flux-system +spec: + ports: + - name: http + port: 80 + protocol: TCP + targetPort: http-webhook + selector: + app: notification-controller + type: ClusterIP +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app.kubernetes.io/component: notification-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + control-plane: controller + name: notification-controller + namespace: flux-system +spec: + replicas: 1 + selector: + matchLabels: + app: notification-controller + template: + metadata: + annotations: + prometheus.io/port: "8080" + prometheus.io/scrape: "true" + labels: + app: notification-controller + app.kubernetes.io/component: notification-controller + app.kubernetes.io/instance: flux-system + app.kubernetes.io/part-of: flux + app.kubernetes.io/version: v2.8.5 + spec: + containers: + - args: + - --watch-all-namespaces=true + - --log-level=info + - --log-encoding=json + - --enable-leader-election + env: + - name: RUNTIME_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + - name: GOMEMLIMIT + valueFrom: + resourceFieldRef: + containerName: manager + resource: limits.memory + image: cr.yandex/crp3ccidau046kdj8g9q/fluxcd/notification-controller:v1.8.3 + imagePullPolicy: IfNotPresent + livenessProbe: + httpGet: + path: /healthz + port: healthz + name: manager + ports: + - containerPort: 9090 + name: http + protocol: TCP + - containerPort: 9292 + name: http-webhook + protocol: TCP + - containerPort: 8080 + name: http-prom + protocol: TCP + - containerPort: 9440 + name: healthz + protocol: TCP + readinessProbe: + httpGet: + path: /readyz + port: healthz + resources: + limits: + cpu: 1000m + memory: 1Gi + requests: + cpu: 100m + memory: 64Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + runAsNonRoot: true + seccompProfile: + type: RuntimeDefault + volumeMounts: + - mountPath: /tmp + name: temp + imagePullSecrets: + - name: regcred + nodeSelector: + kubernetes.io/os: linux + securityContext: + fsGroup: 1337 + serviceAccountName: notification-controller + terminationGracePeriodSeconds: 10 + volumes: + - emptyDir: {} + name: temp diff --git a/clusters/nn-dev/flux-system/gotk-sync.yaml b/clusters/nn-dev/flux-system/gotk-sync.yaml new file mode 100644 index 0000000..e26e32a --- /dev/null +++ b/clusters/nn-dev/flux-system/gotk-sync.yaml @@ -0,0 +1,25 @@ +apiVersion: source.toolkit.fluxcd.io/v1 +kind: GitRepository +metadata: + name: flux-system + namespace: flux-system +spec: + interval: 1m0s + ref: + branch: main + url: http://gitea.gitea.svc:3000/infra/iac.git + secretRef: + name: flux-system +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: flux-system + namespace: flux-system +spec: + interval: 10m0s + path: ./clusters/nn-dev + prune: true + sourceRef: + kind: GitRepository + name: flux-system diff --git a/clusters/nn-dev/flux-system/kustomization.yaml b/clusters/nn-dev/flux-system/kustomization.yaml new file mode 100644 index 0000000..1a9adc7 --- /dev/null +++ b/clusters/nn-dev/flux-system/kustomization.yaml @@ -0,0 +1,13 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- gotk-components.yaml +- gotk-sync.yaml +patches: +- target: + kind: Deployment + name: kustomize-controller + patch: |- + - op: add + path: /spec/template/spec/containers/0/args/- + value: --feature-gates=CancelHealthCheckOnNewRevision=true diff --git a/clusters/nn-dev/kustomization.yaml b/clusters/nn-dev/kustomization.yaml new file mode 100644 index 0000000..ff43ede --- /dev/null +++ b/clusters/nn-dev/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ./flux-system + - ./layers.yaml diff --git a/clusters/nn-dev/layers.yaml b/clusters/nn-dev/layers.yaml new file mode 100644 index 0000000..ad4b896 --- /dev/null +++ b/clusters/nn-dev/layers.yaml @@ -0,0 +1,93 @@ +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: 00-vault + namespace: flux-system +spec: + interval: 10m0s + timeout: 10m0s + path: ./clusters/nn-dev/00-vault + prune: true + sourceRef: + kind: GitRepository + name: flux-system + postBuild: + substituteFrom: + - kind: ConfigMap + name: contour-vars +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: 10-mesh + namespace: flux-system +spec: + interval: 10m0s + timeout: 15m0s + path: ./clusters/nn-dev/10-mesh + prune: true + wait: true + sourceRef: + kind: GitRepository + name: flux-system + postBuild: + substituteFrom: + - kind: ConfigMap + name: contour-vars +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: 20-data + namespace: flux-system +spec: + interval: 10m0s + timeout: 20m0s + path: ./clusters/nn-dev/20-data + prune: true + wait: true + sourceRef: + kind: GitRepository + name: flux-system + postBuild: + substituteFrom: + - kind: ConfigMap + name: contour-vars +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: 30-platform + namespace: flux-system +spec: + interval: 10m0s + timeout: 35m0s + path: ./clusters/nn-dev/30-platform + prune: true + wait: true + sourceRef: + kind: GitRepository + name: flux-system + postBuild: + substituteFrom: + - kind: ConfigMap + name: contour-vars +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: 40-routing + namespace: flux-system +spec: + interval: 10m0s + timeout: 10m0s + path: ./clusters/nn-dev/40-routing + prune: true + wait: true + sourceRef: + kind: GitRepository + name: flux-system + postBuild: + substituteFrom: + - kind: ConfigMap + name: contour-vars diff --git a/infrastructure/camunda/contour-template/camunda.yaml b/infrastructure/camunda/contour-template/camunda.yaml index 2dfca63..f89b7f5 100644 --- a/infrastructure/camunda/contour-template/camunda.yaml +++ b/infrastructure/camunda/contour-template/camunda.yaml @@ -216,8 +216,8 @@ spec: storageClass: ${STORAGE_CLASS} identityKeycloak: externalDatabase: - host: pg-host.storage.svc.cluster.local - port: 5432 + host: ${PG_HOST} + port: ${PG_PORT} user: bn_keycloak database: bitnami_keycloak password: "" @@ -298,8 +298,8 @@ spec: fullURL: "https://${HOST_CAMUNDA_IDENTITY}" externalDatabase: enabled: true - host: pg-host.storage.svc.cluster.local - port: 5432 + host: ${PG_HOST} + port: ${PG_PORT} username: identity database: identity password: "" diff --git a/infrastructure/istio-gateway/contour-template/istio-gateway.yaml b/infrastructure/istio-gateway/contour-template/istio-gateway.yaml index c904f81..b8e887a 100644 --- a/infrastructure/istio-gateway/contour-template/istio-gateway.yaml +++ b/infrastructure/istio-gateway/contour-template/istio-gateway.yaml @@ -19,6 +19,14 @@ spec: nodeSelector: sarex.io/gateway: "true" affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: sarex.io/gateway + operator: In + values: + - "true" podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: diff --git a/infrastructure/rabbitmq/contour-template/rabbitmq.yaml b/infrastructure/rabbitmq/contour-template/rabbitmq.yaml index 42d02ff..f1c844c 100644 --- a/infrastructure/rabbitmq/contour-template/rabbitmq.yaml +++ b/infrastructure/rabbitmq/contour-template/rabbitmq.yaml @@ -99,6 +99,7 @@ spec: advancedConfiguration: |- [ {rabbit, [ - {loopback_users, []} + {loopback_users, []}, + {disk_free_limit, 1073741824} ]} ]. From 46b396c28495159e99abf3cb6d06ef43d56b80ff Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 25 Nov 2026 12:46:05 +0500 Subject: [PATCH 18/32] stand: deploy single-node ClickHouse with persistent storage --- clusters/stand/20-data/kustomization.yaml | 1 + .../clickhouse/stand/clickhouse.yaml | 65 +++++++++++++++++++ .../clickhouse/stand/databases.yaml | 8 +++ .../clickhouse/stand/kustomization.yaml | 6 ++ .../clickhouse/stand/namespace.yaml | 6 ++ 5 files changed, 86 insertions(+) create mode 100644 infrastructure/clickhouse/stand/clickhouse.yaml create mode 100644 infrastructure/clickhouse/stand/databases.yaml create mode 100644 infrastructure/clickhouse/stand/kustomization.yaml create mode 100644 infrastructure/clickhouse/stand/namespace.yaml diff --git a/clusters/stand/20-data/kustomization.yaml b/clusters/stand/20-data/kustomization.yaml index 77498c9..0306570 100644 --- a/clusters/stand/20-data/kustomization.yaml +++ b/clusters/stand/20-data/kustomization.yaml @@ -4,3 +4,4 @@ resources: - ../../../infrastructure/postgresql/contour-template - ../../../infrastructure/kafka/contour-template - ../../../infrastructure/rabbitmq/contour-template + - ../../../infrastructure/clickhouse/stand diff --git a/infrastructure/clickhouse/stand/clickhouse.yaml b/infrastructure/clickhouse/stand/clickhouse.yaml new file mode 100644 index 0000000..7f91ce6 --- /dev/null +++ b/infrastructure/clickhouse/stand/clickhouse.yaml @@ -0,0 +1,65 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: clickhouse + namespace: clickhouse +spec: + interval: 5m + timeout: 15m + chart: + spec: + chart: clickhouse-altinity + version: "0.2.1" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + crds: CreateReplace + remediation: + retries: 3 + upgrade: + crds: CreateReplace + remediation: + retries: 3 + values: + operator: + enabled: true + altinity-clickhouse-operator: + watchNamespaces: + - clickhouse + installations: + clickhouse-stand: + cluster: default + replicas: 1 + usersSecret: clickhouse-stand-users + initDatabases: true + admin: true + nodeSelector: + dedicated: generic + resources: + requests: + cpu: 250m + memory: 1Gi + limits: + memory: 3Gi + settings: + max_server_memory_usage: 2147483648 + max_thread_pool_size: 1000 + background_move_pool_size: 2 + background_schedule_pool_size: 16 + background_message_broker_schedule_pool_size: 4 + background_distributed_schedule_pool_size: 4 + storage: + size: 20Gi + storageClass: local-path + keeper: + enabled: false + users: + - name: stand + databases: + - values_db + settings: + max_memory_usage: "1073741824" + max_threads: "4" diff --git a/infrastructure/clickhouse/stand/databases.yaml b/infrastructure/clickhouse/stand/databases.yaml new file mode 100644 index 0000000..9ff2daf --- /dev/null +++ b/infrastructure/clickhouse/stand/databases.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: clickhouse-stand-databases + namespace: clickhouse +data: + databases.txt: | + values_db diff --git a/infrastructure/clickhouse/stand/kustomization.yaml b/infrastructure/clickhouse/stand/kustomization.yaml new file mode 100644 index 0000000..3d64966 --- /dev/null +++ b/infrastructure/clickhouse/stand/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - namespace.yaml + - clickhouse.yaml + - databases.yaml diff --git a/infrastructure/clickhouse/stand/namespace.yaml b/infrastructure/clickhouse/stand/namespace.yaml new file mode 100644 index 0000000..edb2f11 --- /dev/null +++ b/infrastructure/clickhouse/stand/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: clickhouse + labels: + istio-injection: disabled From 0aafb8a1eabef3e591678a57af92d8ddbb1639b1 Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Wed, 25 Nov 2026 10:35:47 +0300 Subject: [PATCH 19/32] ++ uralkal vmstack --- clusters/uralkal/kustomization.yaml | 1 + .../istio-config/uralkal/istio-config.yaml | 12 ++ .../vmstack/uralkal/kustomization.yaml | 12 ++ infrastructure/vmstack/uralkal/vmstack.yaml | 201 ++++++++++++++++++ 4 files changed, 226 insertions(+) create mode 100644 infrastructure/vmstack/uralkal/kustomization.yaml create mode 100644 infrastructure/vmstack/uralkal/vmstack.yaml diff --git a/clusters/uralkal/kustomization.yaml b/clusters/uralkal/kustomization.yaml index 4a0ff6c..fc3973d 100644 --- a/clusters/uralkal/kustomization.yaml +++ b/clusters/uralkal/kustomization.yaml @@ -19,6 +19,7 @@ resources: - ../../infrastructure/s3-proxy/uralkal - ../../infrastructure/opentelemetry-collector/uralkal - ../../infrastructure/security-audit/uralkal + - ../../infrastructure/vmstack/uralkal - ../../apps/reviews/uralkal - ../../apps/remarks/uralkal diff --git a/infrastructure/istio-config/uralkal/istio-config.yaml b/infrastructure/istio-config/uralkal/istio-config.yaml index 55da5ed..0aa2b6b 100644 --- a/infrastructure/istio-config/uralkal/istio-config.yaml +++ b/infrastructure/istio-config/uralkal/istio-config.yaml @@ -1081,6 +1081,18 @@ spec: rewrite: / service: bi-frontend-frontend-svc.bi.svc.cluster.local port: 80 + grafana: + name: grafana-virt-service + namespace: default + hosts: + - sarex.local.uralkali.com + gateways: + - default/platform-gateway + routes: + - path: + prefix: /grafana/ + service: vmstack-grafana.vmstack.svc.cluster.local + port: 80 zitadel: namespace: default hosts: diff --git a/infrastructure/vmstack/uralkal/kustomization.yaml b/infrastructure/vmstack/uralkal/kustomization.yaml new file mode 100644 index 0000000..948177e --- /dev/null +++ b/infrastructure/vmstack/uralkal/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base +patches: + - path: ./vmstack.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: vmstack + namespace: vmstack diff --git a/infrastructure/vmstack/uralkal/vmstack.yaml b/infrastructure/vmstack/uralkal/vmstack.yaml new file mode 100644 index 0000000..377b2f2 --- /dev/null +++ b/infrastructure/vmstack/uralkal/vmstack.yaml @@ -0,0 +1,201 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: vmstack + namespace: vmstack +spec: + interval: 5m + timeout: 20m + values: + global: + clusterLabel: cluster + nameOverride: vmstack + fullnameOverride: vmstack + defaultRules: + create: false + extraObjects: [] + defaultDashboards: + enabled: true + grafanaOperator: + enabled: false + dashboards: + node-exporter-full: + enabled: true + kubernetes-views-global: + enabled: true + kubernetes-views-namespaces: + enabled: true + kubernetes-views-nodes: + enabled: true + kubernetes-views-pods: + enabled: true + alertmanager-overview: + enabled: false + etcd: + enabled: false + grafana-overview: + enabled: false + kubernetes-controller-manager: + enabled: false + kubernetes-kubelet: + enabled: false + kubernetes-proxy: + enabled: false + kubernetes-scheduler: + enabled: false + kubernetes-system-api-server: + enabled: false + kubernetes-system-coredns: + enabled: false + victoriametrics-backupmanager: + enabled: false + victoriametrics-cluster: + enabled: false + victoriametrics-operator: + enabled: false + victoriametrics-single-node: + enabled: false + victoriametrics-vmagent: + enabled: false + victoriametrics-vmalert: + enabled: false + victoria-metrics-operator: + admissionWebhooks: + enabled: false + crds: + cleanup: + enabled: false + vmcluster: + enabled: false + vmalert: + enabled: false + alertmanager: + enabled: false + vmauth: + enabled: false + kubelet: + enabled: false + kubeApiServer: + enabled: false + kubeControllerManager: + enabled: false + kubeDns: + enabled: false + coreDns: + enabled: false + kubeEtcd: + enabled: false + kubeScheduler: + enabled: false + kubeProxy: + enabled: false + vmsingle: + enabled: true + spec: + image: + repository: cr.yandex/crp3ccidau046kdj8g9q/vm-stack/victoria-metrics + tag: v1.129.1-amd64 + imagePullSecrets: + - name: regcred + retentionPeriod: 2w + replicaCount: 1 + extraArgs: + dedup.minScrapeInterval: null + storage: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi + storageClassName: local-path + resources: + requests: + cpu: 100m + memory: 256Mi + limits: + memory: 1Gi + vmagent: + enabled: true + labels: + sidecar.istio.io/inject: "false" + annotations: + sidecar.istio.io/inject: "false" + spec: + remoteWrite: + - url: http://vmsingle-vmstack.vmstack.svc.cluster.local.:8428/api/v1/write + scrapeInterval: 30s + resources: + requests: + cpu: 50m + memory: 128Mi + limits: + memory: 512Mi + prometheus-node-exporter: + enabled: true + resources: + requests: + cpu: 20m + memory: 32Mi + limits: + memory: 128Mi + kube-state-metrics: + enabled: true + resources: + requests: + cpu: 20m + memory: 64Mi + limits: + memory: 256Mi + grafana: + enabled: true + forceDeployDatasource: true + image: + registry: cr.yandex/crp3ccidau046kdj8g9q + repository: vm-stack/grafana + tag: 12.2.1-amd64 + imagePullSecrets: + - regcred + sidecar: + image: + registry: cr.yandex/crp3ccidau046kdj8g9q + repository: vm-stack/k8s-sidecar + tag: 1.30.10-amd64 + testFramework: + enabled: false + persistence: + enabled: false + podLabels: + sidecar.istio.io/inject: "true" + podAnnotations: + proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}' + envFromSecret: grafana-oauth + resources: + requests: + cpu: 50m + memory: 128Mi + limits: + memory: 512Mi + grafana.ini: + server: + root_url: https://sarex.local.uralkali.com/grafana/ + serve_from_sub_path: true + analytics: + reporting_enabled: false + check_for_updates: false + check_for_plugin_updates: false + users: + auto_assign_org_role: Viewer + auth.generic_oauth: + enabled: true + name: Zitadel + allow_sign_up: true + use_pkce: true + scopes: openid profile email urn:zitadel:iam:org:projects:roles + auth_url: https://login.sarex.local.uralkali.com/oauth/v2/authorize + token_url: http://login.sarex.local.uralkali.com:8080/oauth/v2/token + api_url: http://login.sarex.local.uralkali.com:8080/oidc/v1/userinfo + login_attribute_path: preferred_username + email_attribute_path: email + name_attribute_path: name + role_attribute_strict: false + role_attribute_path: "contains(keys(\"urn:zitadel:iam:org:project:roles\" || `{}`), 'admin') && 'Admin' || contains(keys(\"urn:zitadel:iam:org:project:roles\" || `{}`), 'editor') && 'Editor' || 'Viewer'" From c89aaab9ebda15ec2cc8543d700bdef401ccb61d Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 25 Nov 2026 13:47:17 +0500 Subject: [PATCH 20/32] Remove retired sarex-contour and yc-k8s-test configurations --- CLAUDE.md | 10 +- IAC-CATALOG.md | 1 + .../sarex-contour/kustomization.yaml | 4 - .../yc-k8s-test/kustomization.yaml | 11 - apps/attachments/yc-k8s-test/postgresql.yaml | 122 - apps/attachments/yc-k8s-test/replicas.yaml | 13 - .../sarex-contour/kustomization.yaml | 4 - apps/auth-flow/yc-k8s-test/kustomization.yaml | 10 - apps/auth-flow/yc-k8s-test/replicas.yaml | 13 - apps/bi/sarex-contour/kustomization.yaml | 4 - apps/bim/CONFIGURATION.md | 2 +- apps/bim/sarex-contour/kustomization.yaml | 4 - apps/bim/yc-k8s-test/kustomization.yaml | 11 - apps/bim/yc-k8s-test/postgresql.yaml | 126 - apps/bim/yc-k8s-test/replicas.yaml | 13 - apps/cde/CONFIGURATION.md | 2 +- apps/cde/yc-k8s-test/kustomization.yaml | 10 - apps/cde/yc-k8s-test/replicas.yaml | 8 - .../sarex-contour/kustomization.yaml | 4 - .../checklists/yc-k8s-test/kustomization.yaml | 7 - apps/checklists/yc-k8s-test/postgresql.yaml | 124 - apps/comparisons/CONFIGURATION.md | 2 +- .../sarex-contour/kustomization.yaml | 4 - .../yc-k8s-test/kustomization.yaml | 11 - apps/comparisons/yc-k8s-test/postgresql.yaml | 122 - apps/comparisons/yc-k8s-test/replicas.yaml | 13 - .../sarex-contour/kustomization.yaml | 4 - apps/contracts/yc-k8s-test/kustomization.yaml | 11 - apps/contracts/yc-k8s-test/postgresql.yaml | 126 - apps/contracts/yc-k8s-test/replicas.yaml | 7 - .../sarex-contour/kustomization.yaml | 7 - .../sarex-contour/namespace.yaml | 6 - .../yc-k8s-test/kustomization.yaml | 11 - .../yc-k8s-test/replicas.yaml | 13 - .../sarex-contour/kustomization.yaml | 4 - .../yc-k8s-test/kustomization.yaml | 10 - apps/cross-section/yc-k8s-test/replicas.yaml | 13 - apps/django/CONFIGURATION.md | 2 +- apps/django/sarex-contour/kustomization.yaml | 9 - .../django/sarex-contour/nginx-configmap.yaml | 160 - apps/django/yc-k8s-test/kustomization.yaml | 7 - apps/django/yc-k8s-test/postgresql.yaml | 124 - apps/document-link/CONFIGURATION.md | 1 - .../sarex-contour/kustomization.yaml | 4 - .../yc-k8s-test/kustomization.yaml | 10 - apps/document-link/yc-k8s-test/replicas.yaml | 8 - .../sarex-contour/kustomization.yaml | 4 - .../yc-k8s-test/kustomization.yaml | 7 - .../yc-k8s-test/postgresql.yaml | 126 - .../drawings/sarex-contour/kustomization.yaml | 4 - apps/drawings/yc-k8s-test/kustomization.yaml | 11 - apps/drawings/yc-k8s-test/postgresql.yaml | 124 - apps/drawings/yc-k8s-test/replicas.yaml | 13 - apps/eav/sarex-contour/kustomization.yaml | 4 - apps/eav/yc-k8s-test/kustomization.yaml | 11 - apps/eav/yc-k8s-test/postgresql.yaml | 127 - apps/eav/yc-k8s-test/replicas.yaml | 13 - apps/faas/yc-k8s-test/kustomization.yaml | 10 - apps/faas/yc-k8s-test/replicas.yaml | 8 - apps/flows/CONFIGURATION.md | 2 +- apps/flows/sarex-contour/kustomization.yaml | 4 - apps/flows/yc-k8s-test/kustomization.yaml | 7 - apps/flows/yc-k8s-test/postgresql.yaml | 123 - apps/iam/yc-k8s-test/kustomization.yaml | 10 - apps/iam/yc-k8s-test/replicas.yaml | 8 - .../sarex-contour/kustomization.yaml | 4 - .../yc-k8s-test/kustomization.yaml | 7 - apps/inspections/yc-k8s-test/postgresql.yaml | 127 - apps/issues/sarex-contour/kustomization.yaml | 4 - apps/issues/yc-k8s-test/kustomization.yaml | 7 - apps/issues/yc-k8s-test/postgresql.yaml | 128 - apps/mapper/CONFIGURATION.md | 1 - apps/mapper/sarex-contour/kustomization.yaml | 4 - apps/mapper/yc-k8s-test/kustomization.yaml | 10 - apps/mapper/yc-k8s-test/replicas.yaml | 13 - apps/measurements/CONFIGURATION.md | 3 +- .../sarex-contour/kustomization.yaml | 4 - .../yc-k8s-test/kustomization.yaml | 10 - apps/measurements/yc-k8s-test/replicas.yaml | 13 - .../yc-k8s-test/kustomization.yaml | 10 - apps/message-hub/yc-k8s-test/replicas.yaml | 8 - apps/notes/sarex-contour/kustomization.yaml | 4 - apps/notes/yc-k8s-test/kustomization.yaml | 11 - apps/notes/yc-k8s-test/postgresql.yaml | 123 - apps/notes/yc-k8s-test/replicas.yaml | 8 - apps/pm/yc-k8s-test/kustomization.yaml | 9 - apps/pm/yc-k8s-test/postgresql.yaml | 124 - apps/pm/yc-k8s-test/redis-deployment.yaml | 27 - apps/pm/yc-k8s-test/redis-service.yaml | 13 - apps/prescriptions/CONFIGURATION.md | 1 - .../sarex-contour/kustomization.yaml | 4 - .../yc-k8s-test/kustomization.yaml | 10 - apps/prescriptions/yc-k8s-test/replicas.yaml | 8 - .../processing/yc-k8s-test/kustomization.yaml | 7 - apps/processing/yc-k8s-test/postgresql.yaml | 123 - .../projects/sarex-contour/kustomization.yaml | 4 - apps/projects/yc-k8s-test/kustomization.yaml | 10 - apps/projects/yc-k8s-test/replicas.yaml | 8 - apps/remarks/sarex-contour/kustomization.yaml | 4 - apps/remarks/yc-k8s-test/kustomization.yaml | 10 - apps/remarks/yc-k8s-test/replicas.yaml | 13 - apps/resources/yc-k8s-test/kustomization.yaml | 11 - apps/resources/yc-k8s-test/postgresql.yaml | 125 - apps/resources/yc-k8s-test/replicas.yaml | 8 - apps/reviews/sarex-contour/kustomization.yaml | 4 - apps/reviews/yc-k8s-test/kustomization.yaml | 10 - apps/reviews/yc-k8s-test/replicas.yaml | 13 - apps/rfi/sarex-contour/kustomization.yaml | 4 - apps/rfi/yc-k8s-test/kustomization.yaml | 7 - apps/rfi/yc-k8s-test/postgresql.yaml | 123 - apps/stamp-verification/CONFIGURATION.md | 4 +- .../sarex-contour/kustomization.yaml | 4 - .../yc-k8s-test/kustomization.yaml | 10 - .../yc-k8s-test/replicas.yaml | 8 - apps/subscriptions/CONFIGURATION.md | 3 +- .../sarex-contour/kustomization.yaml | 4 - .../yc-k8s-test/kustomization.yaml | 7 - .../subscriptions/yc-k8s-test/postgresql.yaml | 126 - apps/system-log/CONFIGURATION.md | 3 +- .../sarex-contour/kustomization.yaml | 4 - .../system-log/yc-k8s-test/kustomization.yaml | 7 - apps/system-log/yc-k8s-test/postgresql.yaml | 125 - .../yc-k8s-test/kustomization.yaml | 7 - apps/transmittal/yc-k8s-test/postgresql.yaml | 123 - apps/workspaces/CONFIGURATION.md | 3 +- .../sarex-contour/kustomization.yaml | 4 - .../workspaces/yc-k8s-test/kustomization.yaml | 11 - apps/workspaces/yc-k8s-test/postgresql.yaml | 123 - apps/workspaces/yc-k8s-test/replicas.yaml | 13 - .../flux-system/gotk-components.yaml | 6089 ---------------- .../sarex-contour/flux-system/gotk-sync.yaml | 27 - .../flux-system/kustomization.yaml | 5 - clusters/sarex-contour/helm-repositories.yaml | 12 - clusters/sarex-contour/kustomization.yaml | 45 - .../bootstrap-jobs/kustomization.yaml | 5 - .../service-bootstrap-jobs.yaml | 323 - .../flux-system/gotk-components.yaml | 6432 ----------------- .../yc-k8s-test/flux-system/gotk-sync.yaml | 27 - .../flux-system/kustomization.yaml | 5 - clusters/yc-k8s-test/helm-repositories.yaml | 12 - clusters/yc-k8s-test/kustomization.yaml | 67 - .../camunda/yc-k8s-test/camunda.yaml | 155 - .../camunda/yc-k8s-test/kustomization.yaml | 6 - .../yc-k8s-test/cert-manager.yaml | 12 - .../clusterissuer-letsencrypt-istio.yaml | 18 - .../clusterissuer-letsencrypt.yaml | 18 - .../yc-k8s-test/kustomization.yaml | 8 - .../dashboard/yc-k8s-test/dashboard.yaml | 25 - .../dashboard/yc-k8s-test/kustomization.yaml | 6 - .../glitchtip/yc-k8s-test/glitchtip.yaml | 64 - .../glitchtip/yc-k8s-test/kustomization.yaml | 6 - .../sarex-contour/kustomization.yaml | 4 - .../istio-base/yc-k8s-test/istio-base.yaml | 8 - .../istio-base/yc-k8s-test/kustomization.yaml | 6 - .../yc-k8s-test/istio-config.yaml | 1138 --- .../yc-k8s-test/kustomization.yaml | 6 - .../sarex-contour/istio-gateway.yaml | 33 - .../sarex-contour/kustomization.yaml | 6 - .../yc-k8s-test/istio-gateway.yaml | 16 - .../yc-k8s-test/kustomization.yaml | 6 - .../sarex-contour/istio-pilot.yaml | 15 - .../sarex-contour/kustomization.yaml | 6 - .../istio-pilot/yc-k8s-test/istio-pilot.yaml | 27 - .../yc-k8s-test/kustomization.yaml | 6 - infrastructure/kafka/sarex-contour/kafka.yaml | 60 - .../kafka/sarex-contour/kustomization.yaml | 6 - infrastructure/kafka/yc-k8s-test/kafka.yaml | 60 - .../kafka/yc-k8s-test/kustomization.yaml | 6 - .../keycloak/yc-k8s-test/keycloak.yaml | 49 - .../keycloak/yc-k8s-test/kustomization.yaml | 6 - .../yc-k8s-test/kustomization.yaml | 6 - .../yc-k8s-test/local-path-provisioner.yaml | 53 - .../minio/yc-k8s-test/kustomization.yaml | 6 - infrastructure/minio/yc-k8s-test/minio.yaml | 39 - .../openldap/yc-k8s-test/kustomization.yaml | 6 - .../openldap/yc-k8s-test/openldap.yaml | 26 - .../yc-k8s-test/kustomization.yaml | 6 - .../openobserve/yc-k8s-test/openobserve.yaml | 73 - .../yc-k8s-test/kustomization.yaml | 7 - .../yc-k8s-test/opentelemetry-collector.yaml | 203 - .../yc-k8s-test/signoz-compat.yaml | 26 - .../yc-k8s-test/kustomization.yaml | 10 - .../yc-k8s-test/opentelemetry-operator.yaml | 11 - .../postgresql/yc-k8s-test/kustomization.yaml | 6 - .../postgresql/yc-k8s-test/postgresql.yaml | 419 -- .../rabbitmq/sarex-contour/kustomization.yaml | 6 - .../rabbitmq/sarex-contour/rabbitmq.yaml | 84 - .../rabbitmq/yc-k8s-test/kustomization.yaml | 6 - .../rabbitmq/yc-k8s-test/rabbitmq.yaml | 42 - .../redis/yc-k8s-test/kustomization.yaml | 6 - infrastructure/redis/yc-k8s-test/redis.yaml | 27 - .../s3-proxy/yc-k8s-test/deployment.yaml | 105 - .../s3-proxy/yc-k8s-test/kustomization.yaml | 8 - .../s3-proxy/yc-k8s-test/s3-proxy.yaml | 7 - .../s3-proxy/yc-k8s-test/service.yaml | 17 - .../vault/sarex-contour/kustomization.yaml | 7 - .../vault/sarex-contour/vault-namespace.yaml | 6 - infrastructure/vault/sarex-contour/vault.yaml | 34 - .../vault/yc-k8s-test/kustomization.yaml | 6 - infrastructure/vault/yc-k8s-test/vault.yaml | 13 - .../zitadel/sarex-contour/kustomization.yaml | 6 - .../zitadel/sarex-contour/zitadel.yaml | 151 - .../zitadel/yc-k8s-test/kustomization.yaml | 6 - .../zitadel/yc-k8s-test/zitadel.yaml | 35 - 204 files changed, 16 insertions(+), 19860 deletions(-) delete mode 100644 apps/attachments/sarex-contour/kustomization.yaml delete mode 100644 apps/attachments/yc-k8s-test/kustomization.yaml delete mode 100644 apps/attachments/yc-k8s-test/postgresql.yaml delete mode 100644 apps/attachments/yc-k8s-test/replicas.yaml delete mode 100644 apps/auth-flow/sarex-contour/kustomization.yaml delete mode 100644 apps/auth-flow/yc-k8s-test/kustomization.yaml delete mode 100644 apps/auth-flow/yc-k8s-test/replicas.yaml delete mode 100644 apps/bi/sarex-contour/kustomization.yaml delete mode 100644 apps/bim/sarex-contour/kustomization.yaml delete mode 100644 apps/bim/yc-k8s-test/kustomization.yaml delete mode 100644 apps/bim/yc-k8s-test/postgresql.yaml delete mode 100644 apps/bim/yc-k8s-test/replicas.yaml delete mode 100644 apps/cde/yc-k8s-test/kustomization.yaml delete mode 100644 apps/cde/yc-k8s-test/replicas.yaml delete mode 100644 apps/checklists/sarex-contour/kustomization.yaml delete mode 100644 apps/checklists/yc-k8s-test/kustomization.yaml delete mode 100644 apps/checklists/yc-k8s-test/postgresql.yaml delete mode 100644 apps/comparisons/sarex-contour/kustomization.yaml delete mode 100644 apps/comparisons/yc-k8s-test/kustomization.yaml delete mode 100644 apps/comparisons/yc-k8s-test/postgresql.yaml delete mode 100644 apps/comparisons/yc-k8s-test/replicas.yaml delete mode 100644 apps/contracts/sarex-contour/kustomization.yaml delete mode 100644 apps/contracts/yc-k8s-test/kustomization.yaml delete mode 100644 apps/contracts/yc-k8s-test/postgresql.yaml delete mode 100644 apps/contracts/yc-k8s-test/replicas.yaml delete mode 100644 apps/control-interface/sarex-contour/kustomization.yaml delete mode 100644 apps/control-interface/sarex-contour/namespace.yaml delete mode 100644 apps/control-interface/yc-k8s-test/kustomization.yaml delete mode 100644 apps/control-interface/yc-k8s-test/replicas.yaml delete mode 100644 apps/cross-section/sarex-contour/kustomization.yaml delete mode 100644 apps/cross-section/yc-k8s-test/kustomization.yaml delete mode 100644 apps/cross-section/yc-k8s-test/replicas.yaml delete mode 100644 apps/django/sarex-contour/kustomization.yaml delete mode 100644 apps/django/sarex-contour/nginx-configmap.yaml delete mode 100644 apps/django/yc-k8s-test/kustomization.yaml delete mode 100644 apps/django/yc-k8s-test/postgresql.yaml delete mode 100644 apps/document-link/sarex-contour/kustomization.yaml delete mode 100644 apps/document-link/yc-k8s-test/kustomization.yaml delete mode 100644 apps/document-link/yc-k8s-test/replicas.yaml delete mode 100644 apps/documentations/sarex-contour/kustomization.yaml delete mode 100644 apps/documentations/yc-k8s-test/kustomization.yaml delete mode 100644 apps/documentations/yc-k8s-test/postgresql.yaml delete mode 100644 apps/drawings/sarex-contour/kustomization.yaml delete mode 100644 apps/drawings/yc-k8s-test/kustomization.yaml delete mode 100644 apps/drawings/yc-k8s-test/postgresql.yaml delete mode 100644 apps/drawings/yc-k8s-test/replicas.yaml delete mode 100644 apps/eav/sarex-contour/kustomization.yaml delete mode 100644 apps/eav/yc-k8s-test/kustomization.yaml delete mode 100644 apps/eav/yc-k8s-test/postgresql.yaml delete mode 100644 apps/eav/yc-k8s-test/replicas.yaml delete mode 100644 apps/faas/yc-k8s-test/kustomization.yaml delete mode 100644 apps/faas/yc-k8s-test/replicas.yaml delete mode 100644 apps/flows/sarex-contour/kustomization.yaml delete mode 100644 apps/flows/yc-k8s-test/kustomization.yaml delete mode 100644 apps/flows/yc-k8s-test/postgresql.yaml delete mode 100644 apps/iam/yc-k8s-test/kustomization.yaml delete mode 100644 apps/iam/yc-k8s-test/replicas.yaml delete mode 100644 apps/inspections/sarex-contour/kustomization.yaml delete mode 100644 apps/inspections/yc-k8s-test/kustomization.yaml delete mode 100644 apps/inspections/yc-k8s-test/postgresql.yaml delete mode 100644 apps/issues/sarex-contour/kustomization.yaml delete mode 100644 apps/issues/yc-k8s-test/kustomization.yaml delete mode 100644 apps/issues/yc-k8s-test/postgresql.yaml delete mode 100644 apps/mapper/sarex-contour/kustomization.yaml delete mode 100644 apps/mapper/yc-k8s-test/kustomization.yaml delete mode 100644 apps/mapper/yc-k8s-test/replicas.yaml delete mode 100644 apps/measurements/sarex-contour/kustomization.yaml delete mode 100644 apps/measurements/yc-k8s-test/kustomization.yaml delete mode 100644 apps/measurements/yc-k8s-test/replicas.yaml delete mode 100644 apps/message-hub/yc-k8s-test/kustomization.yaml delete mode 100644 apps/message-hub/yc-k8s-test/replicas.yaml delete mode 100644 apps/notes/sarex-contour/kustomization.yaml delete mode 100644 apps/notes/yc-k8s-test/kustomization.yaml delete mode 100644 apps/notes/yc-k8s-test/postgresql.yaml delete mode 100644 apps/notes/yc-k8s-test/replicas.yaml delete mode 100644 apps/pm/yc-k8s-test/kustomization.yaml delete mode 100644 apps/pm/yc-k8s-test/postgresql.yaml delete mode 100644 apps/pm/yc-k8s-test/redis-deployment.yaml delete mode 100644 apps/pm/yc-k8s-test/redis-service.yaml delete mode 100644 apps/prescriptions/sarex-contour/kustomization.yaml delete mode 100644 apps/prescriptions/yc-k8s-test/kustomization.yaml delete mode 100644 apps/prescriptions/yc-k8s-test/replicas.yaml delete mode 100644 apps/processing/yc-k8s-test/kustomization.yaml delete mode 100644 apps/processing/yc-k8s-test/postgresql.yaml delete mode 100644 apps/projects/sarex-contour/kustomization.yaml delete mode 100644 apps/projects/yc-k8s-test/kustomization.yaml delete mode 100644 apps/projects/yc-k8s-test/replicas.yaml delete mode 100644 apps/remarks/sarex-contour/kustomization.yaml delete mode 100644 apps/remarks/yc-k8s-test/kustomization.yaml delete mode 100644 apps/remarks/yc-k8s-test/replicas.yaml delete mode 100644 apps/resources/yc-k8s-test/kustomization.yaml delete mode 100644 apps/resources/yc-k8s-test/postgresql.yaml delete mode 100644 apps/resources/yc-k8s-test/replicas.yaml delete mode 100644 apps/reviews/sarex-contour/kustomization.yaml delete mode 100644 apps/reviews/yc-k8s-test/kustomization.yaml delete mode 100644 apps/reviews/yc-k8s-test/replicas.yaml delete mode 100644 apps/rfi/sarex-contour/kustomization.yaml delete mode 100644 apps/rfi/yc-k8s-test/kustomization.yaml delete mode 100644 apps/rfi/yc-k8s-test/postgresql.yaml delete mode 100644 apps/stamp-verification/sarex-contour/kustomization.yaml delete mode 100644 apps/stamp-verification/yc-k8s-test/kustomization.yaml delete mode 100644 apps/stamp-verification/yc-k8s-test/replicas.yaml delete mode 100644 apps/subscriptions/sarex-contour/kustomization.yaml delete mode 100644 apps/subscriptions/yc-k8s-test/kustomization.yaml delete mode 100644 apps/subscriptions/yc-k8s-test/postgresql.yaml delete mode 100644 apps/system-log/sarex-contour/kustomization.yaml delete mode 100644 apps/system-log/yc-k8s-test/kustomization.yaml delete mode 100644 apps/system-log/yc-k8s-test/postgresql.yaml delete mode 100644 apps/transmittal/yc-k8s-test/kustomization.yaml delete mode 100644 apps/transmittal/yc-k8s-test/postgresql.yaml delete mode 100644 apps/workspaces/sarex-contour/kustomization.yaml delete mode 100644 apps/workspaces/yc-k8s-test/kustomization.yaml delete mode 100644 apps/workspaces/yc-k8s-test/postgresql.yaml delete mode 100644 apps/workspaces/yc-k8s-test/replicas.yaml delete mode 100644 clusters/sarex-contour/flux-system/gotk-components.yaml delete mode 100644 clusters/sarex-contour/flux-system/gotk-sync.yaml delete mode 100644 clusters/sarex-contour/flux-system/kustomization.yaml delete mode 100644 clusters/sarex-contour/helm-repositories.yaml delete mode 100644 clusters/sarex-contour/kustomization.yaml delete mode 100644 clusters/yc-k8s-test/bootstrap-jobs/kustomization.yaml delete mode 100644 clusters/yc-k8s-test/bootstrap-jobs/service-bootstrap-jobs.yaml delete mode 100644 clusters/yc-k8s-test/flux-system/gotk-components.yaml delete mode 100644 clusters/yc-k8s-test/flux-system/gotk-sync.yaml delete mode 100644 clusters/yc-k8s-test/flux-system/kustomization.yaml delete mode 100644 clusters/yc-k8s-test/helm-repositories.yaml delete mode 100644 clusters/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/camunda/yc-k8s-test/camunda.yaml delete mode 100644 infrastructure/camunda/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/cert-manager/yc-k8s-test/cert-manager.yaml delete mode 100644 infrastructure/cert-manager/yc-k8s-test/clusterissuer-letsencrypt-istio.yaml delete mode 100644 infrastructure/cert-manager/yc-k8s-test/clusterissuer-letsencrypt.yaml delete mode 100644 infrastructure/cert-manager/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/dashboard/yc-k8s-test/dashboard.yaml delete mode 100644 infrastructure/dashboard/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/glitchtip/yc-k8s-test/glitchtip.yaml delete mode 100644 infrastructure/glitchtip/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/istio-base/sarex-contour/kustomization.yaml delete mode 100644 infrastructure/istio-base/yc-k8s-test/istio-base.yaml delete mode 100644 infrastructure/istio-base/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/istio-config/yc-k8s-test/istio-config.yaml delete mode 100644 infrastructure/istio-config/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/istio-gateway/sarex-contour/istio-gateway.yaml delete mode 100644 infrastructure/istio-gateway/sarex-contour/kustomization.yaml delete mode 100644 infrastructure/istio-gateway/yc-k8s-test/istio-gateway.yaml delete mode 100644 infrastructure/istio-gateway/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/istio-pilot/sarex-contour/istio-pilot.yaml delete mode 100644 infrastructure/istio-pilot/sarex-contour/kustomization.yaml delete mode 100644 infrastructure/istio-pilot/yc-k8s-test/istio-pilot.yaml delete mode 100644 infrastructure/istio-pilot/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/kafka/sarex-contour/kafka.yaml delete mode 100644 infrastructure/kafka/sarex-contour/kustomization.yaml delete mode 100644 infrastructure/kafka/yc-k8s-test/kafka.yaml delete mode 100644 infrastructure/kafka/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/keycloak/yc-k8s-test/keycloak.yaml delete mode 100644 infrastructure/keycloak/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/local-path-provisioner/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/local-path-provisioner/yc-k8s-test/local-path-provisioner.yaml delete mode 100644 infrastructure/minio/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/minio/yc-k8s-test/minio.yaml delete mode 100644 infrastructure/openldap/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/openldap/yc-k8s-test/openldap.yaml delete mode 100644 infrastructure/openobserve/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/openobserve/yc-k8s-test/openobserve.yaml delete mode 100644 infrastructure/opentelemetry-collector/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/opentelemetry-collector/yc-k8s-test/opentelemetry-collector.yaml delete mode 100644 infrastructure/opentelemetry-collector/yc-k8s-test/signoz-compat.yaml delete mode 100644 infrastructure/opentelemetry-operator/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/opentelemetry-operator/yc-k8s-test/opentelemetry-operator.yaml delete mode 100644 infrastructure/postgresql/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/postgresql/yc-k8s-test/postgresql.yaml delete mode 100644 infrastructure/rabbitmq/sarex-contour/kustomization.yaml delete mode 100644 infrastructure/rabbitmq/sarex-contour/rabbitmq.yaml delete mode 100644 infrastructure/rabbitmq/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/rabbitmq/yc-k8s-test/rabbitmq.yaml delete mode 100644 infrastructure/redis/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/redis/yc-k8s-test/redis.yaml delete mode 100644 infrastructure/s3-proxy/yc-k8s-test/deployment.yaml delete mode 100644 infrastructure/s3-proxy/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/s3-proxy/yc-k8s-test/s3-proxy.yaml delete mode 100644 infrastructure/s3-proxy/yc-k8s-test/service.yaml delete mode 100644 infrastructure/vault/sarex-contour/kustomization.yaml delete mode 100644 infrastructure/vault/sarex-contour/vault-namespace.yaml delete mode 100644 infrastructure/vault/sarex-contour/vault.yaml delete mode 100644 infrastructure/vault/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/vault/yc-k8s-test/vault.yaml delete mode 100644 infrastructure/zitadel/sarex-contour/kustomization.yaml delete mode 100644 infrastructure/zitadel/sarex-contour/zitadel.yaml delete mode 100644 infrastructure/zitadel/yc-k8s-test/kustomization.yaml delete mode 100644 infrastructure/zitadel/yc-k8s-test/zitadel.yaml diff --git a/CLAUDE.md b/CLAUDE.md index 3274cc8..a209338 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -25,7 +25,7 @@ | Путь | Что | |---|---| -| `clusters/` | 17 точек входа Flux + шаблон `contour` — **источник истины «что где раскатано»** | +| `clusters/` | Точки входа Flux + шаблон `contour` — **источник истины «что где раскатано»** | | `infrastructure/` | 44 платформенных компонента | | `apps/` | 39 прикладных сервисов | | `docs/apps/` | 34 mermaid-диаграммы по сервисам + `README.md` с доменной группировкой | @@ -40,12 +40,12 @@ **Кластер.** `clusters//kustomization.yaml` — плоский список `../../apps//`. Инфраструктура подключается двумя разными способами: -- `d8-ugmk-prod`, `sarex-contour`, `ugok`, `uralkal`, `vad` — прямо в корневом kustomization как `../../infrastructure//`; +- `d8-ugmk-prod`, `ugok`, `uralkal`, `vad` — прямо в корневом kustomization как `../../infrastructure//`; - `brusnika-prod`, `brusnika-stage`, `vk-infra`, `vk-prod` — через `clusters//infrastructure/kustomization.yaml`, который ссылается на оверлеи `../../../infrastructure//` (`base` + патч HelmRelease + сопутствующие манифесты компонента); - `wb`, `yc-cps-prod`, `yc-infra-prod`, `yc-k8s-test-02` — через `clusters//infrastructure/kustomization.yaml`, который ссылается на `../../../infrastructure/` (резолвится в `base`), а различия лежат в `clusters//infrastructure/patches/*.yaml`; - `stand` — послойно: `layers.yaml` объявляет Flux-`Kustomization` `00-vault → 10-mesh → 20-data → 30-platform → 40-routing` (каталоги `clusters/stand/-/`). Слои ссылаются на оверлеи `infrastructure//contour-template`, а значения контура (`${STORAGE_CLASS}`, `${HOST_*}`, `${GATEWAY_REPLICAS}`) Flux подставляет через `postBuild.substituteFrom` из ConfigMap `contour-vars`. -Кластеры с приложениями: `asterus`, `brusnika-prod`, `brusnika-stage`, `d8-ugmk-prod`, `sarex-contour`, `ugok`, `uralkal`, `vad`, `wb`, `yc-ecp`, `yc-k8s-test`. Только инфраструктура: `stand`, `vk-infra`, `vk-prod`, `yc-cps-prod`, `yc-infra-prod`, `yc-k8s-test-02`. Шаблон: `contour`. +Кластеры с приложениями: `asterus`, `brusnika-prod`, `brusnika-stage`, `d8-ugmk-prod`, `ugok`, `uralkal`, `vad`, `wb`, `yc-ecp`. Только инфраструктура: `stand`, `vk-infra`, `vk-prod`, `yc-cps-prod`, `yc-infra-prod`, `yc-k8s-test-02`. Шаблон: `contour`. **Приложение.** `apps//base/` — по одному `.yaml` на процесс (`backend.yaml`, `celery.yaml`, `frontend.yaml`) плюс `namespace.yaml`; оверлеи в `apps///`. Namespace = имя приложения. Рядом с манифестами лежит документация: `CONFIGURATION.md` (все env-переменные и откуда берутся), `ENDPOINTS.md` (исходящие HTTP-вызовы), `openapi.yaml` (входящий контракт), `.env.example`. Если процессов несколько — файлы с префиксом процесса: `api.ENDPOINTS.md`, `pdm.CONFIGURATION.md`, `frontend.CONFIGURATION.md`. @@ -73,7 +73,7 @@ ## Ловушки - **`dsinv/`** — оверлей есть у 25 приложений, но `clusters/dsinv/` не существует. Это материализованный снимок живого контура WB, а не источник деплоя. Развёрнутым не считать. -- **Две несовместимые конвенции оверлеев** (`IAC-CATALOG.md` §5.3.4). `d8-ugmk-prod`, `yc-k8s-test`, `vad`, `uralkal`, `sarex-contour`, `dsinv` наследуют `base` и патчат его. `brusnika-prod`, `brusnika-stage`, `yc-ecp`, `asterus` — полные копии HelmRelease, которые молча дрейфуют от base. Правка `base` на них не влияет. **`wb` (4 из 27) и `ugok` (9 из 33) смешанные** — проверяйте `resources:` конкретного оверлея; в `ugok` причина обычно указана комментарием в его `kustomization.yaml`. +- **Две несовместимые конвенции оверлеев** (`IAC-CATALOG.md` §5.3.4). `d8-ugmk-prod`, `vad`, `uralkal`, `dsinv` наследуют `base` и патчат его. `brusnika-prod`, `brusnika-stage`, `yc-ecp`, `asterus` — полные копии HelmRelease, которые молча дрейфуют от base. Правка `base` на них не влияет. **`wb` (4 из 27) и `ugok` (9 из 33) смешанные** — проверяйте `resources:` конкретного оверлея; в `ugok` причина обычно указана комментарием в его `kustomization.yaml`. - **`asterus` подключён почти пустым**: оверлеи есть у 26 приложений, но в `clusters/asterus/kustomization.yaml` активен только `auth-flow`, остальные закомментированы. Инфраструктуры в кластере нет. - **Слайс публикуется для каждого `clusters/*/kustomization.yaml`** — в том числе для тестовых и инфраструктурных кластеров. Новая папка в `clusters/` с этим файлом автоматически станет слайсом на следующем теге. У `contour` такого файла нет, поэтому для него слайс не собирается. - **`IAC-CATALOG.md` — снимок на 05.08.2026** и по составу приложений на контур уже расходится с реальностью (там у `wb` ноль приложений, фактически 26 оверлеев). Всегда сверяться с `clusters/*/kustomization.yaml`. @@ -82,7 +82,7 @@ - **Path-роутинг лежит в `infrastructure/istio-config//` у большинства контуров, но не у WB.** В `clusters/wb/infrastructure/patches/istio-config.yaml` через Istio публикуются только платформенные UI (Gitea, Grafana, OpenObserve, Superset, Vault, GoAlert), а прикладной трафик разводится вне репозитория. В Brusnika схема смешанная: часть путей идёт напрямую в сервисы, остальное — одним правилом в `yet-another-nginx-service.global-ingress`. - **`vk-prod` маршрутизирует в namespace с суффиксом `-prod`** (`eav-prod`, `pm-prod`, `inspections-prod`), а приложений из `apps/` в этом кластере нет: сервисы раскатываются не этим репозиторием. - **Имена namespace расходятся между источниками**: `inventory.yaml` и `vk-prod` используют суффикс (`flows-prod`), `apps/` — голое имя (`flows`). -- **66 оверлеев приложений не подключены ни к одному кластеру**: 25 — `dsinv`, 25 — закомментированные в `asterus`, остальные 16 — мёртвый код (в основном `brusnika-prod`, плюс `bi`/`iam` в `wb` и `yc-k8s-test`). +- Некоторые оверлеи приложений не подключены к кластерам: например, `dsinv`, закомментированные приложения `asterus` и отдельные оверлеи других контуров. Наличие оверлея само по себе не означает развёртывание. - **Нет диаграмм** в `docs/apps/` для `ams-sync`, `auth-flow`, `bi`, `iam`, `premises`. - **Чистые фронтенды без бэкенда в этом репозитории**: `auth-flow`, `control-interface`, `cross-section`, `document-link`, `prescriptions`, `projects`, `remarks`, `reviews`, `stamp-verification`. Бэкенд `projects` живёт в `planning/projects-backend`. - Самые центральные сервисы по числу входящих ссылок: `documentations` (~85), `processing` / `workflow` (~76), `django` (~53), `eav` (~47), `resources` (~44), `bim` (~39), `flows` (~38). Менять их конфигурацию — дороже всего. diff --git a/IAC-CATALOG.md b/IAC-CATALOG.md index 7b32002..dba13fd 100644 --- a/IAC-CATALOG.md +++ b/IAC-CATALOG.md @@ -5,6 +5,7 @@ - Источники: GitLab-группа `infra` (209 проектов, включая подгруппы) + содержимое `infra/iac`. - Дата среза: **2026-08-05**. +- Обновление 2026-11-25: контуры `sarex-contour` и `yc-k8s-test` выведены из эксплуатации, их конфигурации удалены. Упоминания ниже относятся к историческому срезу; `yc-k8s-test-02` сохранён. - Все ссылки — на `https://gitlab.sarex.io`. Пометки достоверности: diff --git a/apps/attachments/sarex-contour/kustomization.yaml b/apps/attachments/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/attachments/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/attachments/yc-k8s-test/kustomization.yaml b/apps/attachments/yc-k8s-test/kustomization.yaml deleted file mode 100644 index ba59f3e..0000000 --- a/apps/attachments/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: [] -# - path: replicas.yaml -# target: -# kind: HelmRelease -# name: attachments diff --git a/apps/attachments/yc-k8s-test/postgresql.yaml b/apps/attachments/yc-k8s-test/postgresql.yaml deleted file mode 100644 index f3c8b55..0000000 --- a/apps/attachments/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,122 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: attachments -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: attachments_db - user: attachments - passwordKey: attachments - extensions: [] - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/attachments/288/attachments_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/attachments/yc-k8s-test/replicas.yaml b/apps/attachments/yc-k8s-test/replicas.yaml deleted file mode 100644 index bc79b3e..0000000 --- a/apps/attachments/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: attachments - namespace: attachments -spec: - values: - services: - attachments: - deployment: - replicaCount: - _default: 2 diff --git a/apps/auth-flow/sarex-contour/kustomization.yaml b/apps/auth-flow/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/auth-flow/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/auth-flow/yc-k8s-test/kustomization.yaml b/apps/auth-flow/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 037075a..0000000 --- a/apps/auth-flow/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: [] -# - path: replicas.yaml -# target: -# kind: HelmRelease -# name: frontend diff --git a/apps/auth-flow/yc-k8s-test/replicas.yaml b/apps/auth-flow/yc-k8s-test/replicas.yaml deleted file mode 100644 index ce58b54..0000000 --- a/apps/auth-flow/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: frontend - namespace: auth-flow -spec: - values: - services: - frontend: - deployment: - replicaCount: - _default: 1 diff --git a/apps/bi/sarex-contour/kustomization.yaml b/apps/bi/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/bi/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/bim/CONFIGURATION.md b/apps/bim/CONFIGURATION.md index 0533372..1999f5d 100644 --- a/apps/bim/CONFIGURATION.md +++ b/apps/bim/CONFIGURATION.md @@ -154,7 +154,7 @@ Slave-2 кластер — те же поля с суффиксом `_3`: - `base/backend-deployment.yaml` — Deployment `backend` в namespace `bim`, образ `bim-api`, `containerPort: 8000`, `API_ADDRESS=0.0.0.0:8000`, health-проба `GET /ping`. - Секреты PostgreSQL инъектируются **из Vault** (аннотации `vault.hashicorp.com/*`, роль `bim`, путь `secrets/data/postgresql/apps/bim`) в файл `/vault/secrets/bim-postgresql`, который экспортируется в окружение перед запуском (`set -a; . /vault/secrets/bim-postgresql; set +a; exec ./httpserver`). Шаблон Vault задаёт `POSTGRES_ADDRESS[_2../_4]`, `POSTGRES_PORT*`, `POSTGRES_DB*` (все указывают на `postgresql.bim.svc.cluster.local:5432`, БД `bim_db`) и `POSTGRES_USER*`/`POSTGRES_PASSWORD*` из Vault. - Прочие env заданы прямо в манифесте: `LAST_MASTER_BIM`, `LAST_MASTER_BIM_V3`, `LAST_SLAVE_1_BIM`, `POSTGRES_POOL_SIZE`, `DB_CERT_PATH_2/3/4`, `DJANGO_HOST` (`http://backend.django.svc.cluster.local:8000`), `ENABLE_SQL_QUERY=0`, `ENABLE_SSL=0`. -- Оверлеи `brusnika-prod`, `brusnika-stage`, `yc-k8s-test` патчат base (реплики, образ, postgresql). +- Оверлеи `brusnika-prod`, `brusnika-stage` патчат base (реплики, образ, postgresql). ## Переменные в CI (`.gitlab-ci.yml`) diff --git a/apps/bim/sarex-contour/kustomization.yaml b/apps/bim/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/bim/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/bim/yc-k8s-test/kustomization.yaml b/apps/bim/yc-k8s-test/kustomization.yaml deleted file mode 100644 index c8f7064..0000000 --- a/apps/bim/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: - - path: replicas.yaml - target: - kind: HelmRelease - name: backend diff --git a/apps/bim/yc-k8s-test/postgresql.yaml b/apps/bim/yc-k8s-test/postgresql.yaml deleted file mode 100644 index 9c5fecc..0000000 --- a/apps/bim/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,126 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: bim -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - strategy: uninstall - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: bim_db - user: bim - passwordKey: bim - extensions: - - ltree - - timescaledb - - uuid-ossp - - pg_partman - restoreFromDump: false - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/bim/yc-k8s-test/replicas.yaml b/apps/bim/yc-k8s-test/replicas.yaml deleted file mode 100644 index b620579..0000000 --- a/apps/bim/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: backend - namespace: bim -spec: - values: - services: - backend: - deployment: - replicaCount: - _default: 1 diff --git a/apps/cde/CONFIGURATION.md b/apps/cde/CONFIGURATION.md index 7e162fa..e9b2231 100644 --- a/apps/cde/CONFIGURATION.md +++ b/apps/cde/CONFIGURATION.md @@ -202,7 +202,7 @@ В `iac/apps/cde` секреты доставляются не через `secretEnvs` чарта, а через **Vault Agent Injector**: аннотации подов монтируют секрет `secrets/data/vault/apps/cde` в файл `/vault/secrets/cde-env`, который экспортируется перед запуском (`source /vault/secrets/cde-env`, затем `exec /http` или `/worker`). Дополнительно контейнерам задаётся `S3_IS_CONTOUR=true` (примечание: в коде используется переменная `IS_CONTOUR`). -Оверлеи: `base` (общие манифесты), `brusnika-stage`, `brusnika-prod`, `yc-k8s-test`. +Оверлеи: `base` (общие манифесты), `brusnika-stage`, `brusnika-prod`. ## Замечания и потенциальные проблемы diff --git a/apps/cde/yc-k8s-test/kustomization.yaml b/apps/cde/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 85195ca..0000000 --- a/apps/cde/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: [] -# - path: replicas.yaml -# target: -# kind: Deployment -# name: frontend diff --git a/apps/cde/yc-k8s-test/replicas.yaml b/apps/cde/yc-k8s-test/replicas.yaml deleted file mode 100644 index 6982932..0000000 --- a/apps/cde/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: backend - namespace: cde -spec: - replicas: 1 diff --git a/apps/checklists/sarex-contour/kustomization.yaml b/apps/checklists/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/checklists/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/checklists/yc-k8s-test/kustomization.yaml b/apps/checklists/yc-k8s-test/kustomization.yaml deleted file mode 100644 index e601931..0000000 --- a/apps/checklists/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: [] diff --git a/apps/checklists/yc-k8s-test/postgresql.yaml b/apps/checklists/yc-k8s-test/postgresql.yaml deleted file mode 100644 index c81e2d4..0000000 --- a/apps/checklists/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,124 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: checklists -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: checklists_db - user: checklists - passwordKey: checklists - extensions: - - pg_stat_statements - - uuid-ossp - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/checklists/288/checklists_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/comparisons/CONFIGURATION.md b/apps/comparisons/CONFIGURATION.md index 6cf383b..2e1b7b8 100644 --- a/apps/comparisons/CONFIGURATION.md +++ b/apps/comparisons/CONFIGURATION.md @@ -117,7 +117,7 @@ ## Развёртывание через Kustomize (этот репозиторий, `apps/comparisons`) -Структура: `base` (общие манифесты) и оверлеи `brusnika-stage`, `brusnika-prod`, `yc-k8s-test`. Секреты БД и публичный JWT-ключ подтягиваются из **HashiCorp Vault** (аннотации `vault.hashicorp.com/*` в `base/backend-deployment.yaml`), а не из k8s-секретов. +Структура: `base` (общие манифесты) и оверлеи `brusnika-stage`, `brusnika-prod`. Секреты БД и публичный JWT-ключ подтягиваются из **HashiCorp Vault** (аннотации `vault.hashicorp.com/*` в `base/backend-deployment.yaml`), а не из k8s-секретов. > **Важно: расхождение схем переменных.** Манифест `base/backend-deployment.yaml` использует другой (более новый) набор имён переменных, чем Go-код из `comparisons-backend` (`config/config.go`): напр. `HTTP_PORT`, `LOGGER_LOG_LEVEL`, `DATABASE_NAME`, `DOCUMENTATIONS_INTERNAL_HOST`, `DOCUMENTATIONS_EXTERNAL_HOST`, `WORKFLOWS_HOST`, `WORKFLOWS_DJANGO_HOST`, `WORKFLOWS_BIMV2_INTERNAL_HOST`, `WORKSPACES_HOST`, `EAV_HOST`, `APP_NAME`, `AUTH_PUBLIC_KEY`, `WORKFLOWS_CONFIG_FILEPATH` и др., а также `/ping` в health-проверках и образ `comparisons_backend_prod`. Такой схемы нет в Go-репозитории. Перед использованием этих файлов стоит убедиться, какой именно образ бэкенда деплоится оверлеем: если это Go-сервис из `comparisons-backend`, набор env нужно привести к именам из таблиц выше. diff --git a/apps/comparisons/sarex-contour/kustomization.yaml b/apps/comparisons/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/comparisons/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/comparisons/yc-k8s-test/kustomization.yaml b/apps/comparisons/yc-k8s-test/kustomization.yaml deleted file mode 100644 index c8f7064..0000000 --- a/apps/comparisons/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: - - path: replicas.yaml - target: - kind: HelmRelease - name: backend diff --git a/apps/comparisons/yc-k8s-test/postgresql.yaml b/apps/comparisons/yc-k8s-test/postgresql.yaml deleted file mode 100644 index 5b06b74..0000000 --- a/apps/comparisons/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,122 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: comparisons -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: comparisons_db - user: comparisons - passwordKey: comparisons - extensions: [] - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/comparisons/288/comparisons_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/comparisons/yc-k8s-test/replicas.yaml b/apps/comparisons/yc-k8s-test/replicas.yaml deleted file mode 100644 index bed52f6..0000000 --- a/apps/comparisons/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: backend - namespace: comparisons -spec: - values: - services: - backend: - deployment: - replicaCount: - _default: 1 diff --git a/apps/contracts/sarex-contour/kustomization.yaml b/apps/contracts/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/contracts/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/contracts/yc-k8s-test/kustomization.yaml b/apps/contracts/yc-k8s-test/kustomization.yaml deleted file mode 100644 index ffc9d1c..0000000 --- a/apps/contracts/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: [] -# - path: replicas.yaml -# target: -# kind: Deployment -# name: backend diff --git a/apps/contracts/yc-k8s-test/postgresql.yaml b/apps/contracts/yc-k8s-test/postgresql.yaml deleted file mode 100644 index c1ddc15..0000000 --- a/apps/contracts/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,126 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: contracts -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - resources: - requests: - cpu: 50m - memory: 128Mi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: contracts_db - user: contracts - passwordKey: contracts - extensions: - - btree_gist - - ltree - - pg_stat_statements - - uuid-ossp - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/contracts/288/contracts_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/contracts/yc-k8s-test/replicas.yaml b/apps/contracts/yc-k8s-test/replicas.yaml deleted file mode 100644 index 5e678e5..0000000 --- a/apps/contracts/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: backend -spec: - replicas: 1 diff --git a/apps/control-interface/sarex-contour/kustomization.yaml b/apps/control-interface/sarex-contour/kustomization.yaml deleted file mode 100644 index 611577f..0000000 --- a/apps/control-interface/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: control-interface -resources: - - ../base - - namespace.yaml diff --git a/apps/control-interface/sarex-contour/namespace.yaml b/apps/control-interface/sarex-contour/namespace.yaml deleted file mode 100644 index c9b0e54..0000000 --- a/apps/control-interface/sarex-contour/namespace.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: control-interface - labels: - istio-injection: enabled diff --git a/apps/control-interface/yc-k8s-test/kustomization.yaml b/apps/control-interface/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 1409ba9..0000000 --- a/apps/control-interface/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: django -resources: - - ../base -patches: - - path: replicas.yaml - target: - kind: HelmRelease - name: srx-admin diff --git a/apps/control-interface/yc-k8s-test/replicas.yaml b/apps/control-interface/yc-k8s-test/replicas.yaml deleted file mode 100644 index 9b697c3..0000000 --- a/apps/control-interface/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: srx-admin - namespace: django -spec: - values: - services: - frontend: - deployment: - replicaCount: - _default: 1 diff --git a/apps/cross-section/sarex-contour/kustomization.yaml b/apps/cross-section/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/cross-section/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/cross-section/yc-k8s-test/kustomization.yaml b/apps/cross-section/yc-k8s-test/kustomization.yaml deleted file mode 100644 index e62ad10..0000000 --- a/apps/cross-section/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: replicas.yaml - target: - kind: HelmRelease - name: cross-section-static diff --git a/apps/cross-section/yc-k8s-test/replicas.yaml b/apps/cross-section/yc-k8s-test/replicas.yaml deleted file mode 100644 index 8a2a9db..0000000 --- a/apps/cross-section/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: cross-section-static - namespace: cross-section -spec: - values: - services: - frontend: - deployment: - replicaCount: - _default: 1 diff --git a/apps/django/CONFIGURATION.md b/apps/django/CONFIGURATION.md index f5d6c23..c7ee798 100644 --- a/apps/django/CONFIGURATION.md +++ b/apps/django/CONFIGURATION.md @@ -288,7 +288,7 @@ Module Federation) конфигурируется отдельно на этап ## Конфигурация в кластере (Kubernetes) Манифесты приложения — в этом же каталоге (`base/`, оверлеи `brusnika-stage`, -`brusnika-prod`, `yc-k8s-test`). Секреты монтируются через **Vault Agent Injector** +`brusnika-prod`). Секреты монтируются через **Vault Agent Injector** (аннотации `vault.hashicorp.com/*` на Deployment `backend` и `celery`). Файлы секретов в контейнере и их содержимое: diff --git a/apps/django/sarex-contour/kustomization.yaml b/apps/django/sarex-contour/kustomization.yaml deleted file mode 100644 index a433cb3..0000000 --- a/apps/django/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: nginx-configmap.yaml - target: - kind: ConfigMap - name: nginx-configmap diff --git a/apps/django/sarex-contour/nginx-configmap.yaml b/apps/django/sarex-contour/nginx-configmap.yaml deleted file mode 100644 index 8f5ce4a..0000000 --- a/apps/django/sarex-contour/nginx-configmap.yaml +++ /dev/null @@ -1,160 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: nginx-configmap - namespace: django -data: - nginx.conf: | - worker_processes auto; - - pid /var/run/nginx.pid; - - events { - use epoll; - worker_connections 1024; - } - - http { - - # Basic Settings - large_client_header_buffers 8 128k; - sendfile on; - tcp_nopush on; - tcp_nodelay on; - keepalive_timeout 300; - types_hash_max_size 2048; - client_max_body_size 5000M; - client_header_buffer_size 5M; - include /etc/nginx/mime.types; - default_type application/octet-stream; - - # Logging Settings - access_log /var/log/nginx/access.log; - error_log /var/log/nginx/error.log; - - # GZIP Settings - gzip on; - gzip_vary on; - gzip_proxied any; - gzip_comp_level 6; - gzip_buffers 16 8k; - gzip_http_version 1.1; - gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - server { - listen 80; - listen [::]:80; - root /opt/react_client/; - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Methods' '*' always; - add_header 'Access-Control-Allow-Headers' '*' always; - - location = /static/index.bundle.js { - add_header Cache-Control 'no-store no-cache, must-revalidate, proxy-revalidate, max-age=0'; - if_modified_since off; - expires off; - } - - # location ~^/api/pm/ { - # proxy_http_version 1.1; - # proxy_set_header Connection ""; - # proxy_set_header Host $host; - # proxy_pass http://backend-svc.pm.svc.cluster.local:8000; - # } - - # location ~^/api/v1/documents/ { - # proxy_http_version 1.1; - # proxy_set_header Host $host; - # proxy_pass http://backend-filestream-svc.documentations.svc.cluster.local:80; - # } - - location ~^/(api|admin)/ { - proxy_http_version 1.1; - proxy_set_header Connection ""; - proxy_set_header Host $host; - proxy_pass http://backend-svc.django.svc.cluster.local:80; - } - - location = /static/pdf-runtime/assets/mupdf-wasm.wasm { - alias /opt/react_client/static/pdf-runtime/assets/mupdf-wasm.wasm; - add_header Content-Type application/wasm always; - add_header Cache-Control "public, max-age=31536000, immutable" always; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, OPTIONS" always; - add_header Access-Control-Allow-Headers "DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization" always; - } - - location = /workspaces-v2/worker/static/viewer-pdf/mupdf-wasm.js { - alias /opt/react_client/static/viewer-pdf/mupdf-wasm.js; - add_header Content-Type application/javascript always; - add_header Cache-Control "public, max-age=31536000, immutable" always; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, OPTIONS" always; - add_header Access-Control-Allow-Headers "DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization" always; - } - - location = /workspaces-v2/worker/mupdf.worker-3.3.9.js { - alias /opt/react_client/static/pdf-runtime/mupdf.worker-3.3.9.js; - add_header Content-Type application/javascript always; - add_header Cache-Control "public, max-age=31536000, immutable" always; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, OPTIONS" always; - add_header Access-Control-Allow-Headers "DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization" always; - } - - location = /workspaces-v2/worker/static/viewer-pdf/mupdf.js { - alias /opt/react_client/static/viewer-pdf/mupdf.js; - add_header Content-Type application/javascript always; - add_header Cache-Control "public, max-age=31536000, immutable" always; - add_header Access-Control-Allow-Origin "*" always; - add_header Access-Control-Allow-Methods "GET, OPTIONS" always; - add_header Access-Control-Allow-Headers "DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization" always; - } - - location = /workspaces-v2/worker/static/viewer-pdf/mupdf-wasm.wasm { - add_header Content-Type application/wasm always; - alias /opt/react_client/static/viewer-pdf/mupdf-wasm.wasm; - } - - location ~^/workspaces-v2/(.+).js { - proxy_http_version 1.1; - proxy_set_header Connection ""; - rewrite /workspaces-v2/(.+) /$1 break; - proxy_pass http://frontend-svc.workspaces.svc.cluster.local:80; - } - - location ~^/workspaces-v2/(.+)\.wasm$ { - proxy_http_version 1.1; - proxy_set_header Connection ""; - rewrite ^/workspaces-v2/(.+) /$1 break; - proxy_pass http://frontend-svc.workspaces.svc.cluster.local:80; - } - - location @index { - add_header Cache-Control 'no-cache, must-revalidate, proxy-revalidate, max-age=0'; - if_modified_since off; - expires off; - try_files /static/index.html =404; - } - - # location ~^/workflows/(.+).js { - # proxy_http_version 1.1; - # proxy_set_header Connection ""; - # rewrite /workflows/(.+) /$1 break; - # proxy_pass http://frontend-svc.processing.svc.cluster.local:80; - # } - - location /service-worker.js { - try_files /static/$uri @index; - } - - location / { - try_files $uri @index; - } - } - } diff --git a/apps/django/yc-k8s-test/kustomization.yaml b/apps/django/yc-k8s-test/kustomization.yaml deleted file mode 100644 index e601931..0000000 --- a/apps/django/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: [] diff --git a/apps/django/yc-k8s-test/postgresql.yaml b/apps/django/yc-k8s-test/postgresql.yaml deleted file mode 100644 index f68560c..0000000 --- a/apps/django/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,124 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: django -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: sarex_db - user: sarex - passwordKey: sarex - extensions: - - ltree - - pg_stat_statements - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/sarex_db/288/sarex_db_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/document-link/CONFIGURATION.md b/apps/document-link/CONFIGURATION.md index 6a6ea7d..6e3aeeb 100644 --- a/apps/document-link/CONFIGURATION.md +++ b/apps/document-link/CONFIGURATION.md @@ -63,7 +63,6 @@ | `base` | kustomize (`Deployment` + `Service` + `Namespace`) | namespace `document-link` c `istio-injection: enabled`; `Deployment/frontend` | | `brusnika-stage` | FluxCD `HelmRelease` → `universal-chart` `0.1.7` | `replicaCount`: stage `1`; probes выключены | | `brusnika-prod` | FluxCD `HelmRelease` → `universal-chart` `0.1.7` | `replicaCount`: preprod/production `3`; probes выключены | -| `yc-k8s-test` | kustomize (`../base`) | тестовый контур | Порты сервиса: в `universal-chart` — `service.port 8080` → `targetPort 3000` (`portName: http`); в `base/service.yaml` — `port 80` → `targetPort 80`. diff --git a/apps/document-link/sarex-contour/kustomization.yaml b/apps/document-link/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/document-link/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/document-link/yc-k8s-test/kustomization.yaml b/apps/document-link/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 85195ca..0000000 --- a/apps/document-link/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: [] -# - path: replicas.yaml -# target: -# kind: Deployment -# name: frontend diff --git a/apps/document-link/yc-k8s-test/replicas.yaml b/apps/document-link/yc-k8s-test/replicas.yaml deleted file mode 100644 index dc08800..0000000 --- a/apps/document-link/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: document-link -spec: - replicas: 1 diff --git a/apps/documentations/sarex-contour/kustomization.yaml b/apps/documentations/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/documentations/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/documentations/yc-k8s-test/kustomization.yaml b/apps/documentations/yc-k8s-test/kustomization.yaml deleted file mode 100644 index e601931..0000000 --- a/apps/documentations/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: [] diff --git a/apps/documentations/yc-k8s-test/postgresql.yaml b/apps/documentations/yc-k8s-test/postgresql.yaml deleted file mode 100644 index 45344b6..0000000 --- a/apps/documentations/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,126 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: documentations -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: documentations_db - user: documentations - passwordKey: documentations - extensions: - - ltree - - pg_stat_statements - - timescaledb - - uuid-ossp - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/documentations/288/documentations_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/drawings/sarex-contour/kustomization.yaml b/apps/drawings/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/drawings/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/drawings/yc-k8s-test/kustomization.yaml b/apps/drawings/yc-k8s-test/kustomization.yaml deleted file mode 100644 index df62dc0..0000000 --- a/apps/drawings/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: - - path: replicas.yaml - target: - kind: HelmRelease - name: backend \ No newline at end of file diff --git a/apps/drawings/yc-k8s-test/postgresql.yaml b/apps/drawings/yc-k8s-test/postgresql.yaml deleted file mode 100644 index 0237193..0000000 --- a/apps/drawings/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,124 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: drawings -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: drawings_db - user: drawings - passwordKey: drawings - extensions: - - pg_stat_statements - - uuid-ossp - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/drawings/288/drawings_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/drawings/yc-k8s-test/replicas.yaml b/apps/drawings/yc-k8s-test/replicas.yaml deleted file mode 100644 index 8857880..0000000 --- a/apps/drawings/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: backend - namespace: drawings -spec: - values: - services: - backend: - deployment: - replicaCount: - _default: 1 diff --git a/apps/eav/sarex-contour/kustomization.yaml b/apps/eav/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/eav/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/eav/yc-k8s-test/kustomization.yaml b/apps/eav/yc-k8s-test/kustomization.yaml deleted file mode 100644 index c8f7064..0000000 --- a/apps/eav/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: - - path: replicas.yaml - target: - kind: HelmRelease - name: backend diff --git a/apps/eav/yc-k8s-test/postgresql.yaml b/apps/eav/yc-k8s-test/postgresql.yaml deleted file mode 100644 index 8099218..0000000 --- a/apps/eav/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,127 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: eav -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: eav_db - user: eav - passwordKey: eav - extensions: - - ltree - - pg_stat_statements - - postgis - - timescaledb - - uuid-ossp - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/eav/288/eav_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/eav/yc-k8s-test/replicas.yaml b/apps/eav/yc-k8s-test/replicas.yaml deleted file mode 100644 index bd0603a..0000000 --- a/apps/eav/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: backend - namespace: eav -spec: - values: - services: - backend: - deployment: - replicaCount: - _default: 1 diff --git a/apps/faas/yc-k8s-test/kustomization.yaml b/apps/faas/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 85195ca..0000000 --- a/apps/faas/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: [] -# - path: replicas.yaml -# target: -# kind: Deployment -# name: frontend diff --git a/apps/faas/yc-k8s-test/replicas.yaml b/apps/faas/yc-k8s-test/replicas.yaml deleted file mode 100644 index b268ece..0000000 --- a/apps/faas/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: backend - namespace: faas -spec: - replicas: 1 diff --git a/apps/flows/CONFIGURATION.md b/apps/flows/CONFIGURATION.md index 8240d61..dcaedef 100644 --- a/apps/flows/CONFIGURATION.md +++ b/apps/flows/CONFIGURATION.md @@ -245,7 +245,7 @@ ## Переменные из kustomize-манифестов (`iac/apps/flows`) -Инфраструктурный репозиторий разворачивает те же образы через kustomize (`base` + оверлеи `brusnika-stage`, `brusnika-prod`, `yc-k8s-test`). Секреты инжектируются агентом **HashiCorp Vault** (аннотации `vault.hashicorp.com/agent-inject-*`) и подгружаются в окружение из файлов `/vault/secrets/*` перед запуском `entrypoint.sh`: +Инфраструктурный репозиторий разворачивает те же образы через kustomize (`base` + оверлеи `brusnika-stage`, `brusnika-prod`). Секреты инжектируются агентом **HashiCorp Vault** (аннотации `vault.hashicorp.com/agent-inject-*`) и подгружаются в окружение из файлов `/vault/secrets/*` перед запуском `entrypoint.sh`: | Секрет Vault | Переменные | | --- | --- | diff --git a/apps/flows/sarex-contour/kustomization.yaml b/apps/flows/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/flows/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/flows/yc-k8s-test/kustomization.yaml b/apps/flows/yc-k8s-test/kustomization.yaml deleted file mode 100644 index e601931..0000000 --- a/apps/flows/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: [] diff --git a/apps/flows/yc-k8s-test/postgresql.yaml b/apps/flows/yc-k8s-test/postgresql.yaml deleted file mode 100644 index fcd1103..0000000 --- a/apps/flows/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,123 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: flows -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: flows_db - user: flows - passwordKey: flow - extensions: - - pg_stat_statements - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/restored_flow_db/288/restored_flow_db_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/iam/yc-k8s-test/kustomization.yaml b/apps/iam/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 85195ca..0000000 --- a/apps/iam/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: [] -# - path: replicas.yaml -# target: -# kind: Deployment -# name: frontend diff --git a/apps/iam/yc-k8s-test/replicas.yaml b/apps/iam/yc-k8s-test/replicas.yaml deleted file mode 100644 index 07363e3..0000000 --- a/apps/iam/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: iam - namespace: iam -spec: - replicas: 1 diff --git a/apps/inspections/sarex-contour/kustomization.yaml b/apps/inspections/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/inspections/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/inspections/yc-k8s-test/kustomization.yaml b/apps/inspections/yc-k8s-test/kustomization.yaml deleted file mode 100644 index e601931..0000000 --- a/apps/inspections/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: [] diff --git a/apps/inspections/yc-k8s-test/postgresql.yaml b/apps/inspections/yc-k8s-test/postgresql.yaml deleted file mode 100644 index 89bfadf..0000000 --- a/apps/inspections/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,127 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: inspections -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: inspections_db - user: inspections - passwordKey: inspections - extensions: - - ltree - - pg_stat_statements - - postgis - - timescaledb - - uuid-ossp - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/inspections/288/inspections_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/issues/sarex-contour/kustomization.yaml b/apps/issues/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/issues/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/issues/yc-k8s-test/kustomization.yaml b/apps/issues/yc-k8s-test/kustomization.yaml deleted file mode 100644 index e601931..0000000 --- a/apps/issues/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: [] diff --git a/apps/issues/yc-k8s-test/postgresql.yaml b/apps/issues/yc-k8s-test/postgresql.yaml deleted file mode 100644 index c65176e..0000000 --- a/apps/issues/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,128 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: issues -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: issues_db - user: issues - passwordKey: issues - extensions: - - ltree - - pg_stat_statements - - postgis - - timescaledb - - uuid-ossp - - pg_trgm - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/issues/288/issues_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/mapper/CONFIGURATION.md b/apps/mapper/CONFIGURATION.md index 0483a67..e3825ae 100644 --- a/apps/mapper/CONFIGURATION.md +++ b/apps/mapper/CONFIGURATION.md @@ -133,7 +133,6 @@ GitOps-деплой через Kustomize + Flux, namespace `mapper`. Здесь | Путь | Назначение | | --- | --- | | `base/` | Базовый Kustomize (`namespace`, `serviceaccount` `mapper-vault`, `deployment`, `service`) | -| `yc-k8s-test/` | Overlay поверх `base` (патч `replicas: 1`) | | `brusnika-stage/` | Flux `HelmRelease` (universal-chart), хосты `test.sarex.brusnika.tech`, `imagePullSecrets: dockerhub` | | `brusnika-prod/` | Flux `HelmRelease` (universal-chart), хосты `cde.brusnika.ru`, `imagePullSecrets: regcred` | diff --git a/apps/mapper/sarex-contour/kustomization.yaml b/apps/mapper/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/mapper/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/mapper/yc-k8s-test/kustomization.yaml b/apps/mapper/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 1ee38d5..0000000 --- a/apps/mapper/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: replicas.yaml - target: - kind: HelmRelease - name: backend diff --git a/apps/mapper/yc-k8s-test/replicas.yaml b/apps/mapper/yc-k8s-test/replicas.yaml deleted file mode 100644 index c1b4681..0000000 --- a/apps/mapper/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: backend - namespace: mapper -spec: - values: - services: - backend: - deployment: - replicaCount: - _default: 1 diff --git a/apps/measurements/CONFIGURATION.md b/apps/measurements/CONFIGURATION.md index d0f993b..a5b5e10 100644 --- a/apps/measurements/CONFIGURATION.md +++ b/apps/measurements/CONFIGURATION.md @@ -16,7 +16,7 @@ | --- | --- | | Локально (docker-compose) | `docker-compose.yaml` — образ `measurements`, проброс порта `8000:8000`, инлайн `environment: S3_JSON_SETTINGS`. Сервис запускается `entrypoint.sh` (gunicorn, 4 воркера, uvicorn worker, таймаут 240) | | Kubernetes — собственный Helm-чарт репозитория | `.helm/values.yaml` (universal-chart, dependency `oci://…/charts`): блок `envs` (обычные значения) и `secretEnvs` (значения из k8s-секретов). Per-env значения через ключи `_default`/`stage`/`preprod`/`production` | -| Kubernetes — этот infra-репозиторий (`iac/apps/measurements`) | `base/` — kustomize-манифесты с инъекцией секрета S3 через **HashiCorp Vault** (annotations `vault.hashicorp.com/*`), обычные переменные заданы инлайн в `env:`. Оверлеи: `yc-k8s-test` (base + патч реплик), `brusnika-stage`/`brusnika-prod` (Flux `HelmRelease` на `universal-chart`, блок `secretEnvs`) | +| Kubernetes — этот infra-репозиторий (`iac/apps/measurements`) | `base/` — kustomize-манифесты с инъекцией секрета S3 через **HashiCorp Vault** (annotations `vault.hashicorp.com/*`), обычные переменные заданы инлайн в `env:`. Оверлеи: `brusnika-stage`/`brusnika-prod` (Flux `HelmRelease` на `universal-chart`, блок `secretEnvs`) | | CI/CD (GitLab) | `.gitlab-ci.yml` подключает шаблоны `generic/common-ci` (`universal-pipeline.yaml`, ref `apps-business`); в `workflow.rules` задаются переменные пайплайна (`STAND`, `NAMESPACE`, `RELEASE_NAME`, `CHART_NAME`, `CHART_VERSION`, `K8S_HUSTLER_BRANCH`, `HELM_SET_ARGS`, `SERVICE_NAME`, `DOCKERFILE_PATH`) | **Миграции БД.** Отсутствуют. Сервис не хранит собственное состояние в реляционной БД (`psycopg2` присутствует в зависимостях, но код измерений работает с растрами из S3). Шага миграций в `entrypoint.sh` нет. @@ -125,7 +125,6 @@ ### Оверлеи -- **`yc-k8s-test`** — `../base` + патч `replicas.yaml` (реплики Deployment `measurements` = 1). - **`brusnika-stage`** / **`brusnika-prod`** — Flux `HelmRelease` `measurements` на `universal-chart` `0.1.7` (source `yc-oci-charts`). Секрет `S3_JSON_SETTINGS` берётся из k8s-секрета `s3-json-settings` (`secretEnvs`). `replicaCount`: `stage 1`, `preprod 3`, `production 3`; `imagePullSecrets: regcred`; `labels.monitoring: prometheus`; сервис `measurements-service` (ClusterIP, `8000`). --- diff --git a/apps/measurements/sarex-contour/kustomization.yaml b/apps/measurements/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/measurements/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/measurements/yc-k8s-test/kustomization.yaml b/apps/measurements/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 16989f3..0000000 --- a/apps/measurements/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: replicas.yaml - target: - kind: HelmRelease - name: measurements \ No newline at end of file diff --git a/apps/measurements/yc-k8s-test/replicas.yaml b/apps/measurements/yc-k8s-test/replicas.yaml deleted file mode 100644 index 39aa334..0000000 --- a/apps/measurements/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: measurements - namespace: measurements -spec: - values: - services: - backend: - deployment: - replicaCount: - _default: 1 diff --git a/apps/message-hub/yc-k8s-test/kustomization.yaml b/apps/message-hub/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 85195ca..0000000 --- a/apps/message-hub/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: [] -# - path: replicas.yaml -# target: -# kind: Deployment -# name: frontend diff --git a/apps/message-hub/yc-k8s-test/replicas.yaml b/apps/message-hub/yc-k8s-test/replicas.yaml deleted file mode 100644 index d08fb81..0000000 --- a/apps/message-hub/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: message-hub - namespace: message-hub -spec: - replicas: 1 diff --git a/apps/notes/sarex-contour/kustomization.yaml b/apps/notes/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/notes/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/notes/yc-k8s-test/kustomization.yaml b/apps/notes/yc-k8s-test/kustomization.yaml deleted file mode 100644 index ffc9d1c..0000000 --- a/apps/notes/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: [] -# - path: replicas.yaml -# target: -# kind: Deployment -# name: backend diff --git a/apps/notes/yc-k8s-test/postgresql.yaml b/apps/notes/yc-k8s-test/postgresql.yaml deleted file mode 100644 index 227ee6c..0000000 --- a/apps/notes/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,123 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: notes -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - resources: - requests: - cpu: 50m - memory: 128Mi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: notes_db - user: notes - passwordKey: notes - extensions: - - pg_stat_statements - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/notes/288/notes_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/notes/yc-k8s-test/replicas.yaml b/apps/notes/yc-k8s-test/replicas.yaml deleted file mode 100644 index 8f59239..0000000 --- a/apps/notes/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: backend - namespace: notes -spec: - replicas: 1 diff --git a/apps/pm/yc-k8s-test/kustomization.yaml b/apps/pm/yc-k8s-test/kustomization.yaml deleted file mode 100644 index c4a2c03..0000000 --- a/apps/pm/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml - - redis-deployment.yaml - - redis-service.yaml -patches: [] diff --git a/apps/pm/yc-k8s-test/postgresql.yaml b/apps/pm/yc-k8s-test/postgresql.yaml deleted file mode 100644 index f94cebf..0000000 --- a/apps/pm/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,124 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: pm -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: pm_db - user: pm - passwordKey: pm - extensions: - - ltree - - pg_stat_statements - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/pm_db/288/pm_db_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/pm/yc-k8s-test/redis-deployment.yaml b/apps/pm/yc-k8s-test/redis-deployment.yaml deleted file mode 100644 index 4a46b46..0000000 --- a/apps/pm/yc-k8s-test/redis-deployment.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: redis - namespace: pm - labels: - app: redis -spec: - replicas: 1 - selector: - matchLabels: - app: redis - template: - metadata: - labels: - app: redis - spec: - containers: - - name: redis - image: cr.yandex/crp3ccidau046kdj8g9q/redis:latest - imagePullPolicy: Always - ports: - - containerPort: 6379 - protocol: TCP - imagePullSecrets: - - name: regcred diff --git a/apps/pm/yc-k8s-test/redis-service.yaml b/apps/pm/yc-k8s-test/redis-service.yaml deleted file mode 100644 index 4aab2e7..0000000 --- a/apps/pm/yc-k8s-test/redis-service.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: redis - namespace: pm -spec: - selector: - app: redis - ports: - - port: 6379 - targetPort: 6379 - protocol: TCP diff --git a/apps/prescriptions/CONFIGURATION.md b/apps/prescriptions/CONFIGURATION.md index 9aead94..7889dd6 100644 --- a/apps/prescriptions/CONFIGURATION.md +++ b/apps/prescriptions/CONFIGURATION.md @@ -108,7 +108,6 @@ nginx (`nginx/nginx.conf`) раздаёт статику из `/dist`, отда | `base/deployment.yaml` | Deployment `frontend`, образ `cr.yandex/.../prescriptions-frontend:production_...`, порт `80`, `requests` `cpu 25m`/`memory 100Mi`, `imagePullSecrets: regcred` | | `base/service.yaml` | Service `frontend-service`, `ClusterIP`, порт `80` | | `base/kustomization.yaml` | Сборка base (namespace + deployment + service) | -| `yc-k8s-test/` | Оверлей поверх `../base` (патч `replicas.yaml` закомментирован) | | `brusnika-prod/`, `brusnika-stage/` | Оверлеи (см. замечание ниже) | ## Замечания и потенциальные проблемы diff --git a/apps/prescriptions/sarex-contour/kustomization.yaml b/apps/prescriptions/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/prescriptions/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/prescriptions/yc-k8s-test/kustomization.yaml b/apps/prescriptions/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 85195ca..0000000 --- a/apps/prescriptions/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: [] -# - path: replicas.yaml -# target: -# kind: Deployment -# name: frontend diff --git a/apps/prescriptions/yc-k8s-test/replicas.yaml b/apps/prescriptions/yc-k8s-test/replicas.yaml deleted file mode 100644 index 7d589d3..0000000 --- a/apps/prescriptions/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: remarks -spec: - replicas: 1 diff --git a/apps/processing/yc-k8s-test/kustomization.yaml b/apps/processing/yc-k8s-test/kustomization.yaml deleted file mode 100644 index e601931..0000000 --- a/apps/processing/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: [] diff --git a/apps/processing/yc-k8s-test/postgresql.yaml b/apps/processing/yc-k8s-test/postgresql.yaml deleted file mode 100644 index 908db40..0000000 --- a/apps/processing/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,123 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: processing -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: workflow_db - user: workflow - passwordKey: workflow - extensions: - - uuid-ossp - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/processing/288/processing_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/projects/sarex-contour/kustomization.yaml b/apps/projects/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/projects/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/projects/yc-k8s-test/kustomization.yaml b/apps/projects/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 201a72f..0000000 --- a/apps/projects/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: [] -# - path: replicas.yaml -# target: -# kind: Deployment -# name: projects-frontend-static diff --git a/apps/projects/yc-k8s-test/replicas.yaml b/apps/projects/yc-k8s-test/replicas.yaml deleted file mode 100644 index 8c740f7..0000000 --- a/apps/projects/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: projects-frontend-static - namespace: projects -spec: - replicas: 1 diff --git a/apps/remarks/sarex-contour/kustomization.yaml b/apps/remarks/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/remarks/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/remarks/yc-k8s-test/kustomization.yaml b/apps/remarks/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 037075a..0000000 --- a/apps/remarks/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: [] -# - path: replicas.yaml -# target: -# kind: HelmRelease -# name: frontend diff --git a/apps/remarks/yc-k8s-test/replicas.yaml b/apps/remarks/yc-k8s-test/replicas.yaml deleted file mode 100644 index 4b8c49d..0000000 --- a/apps/remarks/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: frontend - namespace: remarks -spec: - values: - services: - frontend: - deployment: - replicaCount: - _default: 1 diff --git a/apps/resources/yc-k8s-test/kustomization.yaml b/apps/resources/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 050d882..0000000 --- a/apps/resources/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: - - path: replicas.yaml - target: - kind: Deployment - name: backend diff --git a/apps/resources/yc-k8s-test/postgresql.yaml b/apps/resources/yc-k8s-test/postgresql.yaml deleted file mode 100644 index d99f5c6..0000000 --- a/apps/resources/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,125 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: resources -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: resources_db - user: resources - passwordKey: resources - extensions: - - ltree - - pg_stat_statements - - postgis - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/resources/288/resources_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/resources/yc-k8s-test/replicas.yaml b/apps/resources/yc-k8s-test/replicas.yaml deleted file mode 100644 index 14eb0a8..0000000 --- a/apps/resources/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: backend - namespace: resources -spec: - replicas: 1 diff --git a/apps/reviews/sarex-contour/kustomization.yaml b/apps/reviews/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/reviews/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/reviews/yc-k8s-test/kustomization.yaml b/apps/reviews/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 037075a..0000000 --- a/apps/reviews/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: [] -# - path: replicas.yaml -# target: -# kind: HelmRelease -# name: frontend diff --git a/apps/reviews/yc-k8s-test/replicas.yaml b/apps/reviews/yc-k8s-test/replicas.yaml deleted file mode 100644 index 32e64ea..0000000 --- a/apps/reviews/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: frontend - namespace: reviews -spec: - values: - services: - frontend: - deployment: - replicaCount: - _default: 1 diff --git a/apps/rfi/sarex-contour/kustomization.yaml b/apps/rfi/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/rfi/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/rfi/yc-k8s-test/kustomization.yaml b/apps/rfi/yc-k8s-test/kustomization.yaml deleted file mode 100644 index e601931..0000000 --- a/apps/rfi/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: [] diff --git a/apps/rfi/yc-k8s-test/postgresql.yaml b/apps/rfi/yc-k8s-test/postgresql.yaml deleted file mode 100644 index e141b86..0000000 --- a/apps/rfi/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,123 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: rfi -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: rfi_db - user: rfi - passwordKey: rfi - extensions: - - pg_stat_statements - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/rfi/288/rfi_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/stamp-verification/CONFIGURATION.md b/apps/stamp-verification/CONFIGURATION.md index a963a08..b797c5c 100644 --- a/apps/stamp-verification/CONFIGURATION.md +++ b/apps/stamp-verification/CONFIGURATION.md @@ -103,9 +103,7 @@ - `base/namespace.yaml` — namespace `stamp-verification` с `istio-injection: enabled`; - `base/deployment.yaml` — Deployment `frontend` (образ `cr.yandex/crp3ccidau046kdj8g9q/stamp-verification-frontend:`, `imagePullPolicy: IfNotPresent`, `containerPort: 80`, requests `cpu: 25m`/`memory: 100Mi`, `imagePullSecrets: regcred`); - `base/service.yaml` — Service `frontend-service` (`ClusterIP`, `port: 80` → `targetPort: 80`); -- `base/kustomization.yaml` — сборка base (namespace + deployment + service); -- `yc-k8s-test/kustomization.yaml` — оверлей кластера (`resources: ../base`, патчи закомментированы); -- `yc-k8s-test/replicas.yaml` — заготовка патча реплик (`replicas: 1`). +- `base/kustomization.yaml` — сборка base (namespace + deployment + service). ## Замечания и потенциальные проблемы diff --git a/apps/stamp-verification/sarex-contour/kustomization.yaml b/apps/stamp-verification/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/stamp-verification/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/stamp-verification/yc-k8s-test/kustomization.yaml b/apps/stamp-verification/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 85195ca..0000000 --- a/apps/stamp-verification/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: [] -# - path: replicas.yaml -# target: -# kind: Deployment -# name: frontend diff --git a/apps/stamp-verification/yc-k8s-test/replicas.yaml b/apps/stamp-verification/yc-k8s-test/replicas.yaml deleted file mode 100644 index 004c92f..0000000 --- a/apps/stamp-verification/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: stamp-verification -spec: - replicas: 1 diff --git a/apps/subscriptions/CONFIGURATION.md b/apps/subscriptions/CONFIGURATION.md index 3b440cb..5dd579d 100644 --- a/apps/subscriptions/CONFIGURATION.md +++ b/apps/subscriptions/CONFIGURATION.md @@ -24,7 +24,7 @@ | --- | --- | | Локально (docker-compose) | `docker-compose.yml` поднимает контейнер `db` (`postgis/postgis`) и сервисы `api`/`migrations`. Значения БД (`DATABASE_USER/PASSWORD/NAME`, `ALLOWED_HOST_EMAIL`) подставляются из окружения/файла `.env` рядом с compose. api собирается из `compose/server/Dockerfile` и стартует через `entrypoint.sh` | | Kubernetes — собственный Helm-чарт репозитория | `.helm/values.yaml`: зависимость от `universal-chart`. Блоки `services.api.envs` (обычные значения, per-env `_default/stage/preprod/production`) и `services.api.secretEnvs` (из k8s-секретов). Плюс `cronjobs.periodic` / `cronjobs.immediately` — шаблоны `CronJob` в `.helm/templates/`, наследующие `envs`/`secretEnvs` api | -| Kubernetes — этот infra-репозиторий (`iac/apps/subscriptions`) | `base/` — kustomize-манифесты с инъекцией секретов через **HashiCorp Vault** (annotations `vault.hashicorp.com/*`), обычные переменные заданы инлайн в `env:`. Оверлеи: `yc-k8s-test` (base + postgresql), `brusnika-stage` / `brusnika-prod` (Flux `HelmRelease` на `universal-chart`, блоки `envs`/`secretEnvs`) | +| Kubernetes — этот infra-репозиторий (`iac/apps/subscriptions`) | `base/` — kustomize-манифесты с инъекцией секретов через **HashiCorp Vault** (annotations `vault.hashicorp.com/*`), обычные переменные заданы инлайн в `env:`. Оверлеи: `brusnika-stage` / `brusnika-prod` (Flux `HelmRelease` на `universal-chart`, блоки `envs`/`secretEnvs`) | | CI/CD (GitLab) | `.gitlab-ci.yml` подключает шаблоны `generic/common-ci` (`universal-pipeline.yaml`, ref `apps-business`); в `workflow.rules` задаются переменные пайплайна (`SERVICE_NAME`, `STAND`, `NAMESPACE`, `RELEASE_NAME`, `CHART_NAME`, `CHART_VERSION`, `K8S_HUSTLER_BRANCH`, `HELM_SET_ARGS`, `IMAGE_NAME` и т.п.) | **Миграции БД (api).** Выполняются **в entrypoint контейнера api** перед стартом uwsgi: `python manage.py migrate --settings=config.settings.production` (`compose/server/entrypoint.sh`). Cron-задачи миграций не выполняют. Локально в `docker-compose.yml` отдельный сервис `migrations` вызывает `makemigrations` (генерация миграций, не применение). @@ -153,7 +153,6 @@ exec /server/entrypoint.sh ### Оверлеи -- **`yc-k8s-test`** — `../base` + `postgresql.yaml` (HelmRelease `postgresql-contour`: создаёт БД `subscriptions_db`, пользователя `subscriptions`, расширения `ltree`/`pg_stat_statements`/`postgis`/`timescaledb`, восстановление из дампа). - **`brusnika-stage`** / **`brusnika-prod`** — Flux `HelmRelease` на `universal-chart` (v0.1.7). Переменные — в `envs` (`DATABASE_HOST/PORT/NAME`, `API_ADDRESS`, `SYSTEM_LOG_HOST`, `USER_SERVICE_HOST`, `IS_USE_TELEGRAM=false`, `IS_MAILGUN_USE=0`, `SMTP_*`), секреты — в `secretEnvs` (`postgres-secret`: `username`/`password`; `yc-s3-secret`: `key_id`/`access_key`/`storage_bucket_name`/`endpoint_url`). Отличаются только `DATABASE_HOST` (`postgres-service` в prod vs `192.168.2.45` в stage). > В этих kustomize/brusnika-манифестах **не задаются** `USE_OTEL`, `TELEGRAM_BOT_TOKEN`, `MAILGUN_API_KEY`, `USER_SERVICE_LOGIN/PASSWORD`, `ALLOWED_HOST_EMAIL` — используются дефолты из кода. Telegram и Mailgun выключены (`IS_USE_TELEGRAM=false`, `IS_MAILGUN_USE=0`), рассылка идёт по SMTP. diff --git a/apps/subscriptions/sarex-contour/kustomization.yaml b/apps/subscriptions/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/subscriptions/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/subscriptions/yc-k8s-test/kustomization.yaml b/apps/subscriptions/yc-k8s-test/kustomization.yaml deleted file mode 100644 index e601931..0000000 --- a/apps/subscriptions/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: [] diff --git a/apps/subscriptions/yc-k8s-test/postgresql.yaml b/apps/subscriptions/yc-k8s-test/postgresql.yaml deleted file mode 100644 index ad2f89d..0000000 --- a/apps/subscriptions/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,126 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: subscriptions -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: subscriptions_db - user: subscriptions - passwordKey: subscriptions - extensions: - - ltree - - pg_stat_statements - - postgis - - timescaledb - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/subscriptions/288/subscriptions_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/system-log/CONFIGURATION.md b/apps/system-log/CONFIGURATION.md index 1892aa5..0a97ca7 100644 --- a/apps/system-log/CONFIGURATION.md +++ b/apps/system-log/CONFIGURATION.md @@ -17,7 +17,7 @@ | --- | --- | | Локально (docker-compose + бинарник) | Файл `config.env` в корне репозитория. `docker-compose.yml` (`env_file: ./config.env`) поднимает только контейнер Postgres (`timescale/timescaledb-ha`); сам сервис запускается бинарником. `Makefile` через `include config.env` использует `PG_URL` для миграций | | Kubernetes — собственный Helm-чарт репозитория | `.helm/values-.yaml`: блок `envs` (обычные значения) и `secrets` (значения из k8s-секретов). Деплой запускается пайплайнами `generic/common-ci` | -| Kubernetes — этот infra-репозиторий (`iac/apps/system-log`) | `base/` — kustomize-манифесты с инъекцией секретов через **HashiCorp Vault** (annotations `vault.hashicorp.com/*`), обычные переменные заданы инлайн в `env:`. Оверлеи: `yc-k8s-test` (base + postgresql), `brusnika-stage` (Flux `HelmRelease` на `universal-chart`, блоки `envs`/`secretEnvs`) | +| Kubernetes — этот infra-репозиторий (`iac/apps/system-log`) | `base/` — kustomize-манифесты с инъекцией секретов через **HashiCorp Vault** (annotations `vault.hashicorp.com/*`), обычные переменные заданы инлайн в `env:`. Оверлеи: `brusnika-stage` (Flux `HelmRelease` на `universal-chart`, блоки `envs`/`secretEnvs`) | | CI/CD (GitLab) | `.gitlab-ci.yml` подключает шаблоны `generic/common-ci`; в `workflow.rules` задаются переменные пайплайна (`RELEASE_NAME`, `*_NAMESPACE`, `CHART_NAME`, `CHART_VERSION`, `STAND`, `IMAGE_PATH`, `HELM_SET_ARGS` и т.п.) | **Миграции БД (api).** Отдельного шага миграций в entrypoint нет: миграции выполняются **в процессе при старте api** — сборка идёт с тегом `-tags migrate`, и `init()` в `internal/app/http/migrate.go` применяет `migrate up` из каталога `/migrations` перед запуском HTTP-сервера. Локально миграции можно прогнать через `make migrate-up-local` (использует `PG_URL` из `config.env`). Воркер миграций не выполняет. @@ -129,7 +129,6 @@ ### Оверлеи -- **`yc-k8s-test`** — `../base` + `postgresql.yaml` (HelmRelease `postgresql-contour`, создаёт БД `system_log_db`, пользователя `system_log`, расширения `ltree`/`pg_stat_statements`/`timescaledb`, восстановление из дампа). - **`brusnika-stage`** — Flux `HelmRelease` на `universal-chart` (per-env значения `_default`/`stage`/`preprod`/`production`). Переменные — в `envs`, секреты — в `secretEnvs` (`postgres-secret`, `ya-kafka-secret`, `yc-kafka-certificate`, `superuser`). --- diff --git a/apps/system-log/sarex-contour/kustomization.yaml b/apps/system-log/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/system-log/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/system-log/yc-k8s-test/kustomization.yaml b/apps/system-log/yc-k8s-test/kustomization.yaml deleted file mode 100644 index e601931..0000000 --- a/apps/system-log/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: [] diff --git a/apps/system-log/yc-k8s-test/postgresql.yaml b/apps/system-log/yc-k8s-test/postgresql.yaml deleted file mode 100644 index da29ac9..0000000 --- a/apps/system-log/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,125 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: system-log -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: system_log_db - user: system_log - passwordKey: system-log - extensions: - - ltree - - pg_stat_statements - - timescaledb - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/system-log/288/system-log_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/transmittal/yc-k8s-test/kustomization.yaml b/apps/transmittal/yc-k8s-test/kustomization.yaml deleted file mode 100644 index e601931..0000000 --- a/apps/transmittal/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: [] diff --git a/apps/transmittal/yc-k8s-test/postgresql.yaml b/apps/transmittal/yc-k8s-test/postgresql.yaml deleted file mode 100644 index 01cdddc..0000000 --- a/apps/transmittal/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,123 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: transmittal -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: transmittal_db - user: transmittal - passwordKey: transmittal - extensions: - - pg_stat_statements - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/transmittal/288/transmittal_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/workspaces/CONFIGURATION.md b/apps/workspaces/CONFIGURATION.md index 810d00c..ccd0f8b 100644 --- a/apps/workspaces/CONFIGURATION.md +++ b/apps/workspaces/CONFIGURATION.md @@ -16,7 +16,7 @@ | --- | --- | | Локально (docker-compose + бинарник) | Файл `.env` в корне репозитория. `docker-compose.yml` (`env_file: .env`) поднимает только контейнер Postgres (`postgres:13`); сам API-сервис в compose закомментирован и запускается бинарником. `Makefile` (`make docker`) прокидывает `.env` в docker-compose | | Kubernetes — собственный Helm-чарт репозитория | `.helm/values.yaml` (`universal-chart`): блоки `envs` (обычные значения по окружениям `_default`/`stage`/`preprod`/`production`) и `secretEnvs` (значения из k8s-секретов). Деплой запускается пайплайнами `generic/common-ci` | -| Kubernetes — этот infra-репозиторий (`iac/apps/workspaces`) | `base/` — kustomize-манифесты с инъекцией секретов через **HashiCorp Vault** (annotations `vault.hashicorp.com/*`), обычные переменные заданы инлайн в `env:`. Оверлеи: `yc-k8s-test` (base + postgresql через Flux), `brusnika-stage` и `brusnika-prod` (Flux `HelmRelease` на `universal-chart`, блоки `envs`/`secretEnvs`) | +| Kubernetes — этот infra-репозиторий (`iac/apps/workspaces`) | `base/` — kustomize-манифесты с инъекцией секретов через **HashiCorp Vault** (annotations `vault.hashicorp.com/*`), обычные переменные заданы инлайн в `env:`. Оверлеи: `brusnika-stage` и `brusnika-prod` (Flux `HelmRelease` на `universal-chart`, блоки `envs`/`secretEnvs`) | | CI/CD (GitLab) | `.gitlab-ci.yml` подключает шаблоны `generic/common-ci` (`universal-pipeline.yaml`); в `workflow.rules` задаются переменные пайплайна (`STAND`, `NAMESPACE`, `RELEASE_NAME`, `CHART_NAME`, `CHART_VERSION`, `HELM_SET_ARGS` и т.п.), а также build-args образа | **Миграции БД.** Отдельного env-флага для миграций нет: порядок запуска задаёт `entrypoint.sh` — сначала выполняется `/migrations migrate`, затем стартует `/api`. Утилита миграций читает тот же конфиг (`config/config.go`) и использует `ENABLE_SSL`/`YC-PG-CERTIFICATE` для TLS-подключения к БД (`cmd/migrations/main.go`). В kustomize-/Helm-манифестах миграции запускаются той же командой в `args`/`command` контейнера (`set -e; /migrations migrate; exec /api`). @@ -116,7 +116,6 @@ ### Оверлеи -- **`yc-k8s-test`** — `../base` + `postgresql.yaml` (Flux `HelmRelease` `postgresql-contour`: БД `workspaces_db`, пользователь `workspaces`, расширение `uuid-ossp`, восстановление из дампа, интеграция с Vault). Патч `replicas.yaml` (`replicas: 1` для `workspaces-api`). - **`brusnika-stage`** и **`brusnika-prod`** — Flux `HelmRelease` на `universal-chart` (`0.1.7`) для api и фронтенда. Переменные — в `envs`, секреты — в `secretEnvs` (`postgres-secret` → `POSTGRES_USER`/`POSTGRES_PASSWORD`, `django-auth` → `DJANGO_BASIC_AUTH`). Отличаются значениями `POSTGRES_ADDRESS` и `DOCUMENTATION_HOST` (stage: `192.168.2.45` / `https://test.sarex.brusnika.tech/documentations`; prod: `postgres-service` / `https://cde.brusnika.ru/documentations`). Api-под запускает `/migrations migrate` перед `/api` в `args`. --- diff --git a/apps/workspaces/sarex-contour/kustomization.yaml b/apps/workspaces/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/apps/workspaces/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/apps/workspaces/yc-k8s-test/kustomization.yaml b/apps/workspaces/yc-k8s-test/kustomization.yaml deleted file mode 100644 index c8f7064..0000000 --- a/apps/workspaces/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - postgresql.yaml -patches: - - path: replicas.yaml - target: - kind: HelmRelease - name: backend diff --git a/apps/workspaces/yc-k8s-test/postgresql.yaml b/apps/workspaces/yc-k8s-test/postgresql.yaml deleted file mode 100644 index f495554..0000000 --- a/apps/workspaces/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,123 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: workspaces -spec: - interval: 5m - timeout: 2h - chart: - spec: - chart: postgresql-contour - version: "13.0.15" - sourceRef: - kind: HelmRepository - name: yc-oci-charts - namespace: flux-system - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 13.0.15 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - resources: - requests: - cpu: 50m - memory: 128Mi - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - sharedPreloadLibraries: "" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - databases: - - name: workspaces_db - user: workspaces - passwordKey: workspaces - extensions: - - uuid-ossp - restoreFromDump: true - dumpKey: "sanitized_dumps_multi/workspaces/288/workspaces_company288_20260626T202844Z.tar.gz" - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/apps/workspaces/yc-k8s-test/replicas.yaml b/apps/workspaces/yc-k8s-test/replicas.yaml deleted file mode 100644 index ad71cb6..0000000 --- a/apps/workspaces/yc-k8s-test/replicas.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: backend - namespace: workspaces -spec: - values: - services: - backend: - deployment: - replicaCount: - _default: 1 diff --git a/clusters/sarex-contour/flux-system/gotk-components.yaml b/clusters/sarex-contour/flux-system/gotk-components.yaml deleted file mode 100644 index b734bfa..0000000 --- a/clusters/sarex-contour/flux-system/gotk-components.yaml +++ /dev/null @@ -1,6089 +0,0 @@ ---- -# This manifest was generated by flux. DO NOT EDIT. -# Flux Version: v2.9.3 -# Components: source-controller,kustomize-controller,helm-controller,notification-controller -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - pod-security.kubernetes.io/warn: restricted - pod-security.kubernetes.io/warn-version: latest - name: flux-system ---- -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: allow-egress - namespace: flux-system -spec: - egress: - - {} - ingress: - - from: - - podSelector: {} - podSelector: {} - policyTypes: - - Ingress - - Egress ---- -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: allow-scraping - namespace: flux-system -spec: - ingress: - - from: - - namespaceSelector: {} - ports: - - port: 8080 - protocol: TCP - podSelector: {} - policyTypes: - - Ingress ---- -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: allow-webhooks - namespace: flux-system -spec: - ingress: - - from: - - namespaceSelector: {} - podSelector: - matchLabels: - app: notification-controller - policyTypes: - - Ingress ---- -apiVersion: v1 -kind: ResourceQuota -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: critical-pods-flux-system - namespace: flux-system -spec: - hard: - pods: "1000" - scopeSelector: - matchExpressions: - - operator: In - scopeName: PriorityClass - values: - - system-node-critical - - system-cluster-critical ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: crd-controller-flux-system -rules: -- apiGroups: - - source.toolkit.fluxcd.io - resources: - - '*' - verbs: - - '*' -- apiGroups: - - kustomize.toolkit.fluxcd.io - resources: - - '*' - verbs: - - '*' -- apiGroups: - - helm.toolkit.fluxcd.io - resources: - - '*' - verbs: - - '*' -- apiGroups: - - notification.toolkit.fluxcd.io - resources: - - '*' - verbs: - - '*' -- apiGroups: - - image.toolkit.fluxcd.io - resources: - - '*' - verbs: - - '*' -- apiGroups: - - source.extensions.fluxcd.io - resources: - - '*' - verbs: - - '*' -- apiGroups: - - "" - resources: - - namespaces - - secrets - - configmaps - - serviceaccounts - verbs: - - get - - list - - watch -- apiGroups: - - "" - resources: - - events - verbs: - - create - - patch -- apiGroups: - - "" - resources: - - configmaps - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - "" - resources: - - configmaps/status - verbs: - - get - - update - - patch -- apiGroups: - - coordination.k8s.io - resources: - - leases - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - "" - resources: - - serviceaccounts/token - verbs: - - create -- nonResourceURLs: - - /livez/ping - verbs: - - head ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - rbac.authorization.k8s.io/aggregate-to-admin: "true" - rbac.authorization.k8s.io/aggregate-to-edit: "true" - name: flux-edit-flux-system -rules: -- apiGroups: - - notification.toolkit.fluxcd.io - - source.toolkit.fluxcd.io - - source.extensions.fluxcd.io - - helm.toolkit.fluxcd.io - - image.toolkit.fluxcd.io - - kustomize.toolkit.fluxcd.io - resources: - - '*' - verbs: - - create - - delete - - deletecollection - - patch - - update ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - rbac.authorization.k8s.io/aggregate-to-admin: "true" - rbac.authorization.k8s.io/aggregate-to-edit: "true" - rbac.authorization.k8s.io/aggregate-to-view: "true" - name: flux-view-flux-system -rules: -- apiGroups: - - notification.toolkit.fluxcd.io - - source.toolkit.fluxcd.io - - source.extensions.fluxcd.io - - helm.toolkit.fluxcd.io - - image.toolkit.fluxcd.io - - kustomize.toolkit.fluxcd.io - resources: - - '*' - verbs: - - get - - list - - watch ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: cluster-reconciler-flux-system -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: cluster-admin -subjects: -- kind: ServiceAccount - name: kustomize-controller - namespace: flux-system -- kind: ServiceAccount - name: helm-controller - namespace: flux-system ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: crd-controller-flux-system -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: crd-controller-flux-system -subjects: -- kind: ServiceAccount - name: kustomize-controller - namespace: flux-system -- kind: ServiceAccount - name: helm-controller - namespace: flux-system -- kind: ServiceAccount - name: source-controller - namespace: flux-system -- kind: ServiceAccount - name: notification-controller - namespace: flux-system -- kind: ServiceAccount - name: image-reflector-controller - namespace: flux-system -- kind: ServiceAccount - name: image-automation-controller - namespace: flux-system -- kind: ServiceAccount - name: source-watcher - namespace: flux-system ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.21.0 - kustomize.toolkit.fluxcd.io/substitute: disabled - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: buckets.source.toolkit.fluxcd.io -spec: - group: source.toolkit.fluxcd.io - names: - categories: - - all - - fluxcd - - fluxcd-sources - kind: Bucket - listKind: BucketList - plural: buckets - singular: bucket - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.endpoint - name: Endpoint - type: string - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - name: v1 - schema: - openAPIV3Schema: - description: Bucket is the Schema for the buckets API. - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: |- - BucketSpec specifies the required configuration to produce an Artifact for - an object storage bucket. - properties: - bucketName: - description: BucketName is the name of the object storage bucket. - type: string - certSecretRef: - description: |- - CertSecretRef can be given the name of a Secret containing - either or both of - - - a PEM-encoded client certificate (`tls.crt`) and private - key (`tls.key`); - - a PEM-encoded CA certificate (`ca.crt`) - - and whichever are supplied, will be used for connecting to the - bucket. The client cert and key are useful if you are - authenticating with a certificate; the CA cert is useful if - you are using a self-signed server certificate. The Secret must - be of type `Opaque` or `kubernetes.io/tls`. - - This field is only supported for the `generic` provider. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - endpoint: - description: Endpoint is the object storage address the BucketName - is located at. - type: string - ignore: - description: |- - Ignore overrides the set of excluded patterns in the .sourceignore format - (which is the same as .gitignore). If not provided, a default will be used, - consult the documentation for your version to find out what those are. - type: string - insecure: - description: Insecure allows connecting to a non-TLS HTTP Endpoint. - type: boolean - interval: - description: |- - Interval at which the Bucket Endpoint is checked for updates. - This interval is approximate and may be subject to jitter to ensure - efficient use of resources. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - prefix: - description: Prefix to use for server-side filtering of files in the - Bucket. - type: string - provider: - default: generic - description: |- - Provider of the object storage bucket. - Defaults to 'generic', which expects an S3 (API) compatible object - storage. - enum: - - generic - - aws - - gcp - - azure - type: string - proxySecretRef: - description: |- - ProxySecretRef specifies the Secret containing the proxy configuration - to use while communicating with the Bucket server. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - region: - description: Region of the Endpoint where the BucketName is located - in. - type: string - secretRef: - description: |- - SecretRef specifies the Secret containing authentication credentials - for the Bucket. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - serviceAccountName: - description: |- - ServiceAccountName is the name of the Kubernetes ServiceAccount used to authenticate - the bucket. This field is only supported for the 'gcp' and 'aws' providers. - For more information about workload identity: - https://fluxcd.io/flux/components/source/buckets/#workload-identity - type: string - sts: - description: |- - STS specifies the required configuration to use a Security Token - Service for fetching temporary credentials to authenticate in a - Bucket provider. - - This field is only supported for the `aws` and `generic` providers. - properties: - certSecretRef: - description: |- - CertSecretRef can be given the name of a Secret containing - either or both of - - - a PEM-encoded client certificate (`tls.crt`) and private - key (`tls.key`); - - a PEM-encoded CA certificate (`ca.crt`) - - and whichever are supplied, will be used for connecting to the - STS endpoint. The client cert and key are useful if you are - authenticating with a certificate; the CA cert is useful if - you are using a self-signed server certificate. The Secret must - be of type `Opaque` or `kubernetes.io/tls`. - - This field is only supported for the `ldap` provider. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - endpoint: - description: |- - Endpoint is the HTTP/S endpoint of the Security Token Service from - where temporary credentials will be fetched. - pattern: ^(http|https)://.*$ - type: string - provider: - description: Provider of the Security Token Service. - enum: - - aws - - ldap - type: string - secretRef: - description: |- - SecretRef specifies the Secret containing authentication credentials - for the STS endpoint. This Secret must contain the fields `username` - and `password` and is supported only for the `ldap` provider. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - required: - - endpoint - - provider - type: object - suspend: - description: |- - Suspend tells the controller to suspend the reconciliation of this - Bucket. - type: boolean - timeout: - default: 60s - description: Timeout for fetch operations, defaults to 60s. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ - type: string - required: - - bucketName - - endpoint - - interval - type: object - x-kubernetes-validations: - - message: STS configuration is only supported for the 'aws' and 'generic' - Bucket providers - rule: self.provider == 'aws' || self.provider == 'generic' || !has(self.sts) - - message: '''aws'' is the only supported STS provider for the ''aws'' - Bucket provider' - rule: self.provider != 'aws' || !has(self.sts) || self.sts.provider - == 'aws' - - message: '''ldap'' is the only supported STS provider for the ''generic'' - Bucket provider' - rule: self.provider != 'generic' || !has(self.sts) || self.sts.provider - == 'ldap' - - message: spec.sts.secretRef is not required for the 'aws' STS provider - rule: '!has(self.sts) || self.sts.provider != ''aws'' || !has(self.sts.secretRef)' - - message: spec.sts.certSecretRef is not required for the 'aws' STS provider - rule: '!has(self.sts) || self.sts.provider != ''aws'' || !has(self.sts.certSecretRef)' - - message: ServiceAccountName is not supported for the 'generic' Bucket - provider - rule: self.provider != 'generic' || !has(self.serviceAccountName) - - message: cannot set both .spec.secretRef and .spec.serviceAccountName - rule: '!has(self.secretRef) || !has(self.serviceAccountName)' - status: - default: - observedGeneration: -1 - description: BucketStatus records the observed state of a Bucket. - properties: - artifact: - description: Artifact represents the last successful Bucket reconciliation. - properties: - digest: - description: Digest is the digest of the file in the form of ':'. - pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ - type: string - lastUpdateTime: - description: |- - LastUpdateTime is the timestamp corresponding to the last update of the - Artifact. - format: date-time - type: string - metadata: - additionalProperties: - type: string - description: Metadata holds upstream information such as OCI annotations. - type: object - path: - description: |- - Path is the relative file path of the Artifact. It can be used to locate - the file in the root of the Artifact storage on the local file system of - the controller managing the Source. - type: string - revision: - description: |- - Revision is a human-readable identifier traceable in the origin source - system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. - type: string - size: - description: Size is the number of bytes in the file. - format: int64 - type: integer - url: - description: |- - URL is the HTTP address of the Artifact as exposed by the controller - managing the Source. It can be used to retrieve the Artifact for - consumption, e.g. by another controller applying the Artifact contents. - type: string - required: - - digest - - lastUpdateTime - - path - - revision - - url - type: object - conditions: - description: Conditions holds the conditions for the Bucket. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedGeneration: - description: ObservedGeneration is the last observed generation of - the Bucket object. - format: int64 - type: integer - observedIgnore: - description: |- - ObservedIgnore is the observed exclusion patterns used for constructing - the source artifact. - type: string - url: - description: |- - URL is the dynamic fetch link for the latest Artifact. - It is provided on a "best effort" basis, and using the precise - BucketStatus.Artifact data is recommended. - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.21.0 - kustomize.toolkit.fluxcd.io/substitute: disabled - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: externalartifacts.source.toolkit.fluxcd.io -spec: - group: source.toolkit.fluxcd.io - names: - categories: - - all - - fluxcd - - fluxcd-sources - kind: ExternalArtifact - listKind: ExternalArtifactList - plural: externalartifacts - shortNames: - - ea - singular: externalartifact - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - - jsonPath: .spec.sourceRef.name - name: Source - type: string - name: v1 - schema: - openAPIV3Schema: - description: ExternalArtifact is the Schema for the external artifacts API - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: ExternalArtifactSpec defines the desired state of ExternalArtifact - properties: - sourceRef: - description: |- - SourceRef points to the Kubernetes custom resource for - which the artifact is generated. - properties: - apiVersion: - description: API version of the referent, if not specified the - Kubernetes preferred version will be used. - type: string - kind: - description: Kind of the referent. - type: string - name: - description: Name of the referent. - type: string - namespace: - description: Namespace of the referent, when not specified it - acts as LocalObjectReference. - type: string - required: - - kind - - name - type: object - type: object - status: - description: ExternalArtifactStatus defines the observed state of ExternalArtifact - properties: - artifact: - description: Artifact represents the output of an ExternalArtifact - reconciliation. - properties: - digest: - description: Digest is the digest of the file in the form of ':'. - pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ - type: string - lastUpdateTime: - description: |- - LastUpdateTime is the timestamp corresponding to the last update of the - Artifact. - format: date-time - type: string - metadata: - additionalProperties: - type: string - description: Metadata holds upstream information such as OCI annotations. - type: object - path: - description: |- - Path is the relative file path of the Artifact. It can be used to locate - the file in the root of the Artifact storage on the local file system of - the controller managing the Source. - type: string - revision: - description: |- - Revision is a human-readable identifier traceable in the origin source - system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. - type: string - size: - description: Size is the number of bytes in the file. - format: int64 - type: integer - url: - description: |- - URL is the HTTP address of the Artifact as exposed by the controller - managing the Source. It can be used to retrieve the Artifact for - consumption, e.g. by another controller applying the Artifact contents. - type: string - required: - - digest - - lastUpdateTime - - path - - revision - - url - type: object - conditions: - description: Conditions holds the conditions for the ExternalArtifact. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.21.0 - kustomize.toolkit.fluxcd.io/substitute: disabled - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: gitrepositories.source.toolkit.fluxcd.io -spec: - group: source.toolkit.fluxcd.io - names: - categories: - - all - - fluxcd - - fluxcd-sources - kind: GitRepository - listKind: GitRepositoryList - plural: gitrepositories - shortNames: - - gitrepo - singular: gitrepository - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.url - name: URL - type: string - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - name: v1 - schema: - openAPIV3Schema: - description: GitRepository is the Schema for the gitrepositories API. - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: |- - GitRepositorySpec specifies the required configuration to produce an - Artifact for a Git repository. - properties: - ignore: - description: |- - Ignore overrides the set of excluded patterns in the .sourceignore format - (which is the same as .gitignore). If not provided, a default will be used, - consult the documentation for your version to find out what those are. - type: string - include: - description: |- - Include specifies a list of GitRepository resources which Artifacts - should be included in the Artifact produced for this GitRepository. - items: - description: |- - GitRepositoryInclude specifies a local reference to a GitRepository which - Artifact (sub-)contents must be included, and where they should be placed. - properties: - fromPath: - description: |- - FromPath specifies the path to copy contents from, defaults to the root - of the Artifact. - type: string - repository: - description: |- - GitRepositoryRef specifies the GitRepository which Artifact contents - must be included. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - toPath: - description: |- - ToPath specifies the path to copy contents to, defaults to the name of - the GitRepositoryRef. - type: string - required: - - repository - type: object - type: array - interval: - description: |- - Interval at which the GitRepository URL is checked for updates. - This interval is approximate and may be subject to jitter to ensure - efficient use of resources. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - provider: - description: |- - Provider used for authentication, can be 'aws', 'azure', 'github', 'generic'. - When not specified, defaults to 'generic'. - enum: - - generic - - aws - - azure - - github - type: string - proxySecretRef: - description: |- - ProxySecretRef specifies the Secret containing the proxy configuration - to use while communicating with the Git server. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - recurseSubmodules: - description: |- - RecurseSubmodules enables the initialization of all submodules within - the GitRepository as cloned from the URL, using their default settings. - type: boolean - ref: - description: |- - Reference specifies the Git reference to resolve and monitor for - changes, defaults to the 'master' branch. - properties: - branch: - description: Branch to check out, defaults to 'master' if no other - field is defined. - type: string - commit: - description: |- - Commit SHA to check out, takes precedence over all reference fields. - - This can be combined with Branch to shallow clone the branch, in which - the commit is expected to exist. - type: string - name: - description: |- - Name of the reference to check out; takes precedence over Branch, Tag and SemVer. - - It must be a valid Git reference: https://git-scm.com/docs/git-check-ref-format#_description - Examples: "refs/heads/main", "refs/tags/v0.1.0", "refs/pull/420/head", "refs/merge-requests/1/head" - type: string - semver: - description: SemVer tag expression to check out, takes precedence - over Tag. - type: string - tag: - description: Tag to check out, takes precedence over Branch. - type: string - type: object - secretRef: - description: |- - SecretRef specifies the Secret containing authentication credentials for - the GitRepository. - For HTTPS repositories the Secret must contain 'username' and 'password' - fields for basic auth or 'bearerToken' field for token auth. - For SSH repositories the Secret must contain 'identity' - and 'known_hosts' fields. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - serviceAccountName: - description: |- - ServiceAccountName is the name of the Kubernetes ServiceAccount used to - authenticate to the GitRepository. This field is only supported for 'azure' and 'aws' providers. - type: string - sparseCheckout: - description: |- - SparseCheckout specifies a list of directories to checkout when cloning - the repository. If specified, only these directories are included in the - Artifact produced for this GitRepository. - items: - type: string - type: array - suspend: - description: |- - Suspend tells the controller to suspend the reconciliation of this - GitRepository. - type: boolean - timeout: - default: 60s - description: Timeout for Git operations like cloning, defaults to - 60s. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ - type: string - url: - description: URL specifies the Git repository URL, it can be an HTTP/S - or SSH address. - pattern: ^(http|https|ssh)://.*$ - type: string - verify: - description: |- - Verification specifies the configuration to verify the Git commit - signature(s). - properties: - mode: - default: HEAD - description: |- - Mode specifies which Git object(s) should be verified. - - The variants "head" and "HEAD" both imply the same thing, i.e. verify - the commit that the HEAD of the Git repository points to. The variant - "head" solely exists to ensure backwards compatibility. - enum: - - head - - HEAD - - Tag - - TagAndHEAD - type: string - secretRef: - description: |- - SecretRef specifies the Secret containing the public keys of trusted Git - authors. PGP public keys must be stored under keys with the .asc suffix, - and SSH public keys must be stored under keys with the .sshpub suffix. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - required: - - secretRef - type: object - required: - - interval - - url - type: object - x-kubernetes-validations: - - message: serviceAccountName can only be set when provider is 'azure' - or 'aws' - rule: '!has(self.serviceAccountName) || (has(self.provider) && (self.provider - == ''azure'' || self.provider == ''aws''))' - status: - default: - observedGeneration: -1 - description: GitRepositoryStatus records the observed state of a Git repository. - properties: - artifact: - description: Artifact represents the last successful GitRepository - reconciliation. - properties: - digest: - description: Digest is the digest of the file in the form of ':'. - pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ - type: string - lastUpdateTime: - description: |- - LastUpdateTime is the timestamp corresponding to the last update of the - Artifact. - format: date-time - type: string - metadata: - additionalProperties: - type: string - description: Metadata holds upstream information such as OCI annotations. - type: object - path: - description: |- - Path is the relative file path of the Artifact. It can be used to locate - the file in the root of the Artifact storage on the local file system of - the controller managing the Source. - type: string - revision: - description: |- - Revision is a human-readable identifier traceable in the origin source - system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. - type: string - size: - description: Size is the number of bytes in the file. - format: int64 - type: integer - url: - description: |- - URL is the HTTP address of the Artifact as exposed by the controller - managing the Source. It can be used to retrieve the Artifact for - consumption, e.g. by another controller applying the Artifact contents. - type: string - required: - - digest - - lastUpdateTime - - path - - revision - - url - type: object - conditions: - description: Conditions holds the conditions for the GitRepository. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - includedArtifacts: - description: |- - IncludedArtifacts contains a list of the last successfully included - Artifacts as instructed by GitRepositorySpec.Include. - items: - description: Artifact represents the output of a Source reconciliation. - properties: - digest: - description: Digest is the digest of the file in the form of - ':'. - pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ - type: string - lastUpdateTime: - description: |- - LastUpdateTime is the timestamp corresponding to the last update of the - Artifact. - format: date-time - type: string - metadata: - additionalProperties: - type: string - description: Metadata holds upstream information such as OCI - annotations. - type: object - path: - description: |- - Path is the relative file path of the Artifact. It can be used to locate - the file in the root of the Artifact storage on the local file system of - the controller managing the Source. - type: string - revision: - description: |- - Revision is a human-readable identifier traceable in the origin source - system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. - type: string - size: - description: Size is the number of bytes in the file. - format: int64 - type: integer - url: - description: |- - URL is the HTTP address of the Artifact as exposed by the controller - managing the Source. It can be used to retrieve the Artifact for - consumption, e.g. by another controller applying the Artifact contents. - type: string - required: - - digest - - lastUpdateTime - - path - - revision - - url - type: object - type: array - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedGeneration: - description: |- - ObservedGeneration is the last observed generation of the GitRepository - object. - format: int64 - type: integer - observedIgnore: - description: |- - ObservedIgnore is the observed exclusion patterns used for constructing - the source artifact. - type: string - observedInclude: - description: |- - ObservedInclude is the observed list of GitRepository resources used to - produce the current Artifact. - items: - description: |- - GitRepositoryInclude specifies a local reference to a GitRepository which - Artifact (sub-)contents must be included, and where they should be placed. - properties: - fromPath: - description: |- - FromPath specifies the path to copy contents from, defaults to the root - of the Artifact. - type: string - repository: - description: |- - GitRepositoryRef specifies the GitRepository which Artifact contents - must be included. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - toPath: - description: |- - ToPath specifies the path to copy contents to, defaults to the name of - the GitRepositoryRef. - type: string - required: - - repository - type: object - type: array - observedRecurseSubmodules: - description: |- - ObservedRecurseSubmodules is the observed resource submodules - configuration used to produce the current Artifact. - type: boolean - observedSparseCheckout: - description: |- - ObservedSparseCheckout is the observed list of directories used to - produce the current Artifact. - items: - type: string - type: array - sourceVerificationMode: - description: |- - SourceVerificationMode is the last used verification mode indicating - which Git object(s) have been verified. - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.21.0 - kustomize.toolkit.fluxcd.io/substitute: disabled - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: helmcharts.source.toolkit.fluxcd.io -spec: - group: source.toolkit.fluxcd.io - names: - categories: - - all - - fluxcd - - fluxcd-sources - kind: HelmChart - listKind: HelmChartList - plural: helmcharts - shortNames: - - hc - singular: helmchart - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.chart - name: Chart - type: string - - jsonPath: .spec.version - name: Version - type: string - - jsonPath: .spec.sourceRef.kind - name: Source Kind - type: string - - jsonPath: .spec.sourceRef.name - name: Source Name - type: string - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - name: v1 - schema: - openAPIV3Schema: - description: HelmChart is the Schema for the helmcharts API. - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: HelmChartSpec specifies the desired state of a Helm chart. - properties: - chart: - description: |- - Chart is the name or path the Helm chart is available at in the - SourceRef. - type: string - ignoreMissingValuesFiles: - description: |- - IgnoreMissingValuesFiles controls whether to silently ignore missing values - files rather than failing. - type: boolean - interval: - description: |- - Interval at which the HelmChart SourceRef is checked for updates. - This interval is approximate and may be subject to jitter to ensure - efficient use of resources. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - reconcileStrategy: - default: ChartVersion - description: |- - ReconcileStrategy determines what enables the creation of a new artifact. - Valid values are ('ChartVersion', 'Revision'). - See the documentation of the values for an explanation on their behavior. - Defaults to ChartVersion when omitted. - enum: - - ChartVersion - - Revision - type: string - sourceRef: - description: SourceRef is the reference to the Source the chart is - available at. - properties: - apiVersion: - description: APIVersion of the referent. - type: string - kind: - description: |- - Kind of the referent, valid values are ('HelmRepository', 'GitRepository', - 'Bucket'). - enum: - - HelmRepository - - GitRepository - - Bucket - type: string - name: - description: Name of the referent. - type: string - required: - - kind - - name - type: object - suspend: - description: |- - Suspend tells the controller to suspend the reconciliation of this - source. - type: boolean - valuesFiles: - description: |- - ValuesFiles is an alternative list of values files to use as the chart - values (values.yaml is not included by default), expected to be a - relative path in the SourceRef. - Values files are merged in the order of this list with the last file - overriding the first. Ignored when omitted. - items: - type: string - type: array - verify: - description: |- - Verify contains the secret name containing the trusted public keys - used to verify the signature and specifies which provider to use to check - whether OCI image is authentic. - This field is only supported when using HelmRepository source with spec.type 'oci'. - Chart dependencies, which are not bundled in the umbrella chart artifact, are not verified. - properties: - matchOIDCIdentity: - description: |- - MatchOIDCIdentity specifies the identity matching criteria to use - while verifying an OCI artifact which was signed using Cosign keyless - signing. The artifact's identity is deemed to be verified if any of the - specified matchers match against the identity. - items: - description: |- - OIDCIdentityMatch specifies options for verifying the certificate identity, - i.e. the issuer and the subject of the certificate. - properties: - issuer: - description: |- - Issuer specifies the regex pattern to match against to verify - the OIDC issuer in the Fulcio certificate. The pattern must be a - valid Go regular expression. - type: string - subject: - description: |- - Subject specifies the regex pattern to match against to verify - the identity subject in the Fulcio certificate. The pattern must - be a valid Go regular expression. - type: string - required: - - issuer - - subject - type: object - type: array - provider: - default: cosign - description: Provider specifies the technology used to sign the - OCI Artifact. - enum: - - cosign - - notation - type: string - secretRef: - description: |- - SecretRef specifies the Kubernetes Secret containing the - trusted public keys. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - required: - - provider - type: object - version: - default: '*' - description: |- - Version is the chart version semver expression, ignored for charts from - GitRepository and Bucket sources. Defaults to latest when omitted. - type: string - required: - - chart - - interval - - sourceRef - type: object - x-kubernetes-validations: - - message: spec.verify is only supported when spec.sourceRef.kind is 'HelmRepository' - rule: '!has(self.verify) || self.sourceRef.kind == ''HelmRepository''' - status: - default: - observedGeneration: -1 - description: HelmChartStatus records the observed state of the HelmChart. - properties: - artifact: - description: Artifact represents the output of the last successful - reconciliation. - properties: - digest: - description: Digest is the digest of the file in the form of ':'. - pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ - type: string - lastUpdateTime: - description: |- - LastUpdateTime is the timestamp corresponding to the last update of the - Artifact. - format: date-time - type: string - metadata: - additionalProperties: - type: string - description: Metadata holds upstream information such as OCI annotations. - type: object - path: - description: |- - Path is the relative file path of the Artifact. It can be used to locate - the file in the root of the Artifact storage on the local file system of - the controller managing the Source. - type: string - revision: - description: |- - Revision is a human-readable identifier traceable in the origin source - system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. - type: string - size: - description: Size is the number of bytes in the file. - format: int64 - type: integer - url: - description: |- - URL is the HTTP address of the Artifact as exposed by the controller - managing the Source. It can be used to retrieve the Artifact for - consumption, e.g. by another controller applying the Artifact contents. - type: string - required: - - digest - - lastUpdateTime - - path - - revision - - url - type: object - conditions: - description: Conditions holds the conditions for the HelmChart. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedChartName: - description: |- - ObservedChartName is the last observed chart name as specified by the - resolved chart reference. - type: string - observedGeneration: - description: |- - ObservedGeneration is the last observed generation of the HelmChart - object. - format: int64 - type: integer - observedSourceArtifactRevision: - description: |- - ObservedSourceArtifactRevision is the last observed Artifact.Revision - of the HelmChartSpec.SourceRef. - type: string - observedValuesFiles: - description: |- - ObservedValuesFiles are the observed value files of the last successful - reconciliation. - It matches the chart in the last successfully reconciled artifact. - items: - type: string - type: array - url: - description: |- - URL is the dynamic fetch link for the latest Artifact. - It is provided on a "best effort" basis, and using the precise - HelmChartStatus.Artifact data is recommended. - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.21.0 - kustomize.toolkit.fluxcd.io/substitute: disabled - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: helmrepositories.source.toolkit.fluxcd.io -spec: - group: source.toolkit.fluxcd.io - names: - categories: - - all - - fluxcd - - fluxcd-sources - kind: HelmRepository - listKind: HelmRepositoryList - plural: helmrepositories - shortNames: - - helmrepo - singular: helmrepository - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.url - name: URL - type: string - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - name: v1 - schema: - openAPIV3Schema: - description: HelmRepository is the Schema for the helmrepositories API. - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: |- - HelmRepositorySpec specifies the required configuration to produce an - Artifact for a Helm repository index YAML. - properties: - accessFrom: - description: |- - AccessFrom specifies an Access Control List for allowing cross-namespace - references to this object. - NOTE: Not implemented, provisional as of https://github.com/fluxcd/flux2/pull/2092 - properties: - namespaceSelectors: - description: |- - NamespaceSelectors is the list of namespace selectors to which this ACL applies. - Items in this list are evaluated using a logical OR operation. - items: - description: |- - NamespaceSelector selects the namespaces to which this ACL applies. - An empty map of MatchLabels matches all namespaces in a cluster. - properties: - matchLabels: - additionalProperties: - type: string - description: |- - MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - type: array - required: - - namespaceSelectors - type: object - certSecretRef: - description: |- - CertSecretRef can be given the name of a Secret containing - either or both of - - - a PEM-encoded client certificate (`tls.crt`) and private - key (`tls.key`); - - a PEM-encoded CA certificate (`ca.crt`) - - and whichever are supplied, will be used for connecting to the - registry. The client cert and key are useful if you are - authenticating with a certificate; the CA cert is useful if - you are using a self-signed server certificate. The Secret must - be of type `Opaque` or `kubernetes.io/tls`. - - It takes precedence over the values specified in the Secret referred - to by `.spec.secretRef`. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - insecure: - description: |- - Insecure allows connecting to a non-TLS HTTP container registry. - This field is only taken into account if the .spec.type field is set to 'oci'. - type: boolean - interval: - description: |- - Interval at which the HelmRepository URL is checked for updates. - This interval is approximate and may be subject to jitter to ensure - efficient use of resources. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - passCredentials: - description: |- - PassCredentials allows the credentials from the SecretRef to be passed - on to a host that does not match the host as defined in URL. - This may be required if the host of the advertised chart URLs in the - index differ from the defined URL. - Enabling this should be done with caution, as it can potentially result - in credentials getting stolen in a MITM-attack. - type: boolean - provider: - default: generic - description: |- - Provider used for authentication, can be 'aws', 'azure', 'gcp' or 'generic'. - This field is optional, and only taken into account if the .spec.type field is set to 'oci'. - When not specified, defaults to 'generic'. - enum: - - generic - - aws - - azure - - gcp - type: string - secretRef: - description: |- - SecretRef specifies the Secret containing authentication credentials - for the HelmRepository. - For HTTP/S basic auth the secret must contain 'username' and 'password' - fields. - Support for TLS auth using the 'certFile' and 'keyFile', and/or 'caFile' - keys is deprecated. Please use `.spec.certSecretRef` instead. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - suspend: - description: |- - Suspend tells the controller to suspend the reconciliation of this - HelmRepository. - type: boolean - timeout: - description: |- - Timeout is used for the index fetch operation for an HTTPS helm repository, - and for remote OCI Repository operations like pulling for an OCI helm - chart by the associated HelmChart. - Its default value is 60s. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ - type: string - type: - description: |- - Type of the HelmRepository. - When this field is set to "oci", the URL field value must be prefixed with "oci://". - enum: - - default - - oci - type: string - url: - description: |- - URL of the Helm repository, a valid URL contains at least a protocol and - host. - pattern: ^(http|https|oci)://.*$ - type: string - required: - - url - type: object - status: - default: - observedGeneration: -1 - description: HelmRepositoryStatus records the observed state of the HelmRepository. - properties: - artifact: - description: Artifact represents the last successful HelmRepository - reconciliation. - properties: - digest: - description: Digest is the digest of the file in the form of ':'. - pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ - type: string - lastUpdateTime: - description: |- - LastUpdateTime is the timestamp corresponding to the last update of the - Artifact. - format: date-time - type: string - metadata: - additionalProperties: - type: string - description: Metadata holds upstream information such as OCI annotations. - type: object - path: - description: |- - Path is the relative file path of the Artifact. It can be used to locate - the file in the root of the Artifact storage on the local file system of - the controller managing the Source. - type: string - revision: - description: |- - Revision is a human-readable identifier traceable in the origin source - system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. - type: string - size: - description: Size is the number of bytes in the file. - format: int64 - type: integer - url: - description: |- - URL is the HTTP address of the Artifact as exposed by the controller - managing the Source. It can be used to retrieve the Artifact for - consumption, e.g. by another controller applying the Artifact contents. - type: string - required: - - digest - - lastUpdateTime - - path - - revision - - url - type: object - conditions: - description: Conditions holds the conditions for the HelmRepository. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedGeneration: - description: |- - ObservedGeneration is the last observed generation of the HelmRepository - object. - format: int64 - type: integer - url: - description: |- - URL is the dynamic fetch link for the latest Artifact. - It is provided on a "best effort" basis, and using the precise - HelmRepositoryStatus.Artifact data is recommended. - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.21.0 - kustomize.toolkit.fluxcd.io/substitute: disabled - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: ocirepositories.source.toolkit.fluxcd.io -spec: - group: source.toolkit.fluxcd.io - names: - categories: - - all - - fluxcd - - fluxcd-sources - kind: OCIRepository - listKind: OCIRepositoryList - plural: ocirepositories - shortNames: - - ocirepo - singular: ocirepository - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.url - name: URL - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - name: v1 - schema: - openAPIV3Schema: - description: OCIRepository is the Schema for the ocirepositories API - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: OCIRepositorySpec defines the desired state of OCIRepository - properties: - certSecretRef: - description: |- - CertSecretRef can be given the name of a Secret containing - either or both of - - - a PEM-encoded client certificate (`tls.crt`) and private - key (`tls.key`); - - a PEM-encoded CA certificate (`ca.crt`) - - and whichever are supplied, will be used for connecting to the - registry. The client cert and key are useful if you are - authenticating with a certificate; the CA cert is useful if - you are using a self-signed server certificate. The Secret must - be of type `Opaque` or `kubernetes.io/tls`. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - ignore: - description: |- - Ignore overrides the set of excluded patterns in the .sourceignore format - (which is the same as .gitignore). If not provided, a default will be used, - consult the documentation for your version to find out what those are. - type: string - insecure: - description: Insecure allows connecting to a non-TLS HTTP container - registry. - type: boolean - interval: - description: |- - Interval at which the OCIRepository URL is checked for updates. - This interval is approximate and may be subject to jitter to ensure - efficient use of resources. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - layerSelector: - description: |- - LayerSelector specifies which layer should be extracted from the OCI artifact. - When not specified, the first layer found in the artifact is selected. - properties: - mediaType: - description: |- - MediaType specifies the OCI media type of the layer - which should be extracted from the OCI Artifact. The - first layer matching this type is selected. - type: string - operation: - description: |- - Operation specifies how the selected layer should be processed. - By default, the layer compressed content is extracted to storage. - When the operation is set to 'copy', the layer compressed content - is persisted to storage as it is. - enum: - - extract - - copy - type: string - type: object - provider: - default: generic - description: |- - The provider used for authentication, can be 'aws', 'azure', 'gcp' or 'generic'. - When not specified, defaults to 'generic'. - enum: - - generic - - aws - - azure - - gcp - type: string - proxySecretRef: - description: |- - ProxySecretRef specifies the Secret containing the proxy configuration - to use while communicating with the container registry. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - ref: - description: |- - The OCI reference to pull and monitor for changes, - defaults to the latest tag. - properties: - digest: - description: |- - Digest is the image digest to pull, takes precedence over SemVer. - The value should be in the format 'sha256:'. - type: string - semver: - description: |- - SemVer is the range of tags to pull selecting the latest within - the range, takes precedence over Tag. - type: string - semverFilter: - description: SemverFilter is a regex pattern to filter the tags - within the SemVer range. - type: string - tag: - description: Tag is the image tag to pull, defaults to latest. - type: string - type: object - secretRef: - description: |- - SecretRef contains the secret name containing the registry login - credentials to resolve image metadata. - The secret must be of type kubernetes.io/dockerconfigjson. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - serviceAccountName: - description: |- - ServiceAccountName is the name of the Kubernetes ServiceAccount used to authenticate - the image pull if the service account has attached pull secrets. For more information: - https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account - type: string - suspend: - description: This flag tells the controller to suspend the reconciliation - of this source. - type: boolean - timeout: - default: 60s - description: The timeout for remote OCI Repository operations like - pulling, defaults to 60s. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ - type: string - url: - description: |- - URL is a reference to an OCI artifact repository hosted - on a remote container registry. - pattern: ^oci://.*$ - type: string - verify: - description: |- - Verify contains the secret name containing the trusted public keys - used to verify the signature and specifies which provider to use to check - whether OCI image is authentic. - properties: - matchOIDCIdentity: - description: |- - MatchOIDCIdentity specifies the identity matching criteria to use - while verifying an OCI artifact which was signed using Cosign keyless - signing. The artifact's identity is deemed to be verified if any of the - specified matchers match against the identity. - items: - description: |- - OIDCIdentityMatch specifies options for verifying the certificate identity, - i.e. the issuer and the subject of the certificate. - properties: - issuer: - description: |- - Issuer specifies the regex pattern to match against to verify - the OIDC issuer in the Fulcio certificate. The pattern must be a - valid Go regular expression. - type: string - subject: - description: |- - Subject specifies the regex pattern to match against to verify - the identity subject in the Fulcio certificate. The pattern must - be a valid Go regular expression. - type: string - required: - - issuer - - subject - type: object - type: array - provider: - default: cosign - description: Provider specifies the technology used to sign the - OCI Artifact. - enum: - - cosign - - notation - type: string - secretRef: - description: |- - SecretRef specifies the Kubernetes Secret containing the - trusted public keys. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - trustedRootSecretRef: - description: |- - TrustedRootSecretRef specifies the Kubernetes Secret containing a - Sigstore trusted_root.json file. This enables verification against - self-hosted Sigstore infrastructure (custom Fulcio CA, self-hosted - Rekor instance). The Secret must contain a key named "trusted_root.json". - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - required: - - provider - type: object - required: - - interval - - url - type: object - status: - default: - observedGeneration: -1 - description: OCIRepositoryStatus defines the observed state of OCIRepository - properties: - artifact: - description: Artifact represents the output of the last successful - OCI Repository sync. - properties: - digest: - description: Digest is the digest of the file in the form of ':'. - pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ - type: string - lastUpdateTime: - description: |- - LastUpdateTime is the timestamp corresponding to the last update of the - Artifact. - format: date-time - type: string - metadata: - additionalProperties: - type: string - description: Metadata holds upstream information such as OCI annotations. - type: object - path: - description: |- - Path is the relative file path of the Artifact. It can be used to locate - the file in the root of the Artifact storage on the local file system of - the controller managing the Source. - type: string - revision: - description: |- - Revision is a human-readable identifier traceable in the origin source - system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. - type: string - size: - description: Size is the number of bytes in the file. - format: int64 - type: integer - url: - description: |- - URL is the HTTP address of the Artifact as exposed by the controller - managing the Source. It can be used to retrieve the Artifact for - consumption, e.g. by another controller applying the Artifact contents. - type: string - required: - - digest - - lastUpdateTime - - path - - revision - - url - type: object - conditions: - description: Conditions holds the conditions for the OCIRepository. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedGeneration: - description: ObservedGeneration is the last observed generation. - format: int64 - type: integer - observedIgnore: - description: |- - ObservedIgnore is the observed exclusion patterns used for constructing - the source artifact. - type: string - observedLayerSelector: - description: |- - ObservedLayerSelector is the observed layer selector used for constructing - the source artifact. - properties: - mediaType: - description: |- - MediaType specifies the OCI media type of the layer - which should be extracted from the OCI Artifact. The - first layer matching this type is selected. - type: string - operation: - description: |- - Operation specifies how the selected layer should be processed. - By default, the layer compressed content is extracted to storage. - When the operation is set to 'copy', the layer compressed content - is persisted to storage as it is. - enum: - - extract - - copy - type: string - type: object - url: - description: URL is the download link for the artifact output of the - last OCI Repository sync. - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: source-controller - namespace: flux-system ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - control-plane: controller - name: source-controller - namespace: flux-system -spec: - ports: - - name: http - port: 80 - protocol: TCP - targetPort: http - selector: - app: source-controller - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - control-plane: controller - name: source-controller - namespace: flux-system -spec: - replicas: 1 - selector: - matchLabels: - app: source-controller - strategy: - type: Recreate - template: - metadata: - annotations: - prometheus.io/port: "8080" - prometheus.io/scrape: "true" - labels: - app: source-controller - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - spec: - containers: - - args: - - --events-addr=http://notification-controller.$(RUNTIME_NAMESPACE).svc.cluster.local./ - - --watch-all-namespaces=true - - --log-level=info - - --log-encoding=json - - --enable-leader-election - - --storage-path=/data - - --storage-adv-addr=source-controller.$(RUNTIME_NAMESPACE).svc.cluster.local. - env: - - name: RUNTIME_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: TUF_ROOT - value: /tmp/.sigstore - - name: GOMEMLIMIT - valueFrom: - resourceFieldRef: - containerName: manager - resource: limits.memory - image: ghcr.io/fluxcd/source-controller:v1.9.3 - imagePullPolicy: IfNotPresent - livenessProbe: - httpGet: - path: /healthz - port: healthz - name: manager - ports: - - containerPort: 9090 - name: http - protocol: TCP - - containerPort: 8080 - name: http-prom - protocol: TCP - - containerPort: 9440 - name: healthz - protocol: TCP - readinessProbe: - httpGet: - path: / - port: http - resources: - limits: - cpu: 1000m - memory: 1Gi - requests: - cpu: 50m - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - runAsNonRoot: true - seccompProfile: - type: RuntimeDefault - volumeMounts: - - mountPath: /data - name: data - - mountPath: /tmp - name: tmp - nodeSelector: - kubernetes.io/os: linux - priorityClassName: system-cluster-critical - securityContext: - fsGroup: 1337 - serviceAccountName: source-controller - terminationGracePeriodSeconds: 10 - volumes: - - emptyDir: {} - name: data - - emptyDir: {} - name: tmp ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.21.0 - kustomize.toolkit.fluxcd.io/substitute: disabled - labels: - app.kubernetes.io/component: kustomize-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: kustomizations.kustomize.toolkit.fluxcd.io -spec: - group: kustomize.toolkit.fluxcd.io - names: - categories: - - all - - fluxcd - - fluxcd-appliers - kind: Kustomization - listKind: KustomizationList - plural: kustomizations - shortNames: - - ks - singular: kustomization - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - name: v1 - schema: - openAPIV3Schema: - description: Kustomization is the Schema for the kustomizations API. - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: |- - KustomizationSpec defines the configuration to calculate the desired state - from a Source using Kustomize. - properties: - buildMetadata: - description: |- - BuildMetadata specifies which kustomize build metadata should be added - to the built resources. The allowed values are 'originAnnotations' to - annotate resources with their source origin, and 'transformerAnnotations' - to annotate resources with the transformers that produced them. - items: - description: BuildMetadataOption defines the supported buildMetadata - options. - enum: - - originAnnotations - - transformerAnnotations - type: string - type: array - commonMetadata: - description: |- - CommonMetadata specifies the common labels and annotations that are - applied to all resources. Any existing label or annotation will be - overridden if its key matches a common one. - properties: - annotations: - additionalProperties: - type: string - description: Annotations to be added to the object's metadata. - type: object - labels: - additionalProperties: - type: string - description: Labels to be added to the object's metadata. - type: object - type: object - components: - description: Components specifies relative paths to kustomize Components. - items: - type: string - type: array - decryption: - description: Decrypt Kubernetes secrets before applying them on the - cluster. - properties: - provider: - description: Provider is the name of the decryption engine. - enum: - - sops - type: string - secretRef: - description: |- - The secret name containing the private OpenPGP keys used for decryption. - A static credential for a cloud provider defined inside the Secret - takes priority to secret-less authentication with the ServiceAccountName - field. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - serviceAccountName: - description: |- - ServiceAccountName is the name of the service account used to - authenticate with KMS services from cloud providers. If a - static credential for a given cloud provider is defined - inside the Secret referenced by SecretRef, that static - credential takes priority. - type: string - required: - - provider - type: object - deletionPolicy: - description: |- - DeletionPolicy can be used to control garbage collection when this - Kustomization is deleted. Valid values are ('MirrorPrune', 'Delete', - 'WaitForTermination', 'Orphan'). 'MirrorPrune' mirrors the Prune field - (orphan if false, delete if true). Defaults to 'MirrorPrune'. - enum: - - MirrorPrune - - Delete - - WaitForTermination - - Orphan - type: string - dependsOn: - description: |- - DependsOn may contain a DependencyReference slice - with references to Kustomization resources that must be ready before this - Kustomization can be reconciled. - items: - description: |- - DependencyReference contains enough information to locate the referenced Kubernetes resource object - and optional CEL expression to assess its readiness. - properties: - name: - description: Name of the referent. - type: string - namespace: - description: |- - Namespace of the referent, defaults to the namespace of the resource - object that contains the reference. - type: string - readyExpr: - description: |- - ReadyExpr is a CEL expression that can be used to assess the readiness - of a dependency. When specified, the built-in readiness check - is replaced by the logic defined in the CEL expression. - To make the CEL expression additive to the built-in readiness check, - the feature gate `AdditiveCELDependencyCheck` must be set to `true`. - type: string - required: - - name - type: object - type: array - force: - default: false - description: |- - Force instructs the controller to recreate resources - when patching fails due to an immutable field change. - type: boolean - healthCheckExprs: - description: |- - HealthCheckExprs is a list of healthcheck expressions for evaluating the - health of custom resources using Common Expression Language (CEL). - The expressions are evaluated only when Wait or HealthChecks are specified. - items: - description: CustomHealthCheck defines the health check for custom - resources. - properties: - apiVersion: - description: APIVersion of the custom resource under evaluation. - type: string - current: - description: |- - Current is the CEL expression that determines if the status - of the custom resource has reached the desired state. - type: string - failed: - description: |- - Failed is the CEL expression that determines if the status - of the custom resource has failed to reach the desired state. - type: string - inProgress: - description: |- - InProgress is the CEL expression that determines if the status - of the custom resource has not yet reached the desired state. - type: string - kind: - description: Kind of the custom resource under evaluation. - type: string - required: - - apiVersion - - current - type: object - type: array - healthChecks: - description: A list of resources to be included in the health assessment. - items: - description: |- - NamespacedObjectKindReference contains enough information to locate the typed referenced Kubernetes resource object - in any namespace. - properties: - apiVersion: - description: API version of the referent, if not specified the - Kubernetes preferred version will be used. - type: string - kind: - description: Kind of the referent. - type: string - name: - description: Name of the referent. - type: string - namespace: - description: Namespace of the referent, when not specified it - acts as LocalObjectReference. - type: string - required: - - kind - - name - type: object - type: array - ignore: - description: |- - Ignore is a list of rules for specifying which changes to ignore - during drift detection. These rules are applied to the resources managed - by the Kustomization and are used to exclude specific JSON pointer paths - from the drift detection and apply process. - items: - description: |- - IgnoreRule defines a rule to selectively disregard specific changes during - the drift detection process. - properties: - paths: - description: |- - Paths is a list of JSON Pointer (RFC 6901) paths to be excluded from - consideration in a Kubernetes object. - items: - type: string - type: array - target: - description: |- - Target is a selector for specifying Kubernetes objects to which this - rule applies. - If Target is not set, the Paths will be ignored for all Kubernetes - objects within the manifest of the Kustomization. - properties: - annotationSelector: - description: |- - AnnotationSelector is a string that follows the label selection expression - https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api - It matches with the resource annotations. - type: string - group: - description: |- - Group is the API group to select resources from. - Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - kind: - description: |- - Kind of the API Group to select resources from. - Together with Group and Version it is capable of unambiguously - identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - labelSelector: - description: |- - LabelSelector is a string that follows the label selection expression - https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api - It matches with the resource labels. - type: string - name: - description: Name to match resources with. - type: string - namespace: - description: Namespace to select resources from. - type: string - version: - description: |- - Version of the API Group to select resources from. - Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - type: object - required: - - paths - type: object - type: array - ignoreMissingComponents: - description: |- - IgnoreMissingComponents instructs the controller to ignore Components paths - not found in source by removing them from the generated kustomization.yaml - before running kustomize build. - type: boolean - images: - description: |- - Images is a list of (image name, new name, new tag or digest) - for changing image names, tags or digests. This can also be achieved with a - patch, but this operator is simpler to specify. - items: - description: Image contains an image name, a new name, a new tag - or digest, which will replace the original name and tag. - properties: - digest: - description: |- - Digest is the value used to replace the original image tag. - If digest is present NewTag value is ignored. - type: string - name: - description: Name is a tag-less image name. - type: string - newName: - description: NewName is the value used to replace the original - name. - type: string - newTag: - description: NewTag is the value used to replace the original - tag. - type: string - required: - - name - type: object - type: array - interval: - description: |- - The interval at which to reconcile the Kustomization. - This interval is approximate and may be subject to jitter to ensure - efficient use of resources. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - kubeConfig: - description: |- - The KubeConfig for reconciling the Kustomization on a remote cluster. - When used in combination with KustomizationSpec.ServiceAccountName, - forces the controller to act on behalf of that Service Account at the - target cluster. - If the --default-service-account flag is set, its value will be used as - a controller level fallback for when KustomizationSpec.ServiceAccountName - is empty. - properties: - configMapRef: - description: |- - ConfigMapRef holds an optional name of a ConfigMap that contains - the following keys: - - - `provider`: the provider to use. One of `aws`, `azure`, `gcp`, or - `generic`. Required. - - `cluster`: the fully qualified resource name of the Kubernetes - cluster in the cloud provider API. Not used by the `generic` - provider. Required when one of `address` or `ca.crt` is not set. - - `address`: the address of the Kubernetes API server. Required - for `generic`. For the other providers, if not specified, the - first address in the cluster resource will be used, and if - specified, it must match one of the addresses in the cluster - resource. - If audiences is not set, will be used as the audience for the - `generic` provider. - - `ca.crt`: the optional PEM-encoded CA certificate for the - Kubernetes API server. If not set, the controller will use the - CA certificate from the cluster resource. - - `audiences`: the optional audiences as a list of - line-break-separated strings for the Kubernetes ServiceAccount - token. Defaults to the `address` for the `generic` provider, or - to specific values for the other providers depending on the - provider. - - `serviceAccountName`: the optional name of the Kubernetes - ServiceAccount in the same namespace that should be used - for authentication. If not specified, the controller - ServiceAccount will be used. - - Mutually exclusive with SecretRef. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - secretRef: - description: |- - SecretRef holds an optional name of a secret that contains a key with - the kubeconfig file as the value. If no key is set, the key will default - to 'value'. Mutually exclusive with ConfigMapRef. - It is recommended that the kubeconfig is self-contained, and the secret - is regularly updated if credentials such as a cloud-access-token expire. - Cloud specific `cmd-path` auth helpers will not function without adding - binaries and credentials to the Pod that is responsible for reconciling - Kubernetes resources. Supported only for the generic provider. - properties: - key: - description: Key in the Secret, when not specified an implementation-specific - default key is used. - type: string - name: - description: Name of the Secret. - type: string - required: - - name - type: object - type: object - x-kubernetes-validations: - - message: exactly one of spec.kubeConfig.configMapRef or spec.kubeConfig.secretRef - must be specified - rule: has(self.configMapRef) || has(self.secretRef) - - message: exactly one of spec.kubeConfig.configMapRef or spec.kubeConfig.secretRef - must be specified - rule: '!has(self.configMapRef) || !has(self.secretRef)' - namePrefix: - description: NamePrefix will prefix the names of all managed resources. - maxLength: 200 - minLength: 1 - type: string - nameSuffix: - description: NameSuffix will suffix the names of all managed resources. - maxLength: 200 - minLength: 1 - type: string - patches: - description: |- - Strategic merge and JSON patches, defined as inline YAML objects, - capable of targeting objects based on kind, label and annotation selectors. - items: - description: |- - Patch contains an inline StrategicMerge or JSON6902 patch, and the target the patch should - be applied to. - properties: - patch: - description: |- - Patch contains an inline StrategicMerge patch or an inline JSON6902 patch with - an array of operation objects. - type: string - target: - description: Target points to the resources that the patch document - should be applied to. - properties: - annotationSelector: - description: |- - AnnotationSelector is a string that follows the label selection expression - https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api - It matches with the resource annotations. - type: string - group: - description: |- - Group is the API group to select resources from. - Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - kind: - description: |- - Kind of the API Group to select resources from. - Together with Group and Version it is capable of unambiguously - identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - labelSelector: - description: |- - LabelSelector is a string that follows the label selection expression - https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api - It matches with the resource labels. - type: string - name: - description: Name to match resources with. - type: string - namespace: - description: Namespace to select resources from. - type: string - version: - description: |- - Version of the API Group to select resources from. - Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - type: object - required: - - patch - type: object - type: array - path: - description: |- - Path to the directory containing the kustomization.yaml file, or the - set of plain YAMLs a kustomization.yaml should be generated for. - Defaults to 'None', which translates to the root path of the SourceRef. - type: string - postBuild: - description: |- - PostBuild describes which actions to perform on the YAML manifest - generated by building the kustomize overlay. - properties: - substitute: - additionalProperties: - type: string - description: |- - Substitute holds a map of key/value pairs. - The variables defined in your YAML manifests that match any of the keys - defined in the map will be substituted with the set value. - Includes support for bash string replacement functions - e.g. ${var:=default}, ${var:position} and ${var/substring/replacement}. - type: object - substituteFrom: - description: |- - SubstituteFrom holds references to ConfigMaps and Secrets containing - the variables and their values to be substituted in the YAML manifests. - The ConfigMap and the Secret data keys represent the var names, and they - must match the vars declared in the manifests for the substitution to - happen. - items: - description: |- - SubstituteReference contains a reference to a resource containing - the variables name and value. - properties: - kind: - description: Kind of the values referent, valid values are - ('Secret', 'ConfigMap'). - enum: - - Secret - - ConfigMap - type: string - name: - description: |- - Name of the values referent. Should reside in the same namespace as the - referring resource. - maxLength: 253 - minLength: 1 - type: string - optional: - default: false - description: |- - Optional indicates whether the referenced resource must exist, or whether to - tolerate its absence. If true and the referenced resource is absent, proceed - as if the resource was present but empty, without any variables defined. - type: boolean - required: - - kind - - name - type: object - type: array - substituteStrategy: - description: |- - SubstituteStrategy defines the strategy for substituting variables in the YAML manifests. - Valid values are: - - - WithVariables (the default): require at least one variable to be defined, - either through the inline map or through the resolved references to ConfigMaps - and Secrets. - - Always: perform the substitution even if no variables are defined. - enum: - - WithVariables - - Always - type: string - type: object - prune: - description: Prune enables garbage collection. - type: boolean - retryInterval: - description: |- - The interval at which to retry a previously failed reconciliation. - When not specified, the controller uses the KustomizationSpec.Interval - value to retry failures. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - serviceAccountName: - description: |- - The name of the Kubernetes service account to impersonate - when reconciling this Kustomization. - type: string - sourceRef: - description: Reference of the source where the kustomization file - is. - properties: - apiVersion: - description: API version of the referent. - type: string - kind: - description: Kind of the referent. - enum: - - OCIRepository - - GitRepository - - Bucket - - ExternalArtifact - type: string - name: - description: Name of the referent. - type: string - namespace: - description: |- - Namespace of the referent, defaults to the namespace of the Kubernetes - resource object that contains the reference. - type: string - required: - - kind - - name - type: object - suspend: - description: |- - This flag tells the controller to suspend subsequent kustomize executions, - it does not apply to already started executions. Defaults to false. - type: boolean - targetNamespace: - description: |- - TargetNamespace sets or overrides the namespace in the - kustomization.yaml file. - maxLength: 63 - minLength: 1 - type: string - timeout: - description: |- - Timeout for validation, apply and health checking operations. - Defaults to 'Interval' duration. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - wait: - description: |- - Wait instructs the controller to check the health of all the reconciled - resources. When enabled, the HealthChecks are ignored. Defaults to false. - type: boolean - required: - - interval - - prune - - sourceRef - type: object - status: - default: - observedGeneration: -1 - description: KustomizationStatus defines the observed state of a kustomization. - properties: - conditions: - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - history: - description: |- - History contains a set of snapshots of the last reconciliation attempts - tracking the revision, the state and the duration of each attempt. - items: - description: |- - Snapshot represents a point-in-time record of a group of resources reconciliation, - including timing information, status, and a unique digest identifier. - properties: - digest: - description: Digest is the checksum in the format `:` - of the resources in this snapshot. - type: string - firstReconciled: - description: FirstReconciled is the time when this revision - was first reconciled to the cluster. - format: date-time - type: string - lastReconciled: - description: LastReconciled is the time when this revision was - last reconciled to the cluster. - format: date-time - type: string - lastReconciledDuration: - description: LastReconciledDuration is time it took to reconcile - the resources in this revision. - type: string - lastReconciledStatus: - description: LastReconciledStatus is the status of the last - reconciliation. - type: string - metadata: - additionalProperties: - type: string - description: Metadata contains additional information about - the snapshot. - type: object - totalReconciliations: - description: TotalReconciliations is the total number of reconciliations - that have occurred for this snapshot. - format: int64 - type: integer - required: - - digest - - firstReconciled - - lastReconciled - - lastReconciledDuration - - lastReconciledStatus - - totalReconciliations - type: object - type: array - inventory: - description: |- - Inventory contains the list of Kubernetes resource object references that - have been successfully applied. - properties: - entries: - description: Entries of Kubernetes resource object references. - items: - description: ResourceRef contains the information necessary - to locate a resource within a cluster. - properties: - id: - description: |- - ID is the string representation of the Kubernetes resource object's metadata, - in the format '___'. - type: string - v: - description: Version is the API version of the Kubernetes - resource object's kind. - type: string - required: - - id - - v - type: object - type: array - required: - - entries - type: object - lastAppliedOriginRevision: - description: |- - The last successfully applied origin revision. - Equals the origin revision of the applied Artifact from the referenced Source. - Usually present on the Metadata of the applied Artifact and depends on the - Source type, e.g. for OCI it's the value associated with the key - "org.opencontainers.image.revision". - type: string - lastAppliedRevision: - description: |- - The last successfully applied revision. - Equals the Revision of the applied Artifact from the referenced Source. - type: string - lastAttemptedRevision: - description: LastAttemptedRevision is the revision of the last reconciliation - attempt. - type: string - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedGeneration: - description: ObservedGeneration is the last reconciled generation. - format: int64 - type: integer - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.kubernetes.io/component: kustomize-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: kustomize-controller - namespace: flux-system ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.kubernetes.io/component: kustomize-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - control-plane: controller - name: kustomize-controller - namespace: flux-system -spec: - replicas: 1 - selector: - matchLabels: - app: kustomize-controller - template: - metadata: - annotations: - prometheus.io/port: "8080" - prometheus.io/scrape: "true" - labels: - app: kustomize-controller - app.kubernetes.io/component: kustomize-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - spec: - containers: - - args: - - --events-addr=http://notification-controller.$(RUNTIME_NAMESPACE).svc.cluster.local./ - - --watch-all-namespaces=true - - --log-level=info - - --log-encoding=json - - --enable-leader-election - env: - - name: RUNTIME_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: GOMEMLIMIT - valueFrom: - resourceFieldRef: - containerName: manager - resource: limits.memory - image: ghcr.io/fluxcd/kustomize-controller:v1.9.4 - imagePullPolicy: IfNotPresent - livenessProbe: - httpGet: - path: /healthz - port: healthz - name: manager - ports: - - containerPort: 8080 - name: http-prom - protocol: TCP - - containerPort: 9440 - name: healthz - protocol: TCP - readinessProbe: - httpGet: - path: /readyz - port: healthz - resources: - limits: - cpu: 1000m - memory: 1Gi - requests: - cpu: 100m - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - runAsNonRoot: true - seccompProfile: - type: RuntimeDefault - volumeMounts: - - mountPath: /tmp - name: temp - nodeSelector: - kubernetes.io/os: linux - priorityClassName: system-cluster-critical - securityContext: - fsGroup: 1337 - serviceAccountName: kustomize-controller - terminationGracePeriodSeconds: 60 - volumes: - - emptyDir: {} - name: temp ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.21.0 - kustomize.toolkit.fluxcd.io/substitute: disabled - labels: - app.kubernetes.io/component: helm-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: helmreleases.helm.toolkit.fluxcd.io -spec: - group: helm.toolkit.fluxcd.io - names: - categories: - - all - - fluxcd - - fluxcd-appliers - kind: HelmRelease - listKind: HelmReleaseList - plural: helmreleases - shortNames: - - hr - singular: helmrelease - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - name: v2 - schema: - openAPIV3Schema: - description: HelmRelease is the Schema for the helmreleases API - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: HelmReleaseSpec defines the desired state of a Helm release. - properties: - chart: - description: |- - Chart defines the template of the v1.HelmChart that should be created - for this HelmRelease. - properties: - metadata: - description: ObjectMeta holds the template for metadata like labels - and annotations. - properties: - annotations: - additionalProperties: - type: string - description: |- - Annotations is an unstructured key value map stored with a resource that may be - set by external tools to store and retrieve arbitrary metadata. They are not - queryable and should be preserved when modifying objects. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - type: object - labels: - additionalProperties: - type: string - description: |- - Map of string keys and values that can be used to organize and categorize - (scope and select) objects. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - type: object - type: object - spec: - description: Spec holds the template for the v1.HelmChartSpec - for this HelmRelease. - properties: - chart: - description: The name or path the Helm chart is available - at in the SourceRef. - maxLength: 2048 - minLength: 1 - type: string - ignoreMissingValuesFiles: - description: IgnoreMissingValuesFiles controls whether to - silently ignore missing values files rather than failing. - type: boolean - interval: - description: |- - Interval at which to check the v1.Source for updates. Defaults to - 'HelmReleaseSpec.Interval'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - reconcileStrategy: - default: ChartVersion - description: |- - Determines what enables the creation of a new artifact. Valid values are - ('ChartVersion', 'Revision'). - See the documentation of the values for an explanation on their behavior. - Defaults to ChartVersion when omitted. - enum: - - ChartVersion - - Revision - type: string - sourceRef: - description: The name and namespace of the v1.Source the chart - is available at. - properties: - apiVersion: - description: APIVersion of the referent. - type: string - kind: - description: Kind of the referent. - enum: - - HelmRepository - - GitRepository - - Bucket - type: string - name: - description: Name of the referent. - maxLength: 253 - minLength: 1 - type: string - namespace: - description: Namespace of the referent. - maxLength: 63 - minLength: 1 - type: string - required: - - kind - - name - type: object - valuesFiles: - description: |- - Alternative list of values files to use as the chart values (values.yaml - is not included by default), expected to be a relative path in the SourceRef. - Values files are merged in the order of this list with the last file overriding - the first. Ignored when omitted. - items: - type: string - type: array - verify: - description: |- - Verify contains the secret name containing the trusted public keys - used to verify the signature and specifies which provider to use to check - whether OCI image is authentic. - This field is only supported for OCI sources. - Chart dependencies, which are not bundled in the umbrella chart artifact, - are not verified. - properties: - provider: - default: cosign - description: Provider specifies the technology used to - sign the OCI Helm chart. - enum: - - cosign - - notation - type: string - secretRef: - description: |- - SecretRef specifies the Kubernetes Secret containing the - trusted public keys. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - required: - - provider - type: object - version: - default: '*' - description: |- - Version semver expression, ignored for charts from v1.GitRepository and - v1beta2.Bucket sources. Defaults to latest when omitted. - type: string - required: - - chart - - sourceRef - type: object - required: - - spec - type: object - chartRef: - description: |- - ChartRef holds a reference to a source controller resource containing the - Helm chart artifact. - properties: - apiVersion: - description: APIVersion of the referent. - type: string - kind: - description: Kind of the referent. - enum: - - OCIRepository - - HelmChart - - ExternalArtifact - type: string - name: - description: Name of the referent. - maxLength: 253 - minLength: 1 - type: string - namespace: - description: |- - Namespace of the referent, defaults to the namespace of the Kubernetes - resource object that contains the reference. - maxLength: 63 - minLength: 1 - type: string - required: - - kind - - name - type: object - commonMetadata: - description: |- - CommonMetadata specifies the common labels and annotations that are - applied to all resources. Any existing label or annotation will be - overridden if its key matches a common one. - properties: - annotations: - additionalProperties: - type: string - description: Annotations to be added to the object's metadata. - type: object - labels: - additionalProperties: - type: string - description: Labels to be added to the object's metadata. - type: object - type: object - dependsOn: - description: |- - DependsOn may contain a DependencyReference slice with - references to HelmRelease resources that must be ready before this HelmRelease - can be reconciled. - items: - description: |- - DependencyReference contains enough information to locate the referenced Kubernetes resource object - and optional CEL expression to assess its readiness. - properties: - name: - description: Name of the referent. - type: string - namespace: - description: |- - Namespace of the referent, defaults to the namespace of the resource - object that contains the reference. - type: string - readyExpr: - description: |- - ReadyExpr is a CEL expression that can be used to assess the readiness - of a dependency. When specified, the built-in readiness check - is replaced by the logic defined in the CEL expression. - To make the CEL expression additive to the built-in readiness check, - the feature gate `AdditiveCELDependencyCheck` must be set to `true`. - type: string - required: - - name - type: object - type: array - driftDetection: - description: |- - DriftDetection holds the configuration for detecting and handling - differences between the manifest in the Helm storage and the resources - currently existing in the cluster. - properties: - ignore: - description: |- - Ignore contains a list of rules for specifying which changes to ignore - during diffing. - items: - description: |- - IgnoreRule defines a rule to selectively disregard specific changes during - the drift detection process. - properties: - paths: - description: |- - Paths is a list of JSON Pointer (RFC 6901) paths to be excluded from - consideration in a Kubernetes object. - items: - type: string - type: array - target: - description: |- - Target is a selector for specifying Kubernetes objects to which this - rule applies. - If Target is not set, the Paths will be ignored for all Kubernetes - objects within the manifest of the Helm release. - properties: - annotationSelector: - description: |- - AnnotationSelector is a string that follows the label selection expression - https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api - It matches with the resource annotations. - type: string - group: - description: |- - Group is the API group to select resources from. - Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - kind: - description: |- - Kind of the API Group to select resources from. - Together with Group and Version it is capable of unambiguously - identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - labelSelector: - description: |- - LabelSelector is a string that follows the label selection expression - https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api - It matches with the resource labels. - type: string - name: - description: Name to match resources with. - type: string - namespace: - description: Namespace to select resources from. - type: string - version: - description: |- - Version of the API Group to select resources from. - Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - type: object - required: - - paths - type: object - type: array - mode: - description: |- - Mode defines how differences should be handled between the Helm manifest - and the manifest currently applied to the cluster. - If not explicitly set, it defaults to DiffModeDisabled. - enum: - - enabled - - warn - - disabled - type: string - type: object - healthCheckExprs: - description: |- - HealthCheckExprs is a list of healthcheck expressions for evaluating the - health of custom resources using Common Expression Language (CEL). - The expressions are evaluated only when the specific Helm action - taking place has wait enabled, i.e. DisableWait is false, and the - 'poller' WaitStrategy is used. - items: - description: CustomHealthCheck defines the health check for custom - resources. - properties: - apiVersion: - description: APIVersion of the custom resource under evaluation. - type: string - current: - description: |- - Current is the CEL expression that determines if the status - of the custom resource has reached the desired state. - type: string - failed: - description: |- - Failed is the CEL expression that determines if the status - of the custom resource has failed to reach the desired state. - type: string - inProgress: - description: |- - InProgress is the CEL expression that determines if the status - of the custom resource has not yet reached the desired state. - type: string - kind: - description: Kind of the custom resource under evaluation. - type: string - required: - - apiVersion - - current - type: object - type: array - install: - description: Install holds the configuration for Helm install actions - for this HelmRelease. - properties: - crds: - description: |- - CRDs upgrade CRDs from the Helm Chart's crds directory according - to the CRD upgrade policy provided here. Valid values are `Skip`, - `Create` or `CreateReplace`. Default is `Create` and if omitted - CRDs are installed but not updated. - - Skip: do neither install nor replace (update) any CRDs. - - Create: new CRDs are created, existing CRDs are neither updated nor deleted. - - CreateReplace: new CRDs are created, existing CRDs are updated (replaced) - but not deleted. - - By default, CRDs are applied (installed) during Helm install action. - With this option users can opt in to CRD replace existing CRDs on Helm - install actions, which is not (yet) natively supported by Helm. - https://helm.sh/docs/chart_best_practices/custom_resource_definitions. - enum: - - Skip - - Create - - CreateReplace - type: string - createNamespace: - description: |- - CreateNamespace tells the Helm install action to create the - HelmReleaseSpec.TargetNamespace if it does not exist yet. - On uninstall, the namespace will not be garbage collected. - type: boolean - disableHooks: - description: DisableHooks prevents hooks from running during the - Helm install action. - type: boolean - disableOpenAPIValidation: - description: |- - DisableOpenAPIValidation prevents the Helm install action from validating - rendered templates against the Kubernetes OpenAPI Schema. - type: boolean - disableSchemaValidation: - description: |- - DisableSchemaValidation prevents the Helm install action from validating - the values against the JSON Schema. - type: boolean - disableTakeOwnership: - description: |- - DisableTakeOwnership disables taking ownership of existing resources - during the Helm install action. Defaults to false. - type: boolean - disableWait: - description: |- - DisableWait disables the waiting for resources to be ready after a Helm - install has been performed. - type: boolean - disableWaitForJobs: - description: |- - DisableWaitForJobs disables waiting for jobs to complete after a Helm - install has been performed. - type: boolean - remediation: - description: |- - Remediation holds the remediation configuration for when the Helm install - action for the HelmRelease fails. The default is to not perform any action. - properties: - ignoreTestFailures: - description: |- - IgnoreTestFailures tells the controller to skip remediation when the Helm - tests are run after an install action but fail. Defaults to - 'Test.IgnoreFailures'. - type: boolean - remediateLastFailure: - description: |- - RemediateLastFailure tells the controller to remediate the last failure, when - no retries remain. Defaults to 'false'. - type: boolean - retries: - description: |- - Retries is the number of retries that should be attempted on failures before - bailing. Remediation, using an uninstall, is performed between each attempt. - Defaults to '0', a negative integer equals to unlimited retries. - type: integer - type: object - replace: - description: |- - Replace tells the Helm install action to re-use the 'ReleaseName', but only - if that name is a deleted release which remains in the history. - type: boolean - serverSideApply: - description: |- - ServerSideApply enables server-side apply for resources during install. - Defaults to true (or false when UseHelm3Defaults feature gate is enabled). - type: boolean - skipCRDs: - description: |- - SkipCRDs tells the Helm install action to not install any CRDs. By default, - CRDs are installed if not already present. - - Deprecated use CRD policy (`crds`) attribute with value `Skip` instead. - type: boolean - strategy: - description: |- - Strategy defines the install strategy to use for this HelmRelease. - Defaults to 'RemediateOnFailure', or 'RetryOnFailure' when the - DefaultToRetryOnFailure feature gate is enabled. - properties: - name: - description: Name of the install strategy. - enum: - - RemediateOnFailure - - RetryOnFailure - type: string - retryInterval: - description: |- - RetryInterval is the interval at which to retry a failed install. - Can be used only when Name is set to RetryOnFailure. - Defaults to '5m'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - required: - - name - type: object - x-kubernetes-validations: - - message: .retryInterval cannot be set when .name is 'RemediateOnFailure' - rule: '!has(self.retryInterval) || self.name != ''RemediateOnFailure''' - timeout: - description: |- - Timeout is the time to wait for any individual Kubernetes operation (like - Jobs for hooks) during the performance of a Helm install action. Defaults to - 'HelmReleaseSpec.Timeout'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - type: object - interval: - description: Interval at which to reconcile the Helm release. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - kubeConfig: - description: |- - KubeConfig for reconciling the HelmRelease on a remote cluster. - When used in combination with HelmReleaseSpec.ServiceAccountName, - forces the controller to act on behalf of that Service Account at the - target cluster. - If the --default-service-account flag is set, its value will be used as - a controller level fallback for when HelmReleaseSpec.ServiceAccountName - is empty. - properties: - configMapRef: - description: |- - ConfigMapRef holds an optional name of a ConfigMap that contains - the following keys: - - - `provider`: the provider to use. One of `aws`, `azure`, `gcp`, or - `generic`. Required. - - `cluster`: the fully qualified resource name of the Kubernetes - cluster in the cloud provider API. Not used by the `generic` - provider. Required when one of `address` or `ca.crt` is not set. - - `address`: the address of the Kubernetes API server. Required - for `generic`. For the other providers, if not specified, the - first address in the cluster resource will be used, and if - specified, it must match one of the addresses in the cluster - resource. - If audiences is not set, will be used as the audience for the - `generic` provider. - - `ca.crt`: the optional PEM-encoded CA certificate for the - Kubernetes API server. If not set, the controller will use the - CA certificate from the cluster resource. - - `audiences`: the optional audiences as a list of - line-break-separated strings for the Kubernetes ServiceAccount - token. Defaults to the `address` for the `generic` provider, or - to specific values for the other providers depending on the - provider. - - `serviceAccountName`: the optional name of the Kubernetes - ServiceAccount in the same namespace that should be used - for authentication. If not specified, the controller - ServiceAccount will be used. - - Mutually exclusive with SecretRef. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - secretRef: - description: |- - SecretRef holds an optional name of a secret that contains a key with - the kubeconfig file as the value. If no key is set, the key will default - to 'value'. Mutually exclusive with ConfigMapRef. - It is recommended that the kubeconfig is self-contained, and the secret - is regularly updated if credentials such as a cloud-access-token expire. - Cloud specific `cmd-path` auth helpers will not function without adding - binaries and credentials to the Pod that is responsible for reconciling - Kubernetes resources. Supported only for the generic provider. - properties: - key: - description: Key in the Secret, when not specified an implementation-specific - default key is used. - type: string - name: - description: Name of the Secret. - type: string - required: - - name - type: object - type: object - x-kubernetes-validations: - - message: exactly one of spec.kubeConfig.configMapRef or spec.kubeConfig.secretRef - must be specified - rule: has(self.configMapRef) || has(self.secretRef) - - message: exactly one of spec.kubeConfig.configMapRef or spec.kubeConfig.secretRef - must be specified - rule: '!has(self.configMapRef) || !has(self.secretRef)' - maxHistory: - description: |- - MaxHistory is the number of revisions saved by Helm for this HelmRelease. - Use '0' for an unlimited number of revisions; defaults to '5'. - type: integer - persistentClient: - description: |- - PersistentClient tells the controller to use a persistent Kubernetes - client for this release. When enabled, the client will be reused for the - duration of the reconciliation, instead of being created and destroyed - for each (step of a) Helm action. - - This can improve performance, but may cause issues with some Helm charts - that for example do create Custom Resource Definitions during installation - outside Helm's CRD lifecycle hooks, which are then not observed to be - available by e.g. post-install hooks. - - If not set, it defaults to true. - type: boolean - postRenderStrategy: - description: |- - PostRenderStrategy defines the strategy for sending hooks to post-renderers. - Valid values are 'nohooks' (hooks not sent to post-renderers, Helm 3 behavior), - 'combined' (hooks and templates sent together, Helm 4 default), and 'separate' - (hooks and templates sent in separate streams, Helm 4.2 opt-in). - Defaults to 'combined', or 'nohooks' when the UseHelm3Defaults feature gate is enabled. - enum: - - nohooks - - combined - - separate - type: string - postRenderers: - description: |- - PostRenderers holds an array of Helm PostRenderers, which will be applied in order - of their definition. - items: - description: PostRenderer contains a Helm PostRenderer specification. - properties: - kustomize: - description: Kustomization to apply as PostRenderer. - properties: - images: - description: |- - Images is a list of (image name, new name, new tag or digest) - for changing image names, tags or digests. This can also be achieved with a - patch, but this operator is simpler to specify. - items: - description: Image contains an image name, a new name, - a new tag or digest, which will replace the original - name and tag. - properties: - digest: - description: |- - Digest is the value used to replace the original image tag. - If digest is present NewTag value is ignored. - type: string - name: - description: Name is a tag-less image name. - type: string - newName: - description: NewName is the value used to replace - the original name. - type: string - newTag: - description: NewTag is the value used to replace the - original tag. - type: string - required: - - name - type: object - type: array - patches: - description: |- - Strategic merge and JSON patches, defined as inline YAML objects, - capable of targeting objects based on kind, label and annotation selectors. - items: - description: |- - Patch contains an inline StrategicMerge or JSON6902 patch, and the target the patch should - be applied to. - properties: - patch: - description: |- - Patch contains an inline StrategicMerge patch or an inline JSON6902 patch with - an array of operation objects. - type: string - target: - description: Target points to the resources that the - patch document should be applied to. - properties: - annotationSelector: - description: |- - AnnotationSelector is a string that follows the label selection expression - https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api - It matches with the resource annotations. - type: string - group: - description: |- - Group is the API group to select resources from. - Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - kind: - description: |- - Kind of the API Group to select resources from. - Together with Group and Version it is capable of unambiguously - identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - labelSelector: - description: |- - LabelSelector is a string that follows the label selection expression - https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api - It matches with the resource labels. - type: string - name: - description: Name to match resources with. - type: string - namespace: - description: Namespace to select resources from. - type: string - version: - description: |- - Version of the API Group to select resources from. - Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - type: object - required: - - patch - type: object - type: array - type: object - type: object - type: array - releaseName: - description: |- - ReleaseName used for the Helm release. Defaults to a composition of - '[TargetNamespace-]Name'. - maxLength: 53 - minLength: 1 - type: string - rollback: - description: Rollback holds the configuration for Helm rollback actions - for this HelmRelease. - properties: - cleanupOnFail: - description: |- - CleanupOnFail allows deletion of new resources created during the Helm - rollback action when it fails. - type: boolean - disableHooks: - description: DisableHooks prevents hooks from running during the - Helm rollback action. - type: boolean - disableWait: - description: |- - DisableWait disables the waiting for resources to be ready after a Helm - rollback has been performed. - type: boolean - disableWaitForJobs: - description: |- - DisableWaitForJobs disables waiting for jobs to complete after a Helm - rollback has been performed. - type: boolean - force: - description: |- - Force forces resource updates through a replacement strategy - that avoids 3-way merge conflicts on client-side apply. - This field is ignored for server-side apply (which always - forces conflicts with other field managers). - type: boolean - recreate: - description: |- - Recreate performs pod restarts for any managed workloads. - - Deprecated: This behavior was deprecated in Helm 3: - - Deprecation: https://github.com/helm/helm/pull/6463 - - Removal: https://github.com/helm/helm/pull/31023 - After helm-controller was upgraded to the Helm 4 SDK, - this field is no longer functional and will print a - warning if set to true. It will also be removed in a - future release. - type: boolean - serverSideApply: - description: |- - ServerSideApply enables server-side apply for resources during rollback. - Can be "enabled", "disabled", or "auto". - When "auto", server-side apply usage will be based on the release's previous usage. - Defaults to "auto". - enum: - - enabled - - disabled - - auto - type: string - timeout: - description: |- - Timeout is the time to wait for any individual Kubernetes operation (like - Jobs for hooks) during the performance of a Helm rollback action. Defaults to - 'HelmReleaseSpec.Timeout'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - type: object - serviceAccountName: - description: |- - The name of the Kubernetes service account to impersonate - when reconciling this HelmRelease. - maxLength: 253 - minLength: 1 - type: string - storageNamespace: - description: |- - StorageNamespace used for the Helm storage. - Defaults to the namespace of the HelmRelease. - maxLength: 63 - minLength: 1 - type: string - suspend: - description: |- - Suspend tells the controller to suspend reconciliation for this HelmRelease, - it does not apply to already started reconciliations. Defaults to false. - type: boolean - targetNamespace: - description: |- - TargetNamespace to target when performing operations for the HelmRelease. - Defaults to the namespace of the HelmRelease. - maxLength: 63 - minLength: 1 - type: string - test: - description: Test holds the configuration for Helm test actions for - this HelmRelease. - properties: - enable: - description: |- - Enable enables Helm test actions for this HelmRelease after an Helm install - or upgrade action has been performed. - type: boolean - filters: - description: Filters is a list of tests to run or exclude from - running. - items: - description: Filter holds the configuration for individual Helm - test filters. - properties: - exclude: - description: Exclude specifies whether the named test should - be excluded. - type: boolean - name: - description: Name is the name of the test. - maxLength: 253 - minLength: 1 - type: string - required: - - name - type: object - type: array - ignoreFailures: - description: |- - IgnoreFailures tells the controller to skip remediation when the Helm tests - are run but fail. Can be overwritten for tests run after install or upgrade - actions in 'Install.IgnoreTestFailures' and 'Upgrade.IgnoreTestFailures'. - type: boolean - timeout: - description: |- - Timeout is the time to wait for any individual Kubernetes operation during - the performance of a Helm test action. Defaults to 'HelmReleaseSpec.Timeout'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - type: object - timeout: - description: |- - Timeout is the time to wait for any individual Kubernetes operation (like Jobs - for hooks) during the performance of a Helm action. Defaults to '5m0s'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - uninstall: - description: Uninstall holds the configuration for Helm uninstall - actions for this HelmRelease. - properties: - deletionPropagation: - default: background - description: |- - DeletionPropagation specifies the deletion propagation policy when - a Helm uninstall is performed. - enum: - - background - - foreground - - orphan - type: string - disableHooks: - description: DisableHooks prevents hooks from running during the - Helm rollback action. - type: boolean - disableWait: - description: |- - DisableWait disables waiting for all the resources to be deleted after - a Helm uninstall is performed. - type: boolean - keepHistory: - description: |- - KeepHistory tells Helm to remove all associated resources and mark the - release as deleted, but retain the release history. - type: boolean - timeout: - description: |- - Timeout is the time to wait for any individual Kubernetes operation (like - Jobs for hooks) during the performance of a Helm uninstall action. Defaults - to 'HelmReleaseSpec.Timeout'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - type: object - upgrade: - description: Upgrade holds the configuration for Helm upgrade actions - for this HelmRelease. - properties: - chartNameChangeStrategy: - description: |- - ChartNameChangeStrategy defines the strategy to use when a Helm chart name changes. - Valid values are 'Reinstall' or 'InPlaceUpdate'. Defaults to 'Reinstall' if omitted. - - Reinstall: Reinstall the Helm release, uninstalling the existing Helm release. - - InPlaceUpdate: Update the Helm release in place. - enum: - - InPlaceUpdate - - Reinstall - type: string - cleanupOnFail: - description: |- - CleanupOnFail allows deletion of new resources created during the Helm - upgrade action when it fails. - type: boolean - crds: - description: |- - CRDs upgrade CRDs from the Helm Chart's crds directory according - to the CRD upgrade policy provided here. Valid values are `Skip`, - `Create` or `CreateReplace`. Default is `Skip` and if omitted - CRDs are neither installed nor upgraded. - - Skip: do neither install nor replace (update) any CRDs. - - Create: new CRDs are created, existing CRDs are neither updated nor deleted. - - CreateReplace: new CRDs are created, existing CRDs are updated (replaced) - but not deleted. - - By default, CRDs are not applied during Helm upgrade action. With this - option users can opt-in to CRD upgrade, which is not (yet) natively supported by Helm. - https://helm.sh/docs/chart_best_practices/custom_resource_definitions. - enum: - - Skip - - Create - - CreateReplace - type: string - disableHooks: - description: DisableHooks prevents hooks from running during the - Helm upgrade action. - type: boolean - disableOpenAPIValidation: - description: |- - DisableOpenAPIValidation prevents the Helm upgrade action from validating - rendered templates against the Kubernetes OpenAPI Schema. - type: boolean - disableSchemaValidation: - description: |- - DisableSchemaValidation prevents the Helm upgrade action from validating - the values against the JSON Schema. - type: boolean - disableTakeOwnership: - description: |- - DisableTakeOwnership disables taking ownership of existing resources - during the Helm upgrade action. Defaults to false. - type: boolean - disableWait: - description: |- - DisableWait disables the waiting for resources to be ready after a Helm - upgrade has been performed. - type: boolean - disableWaitForJobs: - description: |- - DisableWaitForJobs disables waiting for jobs to complete after a Helm - upgrade has been performed. - type: boolean - force: - description: |- - Force forces resource updates through a replacement strategy - that avoids 3-way merge conflicts on client-side apply. - This field is ignored for server-side apply (which always - forces conflicts with other field managers). - type: boolean - preserveValues: - description: |- - PreserveValues will make Helm reuse the last release's values and merge in - overrides from 'Values'. Setting this flag makes the HelmRelease - non-declarative. - type: boolean - remediation: - description: |- - Remediation holds the remediation configuration for when the Helm upgrade - action for the HelmRelease fails. The default is to not perform any action. - properties: - ignoreTestFailures: - description: |- - IgnoreTestFailures tells the controller to skip remediation when the Helm - tests are run after an upgrade action but fail. - Defaults to 'Test.IgnoreFailures'. - type: boolean - remediateLastFailure: - description: |- - RemediateLastFailure tells the controller to remediate the last failure, when - no retries remain. Defaults to 'false' unless 'Retries' is greater than 0. - type: boolean - retries: - description: |- - Retries is the number of retries that should be attempted on failures before - bailing. Remediation, using 'Strategy', is performed between each attempt. - Defaults to '0', a negative integer equals to unlimited retries. - type: integer - strategy: - description: Strategy to use for failure remediation. Defaults - to 'rollback'. - enum: - - rollback - - uninstall - type: string - type: object - serverSideApply: - description: |- - ServerSideApply enables server-side apply for resources during upgrade. - Can be "enabled", "disabled", or "auto". - When "auto", server-side apply usage will be based on the release's previous usage. - Defaults to "auto". - enum: - - enabled - - disabled - - auto - type: string - strategy: - description: |- - Strategy defines the upgrade strategy to use for this HelmRelease. - Defaults to 'RemediateOnFailure', or 'RetryOnFailure' when the - DefaultToRetryOnFailure feature gate is enabled. - properties: - name: - description: Name of the upgrade strategy. - enum: - - RemediateOnFailure - - RetryOnFailure - type: string - retryInterval: - description: |- - RetryInterval is the interval at which to retry a failed upgrade. - Can be used only when Name is set to RetryOnFailure. - Defaults to '5m'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - required: - - name - type: object - x-kubernetes-validations: - - message: .retryInterval can only be set when .name is 'RetryOnFailure' - rule: '!has(self.retryInterval) || self.name == ''RetryOnFailure''' - timeout: - description: |- - Timeout is the time to wait for any individual Kubernetes operation (like - Jobs for hooks) during the performance of a Helm upgrade action. Defaults to - 'HelmReleaseSpec.Timeout'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - type: object - values: - description: Values holds the values for this Helm release. - x-kubernetes-preserve-unknown-fields: true - valuesFrom: - description: |- - ValuesFrom holds references to resources containing Helm values for this HelmRelease, - and information about how they should be merged. - items: - description: |- - ValuesReference contains a reference to a resource containing Helm values, - and optionally the key they can be found at. - properties: - kind: - description: Kind of the values referent, valid values are ('Secret', - 'ConfigMap'). - enum: - - Secret - - ConfigMap - type: string - literal: - description: |- - Literal marks this ValuesReference as a literal value. When set in - combination with TargetPath, the referenced value is merged at the target - path without interpreting Helm's `--set` syntax (commas, brackets, dots, - equal signs, etc.), mirroring the behavior of `helm --set-literal`. This - is the only safe way to inject arbitrary file content (config files, JSON - blobs, multi-line strings containing special characters) through - `valuesFrom`. Has no effect when TargetPath is empty: in that mode the - referenced value is always YAML-merged at the root. - type: boolean - name: - description: |- - Name of the values referent. Should reside in the same namespace as the - referring resource. - maxLength: 253 - minLength: 1 - type: string - optional: - description: |- - Optional marks this ValuesReference as optional. When set, a not found error - for the values reference is ignored, but any ValuesKey, TargetPath or - transient error will still result in a reconciliation failure. - type: boolean - targetPath: - description: |- - TargetPath is the YAML dot notation path the value should be merged at. When - set, the ValuesKey is expected to be a single flat value. Defaults to 'None', - which results in the values getting merged at the root. - maxLength: 250 - pattern: ^([a-zA-Z0-9_\-.\\\/]|\[[0-9]{1,5}\])+$ - type: string - valuesKey: - description: |- - ValuesKey is the data key where the values.yaml or a specific value can be - found at. Defaults to 'values.yaml'. - maxLength: 253 - pattern: ^[\-._a-zA-Z0-9]+$ - type: string - required: - - kind - - name - type: object - type: array - waitStrategy: - description: |- - WaitStrategy defines Helm's wait strategy for waiting for applied - resources to become ready. - properties: - name: - description: |- - Name is Helm's wait strategy for waiting for applied resources to - become ready. One of 'poller' or 'legacy'. The 'poller' strategy uses - kstatus to poll resource statuses, while the 'legacy' strategy uses - Helm v3's waiting logic. - Defaults to 'poller', or to 'legacy' when UseHelm3Defaults feature - gate is enabled. - enum: - - poller - - legacy - type: string - required: - - name - type: object - required: - - interval - type: object - x-kubernetes-validations: - - message: either chart or chartRef must be set - rule: (has(self.chart) && !has(self.chartRef)) || (!has(self.chart) - && has(self.chartRef)) - status: - default: - observedGeneration: -1 - description: HelmReleaseStatus defines the observed state of a HelmRelease. - properties: - conditions: - description: Conditions holds the conditions for the HelmRelease. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - failures: - description: |- - Failures is the reconciliation failure count against the latest desired - state. It is reset after a successful reconciliation. - format: int64 - type: integer - helmChart: - description: |- - HelmChart is the namespaced name of the HelmChart resource created by - the controller for the HelmRelease. - type: string - history: - description: |- - History holds the history of Helm releases performed for this HelmRelease - up to the last successfully completed release. - items: - description: |- - Snapshot captures a point-in-time copy of the status information for a Helm release, - as managed by the controller. - properties: - action: - description: Action is the action that resulted in this snapshot - being created. - type: string - apiVersion: - description: |- - APIVersion is the API version of the Snapshot. - When the calculation method of the Digest field is changed, this - field will be used to distinguish between the old and new methods. - type: string - appVersion: - description: AppVersion is the chart app version of the release - object in storage. - type: string - chartName: - description: ChartName is the chart name of the release object - in storage. - type: string - chartVersion: - description: |- - ChartVersion is the chart version of the release object in - storage. - type: string - configDigest: - description: |- - ConfigDigest is the checksum of the config (better known as - "values") of the release object in storage. - It has the format of `:`. - type: string - deleted: - description: Deleted is when the release was deleted. - format: date-time - type: string - digest: - description: |- - Digest is the checksum of the release object in storage. - It has the format of `:`. - type: string - firstDeployed: - description: FirstDeployed is when the release was first deployed. - format: date-time - type: string - lastDeployed: - description: LastDeployed is when the release was last deployed. - format: date-time - type: string - name: - description: Name is the name of the release. - type: string - namespace: - description: Namespace is the namespace the release is deployed - to. - type: string - ociDigest: - description: OCIDigest is the digest of the OCI artifact associated - with the release. - type: string - status: - description: Status is the current state of the release. - type: string - testHooks: - additionalProperties: - description: |- - TestHookStatus holds the status information for a test hook as observed - to be run by the controller. - properties: - lastCompleted: - description: LastCompleted is the time the test hook last - completed. - format: date-time - type: string - lastStarted: - description: LastStarted is the time the test hook was - last started. - format: date-time - type: string - phase: - description: Phase the test hook was observed to be in. - type: string - type: object - description: |- - TestHooks is the list of test hooks for the release as observed to be - run by the controller. - type: object - version: - description: Version is the version of the release object in - storage. - type: integer - required: - - chartName - - chartVersion - - configDigest - - digest - - firstDeployed - - lastDeployed - - name - - namespace - - status - - version - type: object - type: array - installFailures: - description: |- - InstallFailures is the install failure count against the latest desired - state. It is reset after a successful reconciliation. - format: int64 - type: integer - inventory: - description: |- - Inventory contains the list of Kubernetes resource object references - that have been applied for this release. - properties: - entries: - description: Entries of Kubernetes resource object references. - items: - description: ResourceRef contains the information necessary - to locate a resource within a cluster. - properties: - id: - description: |- - ID is the string representation of the Kubernetes resource object's metadata, - in the format '___'. - type: string - v: - description: Version is the API version of the Kubernetes - resource object's kind. - type: string - required: - - id - - v - type: object - type: array - required: - - entries - type: object - lastAttemptedConfigDigest: - description: |- - LastAttemptedConfigDigest is the digest for the config (better known as - "values") of the last reconciliation attempt. - type: string - lastAttemptedGeneration: - description: |- - LastAttemptedGeneration is the last generation the controller attempted - to reconcile. - format: int64 - type: integer - lastAttemptedReleaseAction: - description: |- - LastAttemptedReleaseAction is the last release action performed for this - HelmRelease. It is used to determine the active retry or remediation - strategy. - enum: - - install - - upgrade - type: string - lastAttemptedReleaseActionDuration: - description: |- - LastAttemptedReleaseActionDuration is the duration of the last - release action performed for this HelmRelease. - type: string - lastAttemptedRevision: - description: |- - LastAttemptedRevision is the Source revision of the last reconciliation - attempt. For OCIRepository sources, the 12 first characters of the digest are - appended to the chart version e.g. "1.2.3+1234567890ab". - type: string - lastAttemptedRevisionDigest: - description: |- - LastAttemptedRevisionDigest is the digest of the last reconciliation attempt. - This is only set for OCIRepository sources. - type: string - lastAttemptedValuesChecksum: - description: |- - LastAttemptedValuesChecksum is the SHA1 checksum for the values of the last - reconciliation attempt. - - Deprecated: Use LastAttemptedConfigDigest instead. - type: string - lastHandledForceAt: - description: |- - LastHandledForceAt holds the value of the most recent - force request value, so a change of the annotation value - can be detected. - type: string - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - lastHandledResetAt: - description: |- - LastHandledResetAt holds the value of the most recent reset request - value, so a change of the annotation value can be detected. - type: string - lastReleaseRevision: - description: |- - LastReleaseRevision is the revision of the last successful Helm release. - - Deprecated: Use History instead. - type: integer - observedCommonMetadataDigest: - description: |- - ObservedCommonMetadataDigest is the digest for the common metadata of - the last successful reconciliation attempt. - type: string - observedGeneration: - description: ObservedGeneration is the last observed generation. - format: int64 - type: integer - observedPostRenderersDigest: - description: |- - ObservedPostRenderersDigest is the digest for the post-renderers of - the last successful reconciliation attempt. - type: string - storageNamespace: - description: |- - StorageNamespace is the namespace of the Helm release storage for the - current release. - maxLength: 63 - minLength: 1 - type: string - upgradeFailures: - description: |- - UpgradeFailures is the upgrade failure count against the latest desired - state. It is reset after a successful reconciliation. - format: int64 - type: integer - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.kubernetes.io/component: helm-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: helm-controller - namespace: flux-system ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.kubernetes.io/component: helm-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - control-plane: controller - name: helm-controller - namespace: flux-system -spec: - replicas: 1 - selector: - matchLabels: - app: helm-controller - template: - metadata: - annotations: - prometheus.io/port: "8080" - prometheus.io/scrape: "true" - labels: - app: helm-controller - app.kubernetes.io/component: helm-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - spec: - containers: - - args: - - --events-addr=http://notification-controller.$(RUNTIME_NAMESPACE).svc.cluster.local./ - - --watch-all-namespaces=true - - --log-level=info - - --log-encoding=json - - --enable-leader-election - env: - - name: RUNTIME_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: GOMEMLIMIT - valueFrom: - resourceFieldRef: - containerName: manager - resource: limits.memory - image: ghcr.io/fluxcd/helm-controller:v1.6.3 - imagePullPolicy: IfNotPresent - livenessProbe: - httpGet: - path: /healthz - port: healthz - name: manager - ports: - - containerPort: 8080 - name: http-prom - protocol: TCP - - containerPort: 9440 - name: healthz - protocol: TCP - readinessProbe: - httpGet: - path: /readyz - port: healthz - resources: - limits: - cpu: 1000m - memory: 1Gi - requests: - cpu: 100m - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - runAsNonRoot: true - seccompProfile: - type: RuntimeDefault - volumeMounts: - - mountPath: /tmp - name: temp - nodeSelector: - kubernetes.io/os: linux - priorityClassName: system-cluster-critical - securityContext: - fsGroup: 1337 - serviceAccountName: helm-controller - terminationGracePeriodSeconds: 600 - volumes: - - emptyDir: {} - name: temp ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.21.0 - kustomize.toolkit.fluxcd.io/substitute: disabled - labels: - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: alerts.notification.toolkit.fluxcd.io -spec: - group: notification.toolkit.fluxcd.io - names: - categories: - - all - - fluxcd - - fluxcd-notifications - kind: Alert - listKind: AlertList - plural: alerts - singular: alert - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - name: v1beta3 - schema: - openAPIV3Schema: - description: Alert is the Schema for the alerts API - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: AlertSpec defines an alerting rule for events involving a - list of objects. - properties: - eventMetadata: - additionalProperties: - type: string - description: |- - EventMetadata is an optional field for adding metadata to events dispatched by the - controller. This can be used for enhancing the context of the event. If a field - would override one already present on the original event as generated by the emitter, - then the override doesn't happen, i.e. the original value is preserved, and an info - log is printed. - type: object - eventSeverity: - default: info - description: |- - EventSeverity specifies how to filter events based on severity. - If set to 'info' no events will be filtered. - enum: - - info - - error - type: string - eventSources: - description: |- - EventSources specifies how to filter events based - on the involved object kind, name and namespace. - items: - description: |- - CrossNamespaceObjectReference contains enough information to let you locate the - typed referenced object at cluster level - properties: - apiVersion: - description: API version of the referent - type: string - kind: - description: Kind of the referent - enum: - - Bucket - - GitRepository - - Kustomization - - HelmRelease - - HelmChart - - HelmRepository - - ImageRepository - - ImagePolicy - - ImageUpdateAutomation - - OCIRepository - - ArtifactGenerator - - ExternalArtifact - type: string - matchLabels: - additionalProperties: - type: string - description: |- - MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - MatchLabels requires the name to be set to `*`. - type: object - name: - description: |- - Name of the referent - If multiple resources are targeted `*` may be set. - maxLength: 253 - minLength: 1 - type: string - namespace: - description: Namespace of the referent - maxLength: 253 - minLength: 1 - type: string - required: - - kind - - name - type: object - type: array - exclusionList: - description: |- - ExclusionList specifies a list of Golang regular expressions - to be used for excluding messages. - items: - type: string - type: array - inclusionList: - description: |- - InclusionList specifies a list of Golang regular expressions - to be used for including messages. - items: - type: string - type: array - providerRef: - description: ProviderRef specifies which Provider this Alert should - use. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - summary: - description: |- - Summary holds a short description of the impact and affected cluster. - Deprecated: Use EventMetadata instead. - maxLength: 255 - type: string - suspend: - description: |- - Suspend tells the controller to suspend subsequent - events handling for this Alert. - type: boolean - required: - - eventSources - - providerRef - type: object - type: object - served: true - storage: true - subresources: {} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.21.0 - kustomize.toolkit.fluxcd.io/substitute: disabled - labels: - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: providers.notification.toolkit.fluxcd.io -spec: - group: notification.toolkit.fluxcd.io - names: - categories: - - all - - fluxcd - - fluxcd-notifications - kind: Provider - listKind: ProviderList - plural: providers - singular: provider - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - name: v1beta3 - schema: - openAPIV3Schema: - description: Provider is the Schema for the providers API - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: ProviderSpec defines the desired state of the Provider. - properties: - address: - description: |- - Address specifies the endpoint, in a generic sense, to where alerts are sent. - What kind of endpoint depends on the specific Provider type being used. - For the generic Provider, for example, this is an HTTP/S address. - For other Provider types this could be a project ID or a namespace. - maxLength: 2048 - type: string - certSecretRef: - description: |- - CertSecretRef specifies the Secret containing TLS certificates - for secure communication. - - Supported configurations: - - CA-only: Server authentication (provide ca.crt only) - - mTLS: Mutual authentication (provide ca.crt + tls.crt + tls.key) - - Client-only: Client authentication with system CA (provide tls.crt + tls.key only) - - Legacy keys "caFile", "certFile", "keyFile" are supported but deprecated. Use "ca.crt", "tls.crt", "tls.key" instead. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - channel: - description: Channel specifies the destination channel where events - should be posted. - maxLength: 2048 - type: string - commitStatusExpr: - description: |- - CommitStatusExpr is a CEL expression that evaluates to a string value - that can be used to generate a custom commit status message for use - with eligible Provider types (github, gitlab, gitea, bitbucketserver, - bitbucket, azuredevops). Supported variables are: event, provider, - and alert. - type: string - interval: - description: |- - Interval at which to reconcile the Provider with its Secret references. - Deprecated and not used in v1beta3. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - proxy: - description: |- - Proxy the HTTP/S address of the proxy server. - Deprecated: Use ProxySecretRef instead. Will be removed in v1. - maxLength: 2048 - pattern: ^(http|https)://.*$ - type: string - proxySecretRef: - description: |- - ProxySecretRef specifies the Secret containing the proxy configuration - for this Provider. The Secret should contain an 'address' key with the - HTTP/S address of the proxy server. Optional 'username' and 'password' - keys can be provided for proxy authentication. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - secretRef: - description: |- - SecretRef specifies the Secret containing the authentication - credentials for this Provider. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - serviceAccountName: - description: |- - ServiceAccountName is the name of the Kubernetes ServiceAccount used to - authenticate with cloud provider services through workload identity. - This enables multi-tenant authentication without storing static credentials. - - Supported provider types: azureeventhub, azuredevops, googlepubsub - - When specified, the controller will: - 1. Create an OIDC token for the specified ServiceAccount - 2. Exchange it for cloud provider credentials via STS - 3. Use the obtained credentials for API authentication - - When unspecified, controller-level authentication is used (single-tenant). - - An error is thrown if static credentials are also defined in SecretRef. - This field requires the ObjectLevelWorkloadIdentity feature gate to be enabled. - type: string - suspend: - description: |- - Suspend tells the controller to suspend subsequent - events handling for this Provider. - type: boolean - timeout: - description: Timeout for sending alerts to the Provider. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ - type: string - type: - description: Type specifies which Provider implementation to use. - enum: - - slack - - discord - - msteams - - rocket - - generic - - generic-hmac - - github - - gitlab - - gitea - - giteapullrequestcomment - - bitbucketserver - - bitbucket - - azuredevops - - googlechat - - googlepubsub - - webex - - sentry - - azureeventhub - - telegram - - lark - - matrix - - opsgenie - - alertmanager - - grafana - - githubdispatch - - githubpullrequestcomment - - gitlabmergerequestcomment - - pagerduty - - datadog - - nats - - zulip - - otel - type: string - username: - description: Username specifies the name under which events are posted. - maxLength: 2048 - type: string - required: - - type - type: object - x-kubernetes-validations: - - message: spec.commitStatusExpr is only supported for the 'github', 'gitlab', - 'gitea', 'bitbucketserver', 'bitbucket', 'azuredevops' provider types - rule: self.type == 'github' || self.type == 'gitlab' || self.type == - 'gitea' || self.type == 'bitbucketserver' || self.type == 'bitbucket' - || self.type == 'azuredevops' || !has(self.commitStatusExpr) - type: object - served: true - storage: true - subresources: {} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.21.0 - kustomize.toolkit.fluxcd.io/substitute: disabled - labels: - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: receivers.notification.toolkit.fluxcd.io -spec: - group: notification.toolkit.fluxcd.io - names: - categories: - - all - - fluxcd - - fluxcd-notifications - kind: Receiver - listKind: ReceiverList - plural: receivers - singular: receiver - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - name: v1 - schema: - openAPIV3Schema: - description: Receiver is the Schema for the receivers API. - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: ReceiverSpec defines the desired state of the Receiver. - properties: - events: - description: |- - Events specifies the list of event types to handle, - e.g. 'push' for GitHub or 'Push Hook' for GitLab. - items: - type: string - type: array - interval: - default: 10m - description: Interval at which to reconcile the Receiver with its - Secret references. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - oidcProviders: - description: |- - OIDCProviders specifies the OIDC providers used to authenticate incoming - requests when Type is 'generic-oidc'. The provider whose IssuerURL matches - the token's 'iss' claim is used to verify the token signature, expiration - and audience, and to evaluate the configured CEL validations against the - token claims. - items: - description: |- - OIDCProvider configures an OIDC issuer used to authenticate requests for a - 'generic-oidc' Receiver. - properties: - audience: - description: |- - Audience is the expected audience ('aud' claim) for tokens issued by - this provider. Defaults to 'notification-controller'. - type: string - issuerURL: - description: |- - IssuerURL is the OIDC issuer URL used for provider discovery. It must - match the 'iss' claim of tokens issued by this provider. - pattern: ^https?:// - type: string - validations: - description: |- - Validations is the list of CEL boolean expressions evaluated against the - token claims and the variables. The request is accepted only if all of - them evaluate to true; the message of each failing expression is returned - to the caller. - - At least one validation is required. A valid signature alone does not - authorize a request: public issuers issue tokens to any caller on the - platform, so the validations must constrain the caller's identity claims - (e.g. 'repository_owner' for GitHub Actions). - items: - description: |- - OIDCValidation is a CEL boolean expression evaluated against the OIDC token - claims and variables of a 'generic-oidc' Receiver. - properties: - expression: - description: Expression is the CEL boolean expression - to evaluate. - type: string - message: - description: Message is returned to the caller when the - expression evaluates to false. - type: string - required: - - expression - - message - type: object - minItems: 1 - type: array - variables: - description: |- - Variables is an optional list of named CEL expressions, evaluated in order - and exposed as 'vars.'. Each expression can read the token claims - via 'claims' and any variable defined before it. Use it to share - sub-expressions across validations. - items: - description: |- - OIDCVariable is a named CEL expression evaluated against the OIDC token - claims of a 'generic-oidc' Receiver. - properties: - expression: - description: Expression is the CEL expression that defines - the variable value. - type: string - name: - description: Name is the variable name; it must be a valid - CEL identifier. - type: string - required: - - expression - - name - type: object - type: array - required: - - issuerURL - - validations - type: object - type: array - x-kubernetes-list-map-keys: - - issuerURL - x-kubernetes-list-type: map - resourceFilter: - description: |- - ResourceFilter is a CEL expression expected to return a boolean that is - evaluated for each resource referenced in the Resources field when a - webhook is received. If the expression returns false then the controller - will not request a reconciliation for the resource. - The expression can read the resource metadata via 'res' and the webhook - request body via 'req'. For generic-oidc receivers, the verified OIDC - token claims are also available via 'claims'. - When the expression is specified the controller will parse it and mark - the object as terminally failed if the expression is invalid or does not - return a boolean. - type: string - resources: - description: A list of resources to be notified about changes. - items: - description: |- - ReceiverResource references a resource to be notified about changes, with an - optional per-resource CEL filter. - properties: - apiVersion: - description: API version of the referent - type: string - filter: - description: |- - Filter is a CEL expression expected to return a boolean that is evaluated - for each resource matched by this reference when a webhook is received, - in addition to the top-level resourceFilter. A reconciliation is requested - only when both expressions (when set) return true. - The expression can read the resource metadata via 'res' and the webhook - request body via 'req'. For generic-oidc receivers, the verified OIDC - token claims are also available via 'claims'. - When the expression is specified the controller will parse it and mark - the object as terminally failed if the expression is invalid or does not - return a boolean. - type: string - kind: - description: Kind of the referent - enum: - - Bucket - - GitRepository - - Kustomization - - HelmRelease - - HelmChart - - HelmRepository - - ImageRepository - - ImagePolicy - - ImageUpdateAutomation - - OCIRepository - - ArtifactGenerator - - ExternalArtifact - type: string - matchLabels: - additionalProperties: - type: string - description: |- - MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - MatchLabels requires the name to be set to `*`. - type: object - name: - description: |- - Name of the referent - If multiple resources are targeted `*` may be set. - maxLength: 253 - minLength: 1 - type: string - namespace: - description: Namespace of the referent - maxLength: 253 - minLength: 1 - type: string - required: - - kind - - name - type: object - type: array - secretRef: - description: |- - SecretRef specifies the Secret containing the token used - to validate the payload authenticity. The Secret must contain a 'token' - key. For GCR receivers, the Secret must also contain an 'email' key - with the IAM service account email configured on the Pub/Sub push - subscription, and an 'audience' key with the expected OIDC token audience. - - Required for all receiver types except 'generic-oidc', which authenticates - requests using the OIDC token instead and must not set this field. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - suspend: - description: |- - Suspend tells the controller to suspend subsequent - events handling for this receiver. - type: boolean - type: - description: |- - Type of webhook sender, used to determine - the validation procedure and payload deserialization. - enum: - - generic - - generic-hmac - - generic-oidc - - github - - gitlab - - bitbucket - - harbor - - dockerhub - - quay - - gcr - - nexus - - acr - - cdevents - type: string - required: - - resources - - type - type: object - x-kubernetes-validations: - - message: generic-oidc receivers must define at least one oidcProvider - rule: self.type != 'generic-oidc' || (has(self.oidcProviders) && size(self.oidcProviders) - > 0) - - message: oidcProviders can only be set when type is generic-oidc - rule: self.type == 'generic-oidc' || !has(self.oidcProviders) || size(self.oidcProviders) - == 0 - - message: secretRef cannot be set when type is generic-oidc - rule: self.type != 'generic-oidc' || !has(self.secretRef) - - message: secretRef is required when type is not generic-oidc - rule: self.type == 'generic-oidc' || has(self.secretRef) - status: - default: - observedGeneration: -1 - description: ReceiverStatus defines the observed state of the Receiver. - properties: - conditions: - description: Conditions holds the conditions for the Receiver. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedGeneration: - description: ObservedGeneration is the last observed generation of - the Receiver object. - format: int64 - type: integer - webhookPath: - description: |- - WebhookPath is the generated incoming webhook address in the format - of '/hook/sha256sum(token+name+namespace)'. - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - name: notification-controller - namespace: flux-system ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - control-plane: controller - name: notification-controller - namespace: flux-system -spec: - ports: - - name: http - port: 80 - protocol: TCP - targetPort: http - selector: - app: notification-controller - type: ClusterIP ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - control-plane: controller - name: webhook-receiver - namespace: flux-system -spec: - ports: - - name: http - port: 80 - protocol: TCP - targetPort: http-webhook - selector: - app: notification-controller - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - control-plane: controller - name: notification-controller - namespace: flux-system -spec: - replicas: 1 - selector: - matchLabels: - app: notification-controller - template: - metadata: - annotations: - prometheus.io/port: "8080" - prometheus.io/scrape: "true" - labels: - app: notification-controller - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.9.3 - spec: - containers: - - args: - - --watch-all-namespaces=true - - --log-level=info - - --log-encoding=json - - --enable-leader-election - env: - - name: RUNTIME_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: GOMEMLIMIT - valueFrom: - resourceFieldRef: - containerName: manager - resource: limits.memory - image: ghcr.io/fluxcd/notification-controller:v1.9.2 - imagePullPolicy: IfNotPresent - livenessProbe: - httpGet: - path: /healthz - port: healthz - name: manager - ports: - - containerPort: 9090 - name: http - protocol: TCP - - containerPort: 9292 - name: http-webhook - protocol: TCP - - containerPort: 8080 - name: http-prom - protocol: TCP - - containerPort: 9440 - name: healthz - protocol: TCP - readinessProbe: - httpGet: - path: /readyz - port: healthz - resources: - limits: - cpu: 1000m - memory: 1Gi - requests: - cpu: 100m - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - runAsNonRoot: true - seccompProfile: - type: RuntimeDefault - volumeMounts: - - mountPath: /tmp - name: temp - nodeSelector: - kubernetes.io/os: linux - securityContext: - fsGroup: 1337 - serviceAccountName: notification-controller - terminationGracePeriodSeconds: 10 - volumes: - - emptyDir: {} - name: temp diff --git a/clusters/sarex-contour/flux-system/gotk-sync.yaml b/clusters/sarex-contour/flux-system/gotk-sync.yaml deleted file mode 100644 index a90272c..0000000 --- a/clusters/sarex-contour/flux-system/gotk-sync.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# This manifest was generated by flux. DO NOT EDIT. ---- -apiVersion: source.toolkit.fluxcd.io/v1 -kind: GitRepository -metadata: - name: flux-system - namespace: flux-system -spec: - interval: 1m0s - ref: - branch: master - secretRef: - name: flux-system - url: https://gitlab.sarex.io/infra/iac.git ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: flux-system - namespace: flux-system -spec: - interval: 10m0s - path: ./clusters/sarex-contour - prune: true - sourceRef: - kind: GitRepository - name: flux-system diff --git a/clusters/sarex-contour/flux-system/kustomization.yaml b/clusters/sarex-contour/flux-system/kustomization.yaml deleted file mode 100644 index 3842229..0000000 --- a/clusters/sarex-contour/flux-system/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- gotk-components.yaml -- gotk-sync.yaml diff --git a/clusters/sarex-contour/helm-repositories.yaml b/clusters/sarex-contour/helm-repositories.yaml deleted file mode 100644 index bbdeea6..0000000 --- a/clusters/sarex-contour/helm-repositories.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -apiVersion: source.toolkit.fluxcd.io/v1 -kind: HelmRepository -metadata: - name: yc-oci-charts - namespace: flux-system -spec: - type: oci - interval: 10m0s - url: oci://cr.yandex/crp3ccidau046kdj8g9q/charts - secretRef: - name: yc-cr-auth diff --git a/clusters/sarex-contour/kustomization.yaml b/clusters/sarex-contour/kustomization.yaml deleted file mode 100644 index 62ef2d2..0000000 --- a/clusters/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,45 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ./flux-system - - ./helm-repositories.yaml - -# infrastructure - - ../../infrastructure/istio-base/sarex-contour - - ../../infrastructure/istio-pilot/sarex-contour - - ../../infrastructure/istio-gateway/sarex-contour - - ../../infrastructure/vault/sarex-contour - - ../../infrastructure/kafka/sarex-contour - - ../../infrastructure/rabbitmq/sarex-contour - - ../../infrastructure/zitadel/sarex-contour - -# apps - - ../../apps/control-interface/sarex-contour - - ../../apps/workspaces/sarex-contour - - ../../apps/django/sarex-contour - - ../../apps/eav/sarex-contour - - ../../apps/bi/sarex-contour - - ../../apps/auth-flow/sarex-contour - - ../../apps/document-link/sarex-contour - - ../../apps/flows/sarex-contour - - ../../apps/issues/sarex-contour - - ../../apps/checklists/sarex-contour - - ../../apps/contracts/sarex-contour - - ../../apps/attachments/sarex-contour - - ../../apps/documentations/sarex-contour - - ../../apps/cross-section/sarex-contour - - ../../apps/prescriptions/sarex-contour - - ../../apps/projects/sarex-contour - - ../../apps/remarks/sarex-contour - - ../../apps/reviews/sarex-contour - - ../../apps/stamp-verification/sarex-contour - - ../../apps/bim/sarex-contour - - ../../apps/comparisons/sarex-contour - - ../../apps/drawings/sarex-contour - - ../../apps/inspections/sarex-contour - - ../../apps/mapper/sarex-contour - - ../../apps/measurements/sarex-contour - - ../../apps/notes/sarex-contour - - ../../apps/rfi/sarex-contour - - ../../apps/subscriptions/sarex-contour - - ../../apps/system-log/sarex-contour diff --git a/clusters/yc-k8s-test/bootstrap-jobs/kustomization.yaml b/clusters/yc-k8s-test/bootstrap-jobs/kustomization.yaml deleted file mode 100644 index 24283cb..0000000 --- a/clusters/yc-k8s-test/bootstrap-jobs/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - service-bootstrap-jobs.yaml - diff --git a/clusters/yc-k8s-test/bootstrap-jobs/service-bootstrap-jobs.yaml b/clusters/yc-k8s-test/bootstrap-jobs/service-bootstrap-jobs.yaml deleted file mode 100644 index e4dfd7b..0000000 --- a/clusters/yc-k8s-test/bootstrap-jobs/service-bootstrap-jobs.yaml +++ /dev/null @@ -1,323 +0,0 @@ -apiVersion: batch/v1 -kind: CronJob -metadata: - name: rabbitmq-apps-bootstrap - namespace: rabbitmq -spec: - schedule: "*/10 * * * *" - successfulJobsHistoryLimit: 1 - failedJobsHistoryLimit: 2 - concurrencyPolicy: Forbid - jobTemplate: - spec: - backoffLimit: 0 - activeDeadlineSeconds: 600 - template: - metadata: - annotations: - sidecar.istio.io/inject: "false" - spec: - restartPolicy: OnFailure - serviceAccountName: rabbitmq - automountServiceAccountToken: false - volumes: - - name: sa-token - projected: - sources: - - serviceAccountToken: - path: token - expirationSeconds: 3600 - containers: - - name: bootstrap - image: alpine:3.20 - volumeMounts: - - name: sa-token - mountPath: /var/run/secrets/tokens - readOnly: true - command: ["/bin/sh", "-ec"] - args: - - | - apk add --no-cache curl jq >/dev/null - VAULT_ADDR="http://vault-vault-contour.vault.svc:8200" - JWT="$(cat /var/run/secrets/tokens/token)" - VAULT_TOKEN="$(curl -sS --request POST \ - --data "{\"role\":\"rabbitmq\",\"jwt\":\"${JWT}\"}" \ - "${VAULT_ADDR}/v1/auth/kubernetes/login" | jq -r '.auth.client_token')" - [ -n "${VAULT_TOKEN}" ] && [ "${VAULT_TOKEN}" != "null" ] - - admin_json="$(curl -sS -H "X-Vault-Token: ${VAULT_TOKEN}" "${VAULT_ADDR}/v1/secrets/data/rabbitmq/auth")" - admin_user="$(echo "${admin_json}" | jq -r '.data.data.username')" - admin_pass="$(echo "${admin_json}" | jq -r '.data.data.password')" - list_json="$(curl -sS -H "X-Vault-Token: ${VAULT_TOKEN}" "${VAULT_ADDR}/v1/secrets/metadata/rabbitmq/apps?list=true")" - for app in $(echo "${list_json}" | jq -r '.data.keys[]?' | sed 's#/$##'); do - app_json="$(curl -sS -H "X-Vault-Token: ${VAULT_TOKEN}" "${VAULT_ADDR}/v1/secrets/data/rabbitmq/apps/${app}")" - username="$(echo "${app_json}" | jq -r '.data.data.username')" - password="$(echo "${app_json}" | jq -r '.data.data.password')" - [ -z "${username}" ] && username="${app}" - [ -z "${password}" ] && continue - - curl -sS -u "${admin_user}:${admin_pass}" -H "content-type:application/json" \ - -X PUT "http://rabbitmq.rabbitmq.svc.cluster.local:15672/api/users/${username}" \ - -d "{\"password\":\"${password}\",\"tags\":\"\"}" >/dev/null - - vhosts_count="$(echo "${app_json}" | jq -r '(.data.data.vhosts // []) | length')" - if [ "${vhosts_count}" -gt 0 ]; then - echo "${app_json}" | jq -c '.data.data.vhosts[]' | while read -r vhost_item; do - vhost="$(echo "${vhost_item}" | jq -r '.name // "/"')" - configure="$(echo "${vhost_item}" | jq -r '.permissions.configure // ".*"')" - write="$(echo "${vhost_item}" | jq -r '.permissions.write // ".*"')" - read="$(echo "${vhost_item}" | jq -r '.permissions.read // ".*"')" - vhost_uri="$(jq -rn --arg v "${vhost}" '$v|@uri')" - - curl -sS -u "${admin_user}:${admin_pass}" -H "content-type:application/json" \ - -X PUT "http://rabbitmq.rabbitmq.svc.cluster.local:15672/api/vhosts/${vhost_uri}" \ - -d '{}' >/dev/null - curl -sS -u "${admin_user}:${admin_pass}" -H "content-type:application/json" \ - -X PUT "http://rabbitmq.rabbitmq.svc.cluster.local:15672/api/permissions/${vhost_uri}/${username}" \ - -d "{\"configure\":\"${configure}\",\"write\":\"${write}\",\"read\":\"${read}\"}" >/dev/null - done - else - vhost="$(echo "${app_json}" | jq -r '.data.data.vhost // "/"')" - configure="$(echo "${app_json}" | jq -r '.data.data.permissions.configure // ".*"')" - write="$(echo "${app_json}" | jq -r '.data.data.permissions.write // ".*"')" - read="$(echo "${app_json}" | jq -r '.data.data.permissions.read // ".*"')" - vhost_uri="$(jq -rn --arg v "${vhost}" '$v|@uri')" - - curl -sS -u "${admin_user}:${admin_pass}" -H "content-type:application/json" \ - -X PUT "http://rabbitmq.rabbitmq.svc.cluster.local:15672/api/vhosts/${vhost_uri}" \ - -d '{}' >/dev/null - curl -sS -u "${admin_user}:${admin_pass}" -H "content-type:application/json" \ - -X PUT "http://rabbitmq.rabbitmq.svc.cluster.local:15672/api/permissions/${vhost_uri}/${username}" \ - -d "{\"configure\":\"${configure}\",\"write\":\"${write}\",\"read\":\"${read}\"}" >/dev/null - fi - done ---- -apiVersion: batch/v1 -kind: CronJob -metadata: - name: minio-apps-bootstrap - namespace: minio -spec: - schedule: "*/10 * * * *" - successfulJobsHistoryLimit: 1 - failedJobsHistoryLimit: 2 - concurrencyPolicy: Forbid - jobTemplate: - spec: - template: - metadata: - annotations: - sidecar.istio.io/inject: "false" - spec: - restartPolicy: OnFailure - serviceAccountName: minio-sa - automountServiceAccountToken: false - volumes: - - name: sa-token - projected: - sources: - - serviceAccountToken: - path: token - expirationSeconds: 3600 - containers: - - name: bootstrap - image: alpine:3.20 - volumeMounts: - - name: sa-token - mountPath: /var/run/secrets/tokens - readOnly: true - command: ["/bin/sh", "-ec"] - args: - - | - apk add --no-cache curl jq >/dev/null - curl -fsSL -o /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64/mc - chmod +x /usr/local/bin/mc - - VAULT_ADDR="http://vault-vault-contour.vault.svc:8200" - JWT="$(cat /var/run/secrets/tokens/token)" - VAULT_TOKEN="$(curl -sS --request POST \ - --data "{\"role\":\"minio\",\"jwt\":\"${JWT}\"}" \ - "${VAULT_ADDR}/v1/auth/kubernetes/login" | jq -r '.auth.client_token')" - [ -n "${VAULT_TOKEN}" ] && [ "${VAULT_TOKEN}" != "null" ] - - admin_json="$(curl -sS -H "X-Vault-Token: ${VAULT_TOKEN}" "${VAULT_ADDR}/v1/secrets/data/minio/admin")" - root_user="$(echo "${admin_json}" | jq -r '.data.data.rootUser')" - root_pass="$(echo "${admin_json}" | jq -r '.data.data.rootPassword')" - /usr/local/bin/mc alias set local http://minio.minio.svc.cluster.local:9000 "${root_user}" "${root_pass}" - - list_json="$(curl -sS -H "X-Vault-Token: ${VAULT_TOKEN}" "${VAULT_ADDR}/v1/secrets/metadata/minio/apps?list=true")" - for app in $(echo "${list_json}" | jq -r '.data.keys[]?' | sed 's#/$##'); do - app_json="$(curl -sS -H "X-Vault-Token: ${VAULT_TOKEN}" "${VAULT_ADDR}/v1/secrets/data/minio/apps/${app}")" - username="$(echo "${app_json}" | jq -r '.data.data.username')" - password="$(echo "${app_json}" | jq -r '.data.data.password')" - access_key="$(echo "${app_json}" | jq -r '.data.data.access_key // .data.data.username // empty')" - secret_key="$(echo "${app_json}" | jq -r '.data.data.secret_key // .data.data.password // empty')" - policy="$(echo "${app_json}" | jq -r '.data.data.policy // empty')" - [ -z "${username}" ] && username="${app}" - [ -z "${access_key}" ] && access_key="${username}" - [ -z "${secret_key}" ] && secret_key="${password}" - [ -z "${secret_key}" ] && continue - - /usr/local/bin/mc admin user add local "${access_key}" "${secret_key}" >/dev/null 2>&1 || true - /usr/local/bin/mc admin user enable local "${access_key}" >/dev/null 2>&1 || true - if [ -n "${policy}" ]; then - /usr/local/bin/mc admin policy attach local "${policy}" --user "${access_key}" >/dev/null 2>&1 || true - fi - - echo "${app_json}" | jq -r '.data.data.buckets[]? | if type=="string" then . else .name // empty end' | while read -r bucket; do - [ -z "${bucket}" ] && continue - /usr/local/bin/mc mb --ignore-existing "local/${bucket}" >/dev/null 2>&1 || true - done - done ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: kafka-bootstrap-exec - namespace: kafka -rules: - - apiGroups: [""] - resources: ["pods"] - verbs: ["get", "list"] - - apiGroups: [""] - resources: ["pods/exec"] - verbs: ["create", "get"] ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: kafka-bootstrap-exec - namespace: kafka -subjects: - - kind: ServiceAccount - name: kafka-kafka-contour - namespace: kafka -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: kafka-bootstrap-exec ---- -apiVersion: batch/v1 -kind: CronJob -metadata: - name: kafka-apps-bootstrap - namespace: kafka -spec: - schedule: "*/10 * * * *" - successfulJobsHistoryLimit: 1 - failedJobsHistoryLimit: 2 - concurrencyPolicy: Forbid - jobTemplate: - spec: - template: - metadata: - annotations: - sidecar.istio.io/inject: "false" - spec: - restartPolicy: OnFailure - serviceAccountName: kafka-kafka-contour - automountServiceAccountToken: true - volumes: - - name: sa-token - projected: - sources: - - serviceAccountToken: - path: token - expirationSeconds: 3600 - containers: - - name: bootstrap - image: alpine:3.20 - volumeMounts: - - name: sa-token - mountPath: /var/run/secrets/tokens - readOnly: true - command: ["/bin/sh", "-ec"] - args: - - | - set -e - apk add --no-cache bash curl jq kubectl >/dev/null - - VAULT_ADDR="http://vault-vault-contour.vault.svc:8200" - JWT="$(cat /var/run/secrets/tokens/token)" - VAULT_TOKEN="$(curl -sS --request POST \ - --data "{\"role\":\"kafka\",\"jwt\":\"${JWT}\"}" \ - "${VAULT_ADDR}/v1/auth/kubernetes/login" | jq -r '.auth.client_token')" - [ -n "${VAULT_TOKEN}" ] && [ "${VAULT_TOKEN}" != "null" ] - - bootstrap_json="$(curl -sS -H "X-Vault-Token: ${VAULT_TOKEN}" "${VAULT_ADDR}/v1/secrets/data/kafka/bootstrap")" - inter_broker_password="$(echo "${bootstrap_json}" | jq -r '.data.data.interBrokerPassword')" - [ -n "${inter_broker_password}" ] && [ "${inter_broker_password}" != "null" ] - list_json="$(curl -sS -H "X-Vault-Token: ${VAULT_TOKEN}" "${VAULT_ADDR}/v1/secrets/metadata/kafka/apps?list=true")" - target_pod="kafka-kafka-contour-controller-0" - if ! kubectl -n kafka get pod "${target_pod}" >/dev/null 2>&1; then - echo "Kafka controller pod not found" - exit 1 - fi - target_bootstrap="${target_pod}.kafka-kafka-contour-controller-headless.kafka.svc.cluster.local:9094" - - admin_props="$(mktemp)" - printf "%s\n" \ - "security.protocol=SASL_PLAINTEXT" \ - "sasl.mechanism=PLAIN" \ - "sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username='inter_broker_user' password='${inter_broker_password}';" \ - "default.api.timeout.ms=60000" \ - "request.timeout.ms=60000" \ - > "${admin_props}" - kubectl -n kafka exec -i "${target_pod}" -c kafka -- /bin/bash -lc 'cat > /tmp/admin.properties' < "${admin_props}" - rm -f "${admin_props}" - kubectl -n kafka exec "${target_pod}" -c kafka -- /bin/bash -lc 'test -s /tmp/admin.properties' - - for app in $(echo "${list_json}" | jq -r '.data.keys[]?' | sed 's#/$##'); do - app_json="$(curl -sS -H "X-Vault-Token: ${VAULT_TOKEN}" "${VAULT_ADDR}/v1/secrets/data/kafka/apps/${app}")" - username="$(echo "${app_json}" | jq -r '.data.data.username')" - password="$(echo "${app_json}" | jq -r '.data.data.password')" - [ -z "${username}" ] && username="${app}" - [ -z "${password}" ] && continue - - echo "Reconciling Kafka user ${username}" - user_reconciled=false - attempt=1 - while [ "${attempt}" -le 3 ]; do - if kubectl -n kafka exec "${target_pod}" -c kafka -- /bin/bash -lc "\ - timeout 60 /opt/bitnami/kafka/bin/kafka-configs.sh --bootstrap-server ${target_bootstrap} --command-config /tmp/admin.properties \ - --alter --add-config 'SCRAM-SHA-512=[password=${password}]' \ - --entity-type users --entity-name '${username}' - " >/dev/null; then - user_reconciled=true - break - fi - echo "Kafka user ${username} reconcile attempt ${attempt}/3 failed" - attempt=$((attempt + 1)) - sleep 5 - done - if [ "${user_reconciled}" != "true" ]; then - echo "Kafka user ${username} reconcile failed, continue" - continue - fi - - echo "${app_json}" | jq -c '.data.data.topics[]?' | while read -r topic_item; do - topic_name="$(echo "${topic_item}" | jq -r '.name // empty')" - partitions="$(echo "${topic_item}" | jq -r '.partitions // 3')" - replication_factor="$(echo "${topic_item}" | jq -r '.replication_factor // 1')" - topic_configs="$(echo "${topic_item}" | jq -r '(.configs // {}) | to_entries | map("\(.key)=\(.value|tostring)") | join(",")')" - [ -z "${topic_name}" ] && continue - - echo "Reconciling Kafka topic ${topic_name}" - if ! kubectl -n kafka exec "${target_pod}" -c kafka -- /bin/bash -lc "\ - timeout 40 /opt/bitnami/kafka/bin/kafka-topics.sh --bootstrap-server ${target_bootstrap} --command-config /tmp/admin.properties \ - --create --if-not-exists --topic '${topic_name}' --partitions '${partitions}' --replication-factor '${replication_factor}' - " >/dev/null; then - echo "Kafka topic ${topic_name} create/reconcile failed, continue" - continue - fi - - if [ -n "${topic_configs}" ]; then - if ! kubectl -n kafka exec "${target_pod}" -c kafka -- /bin/bash -lc "\ - timeout 40 /opt/bitnami/kafka/bin/kafka-configs.sh --bootstrap-server ${target_bootstrap} --command-config /tmp/admin.properties \ - --alter --entity-type topics --entity-name '${topic_name}' --add-config '${topic_configs}' - " >/dev/null; then - echo "Kafka topic ${topic_name} config reconcile failed, continue" - fi - fi - done - done diff --git a/clusters/yc-k8s-test/flux-system/gotk-components.yaml b/clusters/yc-k8s-test/flux-system/gotk-components.yaml deleted file mode 100644 index 325f836..0000000 --- a/clusters/yc-k8s-test/flux-system/gotk-components.yaml +++ /dev/null @@ -1,6432 +0,0 @@ ---- -# This manifest was generated by flux. DO NOT EDIT. -# Flux Version: v2.8.5 -# Components: source-controller,kustomize-controller,helm-controller,notification-controller -apiVersion: v1 -kind: Namespace -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - pod-security.kubernetes.io/warn: restricted - pod-security.kubernetes.io/warn-version: latest - name: flux-system ---- -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: allow-egress - namespace: flux-system -spec: - egress: - - {} - ingress: - - from: - - podSelector: {} - podSelector: {} - policyTypes: - - Ingress - - Egress ---- -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: allow-scraping - namespace: flux-system -spec: - ingress: - - from: - - namespaceSelector: {} - ports: - - port: 8080 - protocol: TCP - podSelector: {} - policyTypes: - - Ingress ---- -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: allow-webhooks - namespace: flux-system -spec: - ingress: - - from: - - namespaceSelector: {} - podSelector: - matchLabels: - app: notification-controller - policyTypes: - - Ingress ---- -apiVersion: v1 -kind: ResourceQuota -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: critical-pods-flux-system - namespace: flux-system -spec: - hard: - pods: "1000" - scopeSelector: - matchExpressions: - - operator: In - scopeName: PriorityClass - values: - - system-node-critical - - system-cluster-critical ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: crd-controller-flux-system -rules: -- apiGroups: - - source.toolkit.fluxcd.io - resources: - - '*' - verbs: - - '*' -- apiGroups: - - kustomize.toolkit.fluxcd.io - resources: - - '*' - verbs: - - '*' -- apiGroups: - - helm.toolkit.fluxcd.io - resources: - - '*' - verbs: - - '*' -- apiGroups: - - notification.toolkit.fluxcd.io - resources: - - '*' - verbs: - - '*' -- apiGroups: - - image.toolkit.fluxcd.io - resources: - - '*' - verbs: - - '*' -- apiGroups: - - source.extensions.fluxcd.io - resources: - - '*' - verbs: - - '*' -- apiGroups: - - "" - resources: - - namespaces - - secrets - - configmaps - - serviceaccounts - verbs: - - get - - list - - watch -- apiGroups: - - "" - resources: - - events - verbs: - - create - - patch -- apiGroups: - - "" - resources: - - configmaps - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - "" - resources: - - configmaps/status - verbs: - - get - - update - - patch -- apiGroups: - - coordination.k8s.io - resources: - - leases - verbs: - - get - - list - - watch - - create - - update - - patch - - delete -- apiGroups: - - "" - resources: - - serviceaccounts/token - verbs: - - create -- nonResourceURLs: - - /livez/ping - verbs: - - head ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - rbac.authorization.k8s.io/aggregate-to-admin: "true" - rbac.authorization.k8s.io/aggregate-to-edit: "true" - name: flux-edit-flux-system -rules: -- apiGroups: - - notification.toolkit.fluxcd.io - - source.toolkit.fluxcd.io - - source.extensions.fluxcd.io - - helm.toolkit.fluxcd.io - - image.toolkit.fluxcd.io - - kustomize.toolkit.fluxcd.io - resources: - - '*' - verbs: - - create - - delete - - deletecollection - - patch - - update ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - rbac.authorization.k8s.io/aggregate-to-admin: "true" - rbac.authorization.k8s.io/aggregate-to-edit: "true" - rbac.authorization.k8s.io/aggregate-to-view: "true" - name: flux-view-flux-system -rules: -- apiGroups: - - notification.toolkit.fluxcd.io - - source.toolkit.fluxcd.io - - source.extensions.fluxcd.io - - helm.toolkit.fluxcd.io - - image.toolkit.fluxcd.io - - kustomize.toolkit.fluxcd.io - resources: - - '*' - verbs: - - get - - list - - watch ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: cluster-reconciler-flux-system -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: cluster-admin -subjects: -- kind: ServiceAccount - name: kustomize-controller - namespace: flux-system -- kind: ServiceAccount - name: helm-controller - namespace: flux-system ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - labels: - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: crd-controller-flux-system -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: crd-controller-flux-system -subjects: -- kind: ServiceAccount - name: kustomize-controller - namespace: flux-system -- kind: ServiceAccount - name: helm-controller - namespace: flux-system -- kind: ServiceAccount - name: source-controller - namespace: flux-system -- kind: ServiceAccount - name: notification-controller - namespace: flux-system -- kind: ServiceAccount - name: image-reflector-controller - namespace: flux-system -- kind: ServiceAccount - name: image-automation-controller - namespace: flux-system -- kind: ServiceAccount - name: source-watcher - namespace: flux-system ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.19.0 - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: buckets.source.toolkit.fluxcd.io -spec: - group: source.toolkit.fluxcd.io - names: - kind: Bucket - listKind: BucketList - plural: buckets - singular: bucket - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.endpoint - name: Endpoint - type: string - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - name: v1 - schema: - openAPIV3Schema: - description: Bucket is the Schema for the buckets API. - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: |- - BucketSpec specifies the required configuration to produce an Artifact for - an object storage bucket. - properties: - bucketName: - description: BucketName is the name of the object storage bucket. - type: string - certSecretRef: - description: |- - CertSecretRef can be given the name of a Secret containing - either or both of - - - a PEM-encoded client certificate (`tls.crt`) and private - key (`tls.key`); - - a PEM-encoded CA certificate (`ca.crt`) - - and whichever are supplied, will be used for connecting to the - bucket. The client cert and key are useful if you are - authenticating with a certificate; the CA cert is useful if - you are using a self-signed server certificate. The Secret must - be of type `Opaque` or `kubernetes.io/tls`. - - This field is only supported for the `generic` provider. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - endpoint: - description: Endpoint is the object storage address the BucketName - is located at. - type: string - ignore: - description: |- - Ignore overrides the set of excluded patterns in the .sourceignore format - (which is the same as .gitignore). If not provided, a default will be used, - consult the documentation for your version to find out what those are. - type: string - insecure: - description: Insecure allows connecting to a non-TLS HTTP Endpoint. - type: boolean - interval: - description: |- - Interval at which the Bucket Endpoint is checked for updates. - This interval is approximate and may be subject to jitter to ensure - efficient use of resources. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - prefix: - description: Prefix to use for server-side filtering of files in the - Bucket. - type: string - provider: - default: generic - description: |- - Provider of the object storage bucket. - Defaults to 'generic', which expects an S3 (API) compatible object - storage. - enum: - - generic - - aws - - gcp - - azure - type: string - proxySecretRef: - description: |- - ProxySecretRef specifies the Secret containing the proxy configuration - to use while communicating with the Bucket server. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - region: - description: Region of the Endpoint where the BucketName is located - in. - type: string - secretRef: - description: |- - SecretRef specifies the Secret containing authentication credentials - for the Bucket. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - serviceAccountName: - description: |- - ServiceAccountName is the name of the Kubernetes ServiceAccount used to authenticate - the bucket. This field is only supported for the 'gcp' and 'aws' providers. - For more information about workload identity: - https://fluxcd.io/flux/components/source/buckets/#workload-identity - type: string - sts: - description: |- - STS specifies the required configuration to use a Security Token - Service for fetching temporary credentials to authenticate in a - Bucket provider. - - This field is only supported for the `aws` and `generic` providers. - properties: - certSecretRef: - description: |- - CertSecretRef can be given the name of a Secret containing - either or both of - - - a PEM-encoded client certificate (`tls.crt`) and private - key (`tls.key`); - - a PEM-encoded CA certificate (`ca.crt`) - - and whichever are supplied, will be used for connecting to the - STS endpoint. The client cert and key are useful if you are - authenticating with a certificate; the CA cert is useful if - you are using a self-signed server certificate. The Secret must - be of type `Opaque` or `kubernetes.io/tls`. - - This field is only supported for the `ldap` provider. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - endpoint: - description: |- - Endpoint is the HTTP/S endpoint of the Security Token Service from - where temporary credentials will be fetched. - pattern: ^(http|https)://.*$ - type: string - provider: - description: Provider of the Security Token Service. - enum: - - aws - - ldap - type: string - secretRef: - description: |- - SecretRef specifies the Secret containing authentication credentials - for the STS endpoint. This Secret must contain the fields `username` - and `password` and is supported only for the `ldap` provider. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - required: - - endpoint - - provider - type: object - suspend: - description: |- - Suspend tells the controller to suspend the reconciliation of this - Bucket. - type: boolean - timeout: - default: 60s - description: Timeout for fetch operations, defaults to 60s. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ - type: string - required: - - bucketName - - endpoint - - interval - type: object - x-kubernetes-validations: - - message: STS configuration is only supported for the 'aws' and 'generic' - Bucket providers - rule: self.provider == 'aws' || self.provider == 'generic' || !has(self.sts) - - message: '''aws'' is the only supported STS provider for the ''aws'' - Bucket provider' - rule: self.provider != 'aws' || !has(self.sts) || self.sts.provider - == 'aws' - - message: '''ldap'' is the only supported STS provider for the ''generic'' - Bucket provider' - rule: self.provider != 'generic' || !has(self.sts) || self.sts.provider - == 'ldap' - - message: spec.sts.secretRef is not required for the 'aws' STS provider - rule: '!has(self.sts) || self.sts.provider != ''aws'' || !has(self.sts.secretRef)' - - message: spec.sts.certSecretRef is not required for the 'aws' STS provider - rule: '!has(self.sts) || self.sts.provider != ''aws'' || !has(self.sts.certSecretRef)' - - message: ServiceAccountName is not supported for the 'generic' Bucket - provider - rule: self.provider != 'generic' || !has(self.serviceAccountName) - - message: cannot set both .spec.secretRef and .spec.serviceAccountName - rule: '!has(self.secretRef) || !has(self.serviceAccountName)' - status: - default: - observedGeneration: -1 - description: BucketStatus records the observed state of a Bucket. - properties: - artifact: - description: Artifact represents the last successful Bucket reconciliation. - properties: - digest: - description: Digest is the digest of the file in the form of ':'. - pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ - type: string - lastUpdateTime: - description: |- - LastUpdateTime is the timestamp corresponding to the last update of the - Artifact. - format: date-time - type: string - metadata: - additionalProperties: - type: string - description: Metadata holds upstream information such as OCI annotations. - type: object - path: - description: |- - Path is the relative file path of the Artifact. It can be used to locate - the file in the root of the Artifact storage on the local file system of - the controller managing the Source. - type: string - revision: - description: |- - Revision is a human-readable identifier traceable in the origin source - system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. - type: string - size: - description: Size is the number of bytes in the file. - format: int64 - type: integer - url: - description: |- - URL is the HTTP address of the Artifact as exposed by the controller - managing the Source. It can be used to retrieve the Artifact for - consumption, e.g. by another controller applying the Artifact contents. - type: string - required: - - digest - - lastUpdateTime - - path - - revision - - url - type: object - conditions: - description: Conditions holds the conditions for the Bucket. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedGeneration: - description: ObservedGeneration is the last observed generation of - the Bucket object. - format: int64 - type: integer - observedIgnore: - description: |- - ObservedIgnore is the observed exclusion patterns used for constructing - the source artifact. - type: string - url: - description: |- - URL is the dynamic fetch link for the latest Artifact. - It is provided on a "best effort" basis, and using the precise - BucketStatus.Artifact data is recommended. - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.19.0 - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: externalartifacts.source.toolkit.fluxcd.io -spec: - group: source.toolkit.fluxcd.io - names: - kind: ExternalArtifact - listKind: ExternalArtifactList - plural: externalartifacts - singular: externalartifact - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - - jsonPath: .spec.sourceRef.name - name: Source - type: string - name: v1 - schema: - openAPIV3Schema: - description: ExternalArtifact is the Schema for the external artifacts API - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: ExternalArtifactSpec defines the desired state of ExternalArtifact - properties: - sourceRef: - description: |- - SourceRef points to the Kubernetes custom resource for - which the artifact is generated. - properties: - apiVersion: - description: API version of the referent, if not specified the - Kubernetes preferred version will be used. - type: string - kind: - description: Kind of the referent. - type: string - name: - description: Name of the referent. - type: string - namespace: - description: Namespace of the referent, when not specified it - acts as LocalObjectReference. - type: string - required: - - kind - - name - type: object - type: object - status: - description: ExternalArtifactStatus defines the observed state of ExternalArtifact - properties: - artifact: - description: Artifact represents the output of an ExternalArtifact - reconciliation. - properties: - digest: - description: Digest is the digest of the file in the form of ':'. - pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ - type: string - lastUpdateTime: - description: |- - LastUpdateTime is the timestamp corresponding to the last update of the - Artifact. - format: date-time - type: string - metadata: - additionalProperties: - type: string - description: Metadata holds upstream information such as OCI annotations. - type: object - path: - description: |- - Path is the relative file path of the Artifact. It can be used to locate - the file in the root of the Artifact storage on the local file system of - the controller managing the Source. - type: string - revision: - description: |- - Revision is a human-readable identifier traceable in the origin source - system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. - type: string - size: - description: Size is the number of bytes in the file. - format: int64 - type: integer - url: - description: |- - URL is the HTTP address of the Artifact as exposed by the controller - managing the Source. It can be used to retrieve the Artifact for - consumption, e.g. by another controller applying the Artifact contents. - type: string - required: - - digest - - lastUpdateTime - - path - - revision - - url - type: object - conditions: - description: Conditions holds the conditions for the ExternalArtifact. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.19.0 - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: gitrepositories.source.toolkit.fluxcd.io -spec: - group: source.toolkit.fluxcd.io - names: - kind: GitRepository - listKind: GitRepositoryList - plural: gitrepositories - shortNames: - - gitrepo - singular: gitrepository - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.url - name: URL - type: string - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - name: v1 - schema: - openAPIV3Schema: - description: GitRepository is the Schema for the gitrepositories API. - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: |- - GitRepositorySpec specifies the required configuration to produce an - Artifact for a Git repository. - properties: - ignore: - description: |- - Ignore overrides the set of excluded patterns in the .sourceignore format - (which is the same as .gitignore). If not provided, a default will be used, - consult the documentation for your version to find out what those are. - type: string - include: - description: |- - Include specifies a list of GitRepository resources which Artifacts - should be included in the Artifact produced for this GitRepository. - items: - description: |- - GitRepositoryInclude specifies a local reference to a GitRepository which - Artifact (sub-)contents must be included, and where they should be placed. - properties: - fromPath: - description: |- - FromPath specifies the path to copy contents from, defaults to the root - of the Artifact. - type: string - repository: - description: |- - GitRepositoryRef specifies the GitRepository which Artifact contents - must be included. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - toPath: - description: |- - ToPath specifies the path to copy contents to, defaults to the name of - the GitRepositoryRef. - type: string - required: - - repository - type: object - type: array - interval: - description: |- - Interval at which the GitRepository URL is checked for updates. - This interval is approximate and may be subject to jitter to ensure - efficient use of resources. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - provider: - description: |- - Provider used for authentication, can be 'azure', 'github', 'generic'. - When not specified, defaults to 'generic'. - enum: - - generic - - azure - - github - type: string - proxySecretRef: - description: |- - ProxySecretRef specifies the Secret containing the proxy configuration - to use while communicating with the Git server. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - recurseSubmodules: - description: |- - RecurseSubmodules enables the initialization of all submodules within - the GitRepository as cloned from the URL, using their default settings. - type: boolean - ref: - description: |- - Reference specifies the Git reference to resolve and monitor for - changes, defaults to the 'master' branch. - properties: - branch: - description: Branch to check out, defaults to 'master' if no other - field is defined. - type: string - commit: - description: |- - Commit SHA to check out, takes precedence over all reference fields. - - This can be combined with Branch to shallow clone the branch, in which - the commit is expected to exist. - type: string - name: - description: |- - Name of the reference to check out; takes precedence over Branch, Tag and SemVer. - - It must be a valid Git reference: https://git-scm.com/docs/git-check-ref-format#_description - Examples: "refs/heads/main", "refs/tags/v0.1.0", "refs/pull/420/head", "refs/merge-requests/1/head" - type: string - semver: - description: SemVer tag expression to check out, takes precedence - over Tag. - type: string - tag: - description: Tag to check out, takes precedence over Branch. - type: string - type: object - secretRef: - description: |- - SecretRef specifies the Secret containing authentication credentials for - the GitRepository. - For HTTPS repositories the Secret must contain 'username' and 'password' - fields for basic auth or 'bearerToken' field for token auth. - For SSH repositories the Secret must contain 'identity' - and 'known_hosts' fields. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - serviceAccountName: - description: |- - ServiceAccountName is the name of the Kubernetes ServiceAccount used to - authenticate to the GitRepository. This field is only supported for 'azure' provider. - type: string - sparseCheckout: - description: |- - SparseCheckout specifies a list of directories to checkout when cloning - the repository. If specified, only these directories are included in the - Artifact produced for this GitRepository. - items: - type: string - type: array - suspend: - description: |- - Suspend tells the controller to suspend the reconciliation of this - GitRepository. - type: boolean - timeout: - default: 60s - description: Timeout for Git operations like cloning, defaults to - 60s. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ - type: string - url: - description: URL specifies the Git repository URL, it can be an HTTP/S - or SSH address. - pattern: ^(http|https|ssh)://.*$ - type: string - verify: - description: |- - Verification specifies the configuration to verify the Git commit - signature(s). - properties: - mode: - default: HEAD - description: |- - Mode specifies which Git object(s) should be verified. - - The variants "head" and "HEAD" both imply the same thing, i.e. verify - the commit that the HEAD of the Git repository points to. The variant - "head" solely exists to ensure backwards compatibility. - enum: - - head - - HEAD - - Tag - - TagAndHEAD - type: string - secretRef: - description: |- - SecretRef specifies the Secret containing the public keys of trusted Git - authors. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - required: - - secretRef - type: object - required: - - interval - - url - type: object - x-kubernetes-validations: - - message: serviceAccountName can only be set when provider is 'azure' - rule: '!has(self.serviceAccountName) || (has(self.provider) && self.provider - == ''azure'')' - status: - default: - observedGeneration: -1 - description: GitRepositoryStatus records the observed state of a Git repository. - properties: - artifact: - description: Artifact represents the last successful GitRepository - reconciliation. - properties: - digest: - description: Digest is the digest of the file in the form of ':'. - pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ - type: string - lastUpdateTime: - description: |- - LastUpdateTime is the timestamp corresponding to the last update of the - Artifact. - format: date-time - type: string - metadata: - additionalProperties: - type: string - description: Metadata holds upstream information such as OCI annotations. - type: object - path: - description: |- - Path is the relative file path of the Artifact. It can be used to locate - the file in the root of the Artifact storage on the local file system of - the controller managing the Source. - type: string - revision: - description: |- - Revision is a human-readable identifier traceable in the origin source - system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. - type: string - size: - description: Size is the number of bytes in the file. - format: int64 - type: integer - url: - description: |- - URL is the HTTP address of the Artifact as exposed by the controller - managing the Source. It can be used to retrieve the Artifact for - consumption, e.g. by another controller applying the Artifact contents. - type: string - required: - - digest - - lastUpdateTime - - path - - revision - - url - type: object - conditions: - description: Conditions holds the conditions for the GitRepository. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - includedArtifacts: - description: |- - IncludedArtifacts contains a list of the last successfully included - Artifacts as instructed by GitRepositorySpec.Include. - items: - description: Artifact represents the output of a Source reconciliation. - properties: - digest: - description: Digest is the digest of the file in the form of - ':'. - pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ - type: string - lastUpdateTime: - description: |- - LastUpdateTime is the timestamp corresponding to the last update of the - Artifact. - format: date-time - type: string - metadata: - additionalProperties: - type: string - description: Metadata holds upstream information such as OCI - annotations. - type: object - path: - description: |- - Path is the relative file path of the Artifact. It can be used to locate - the file in the root of the Artifact storage on the local file system of - the controller managing the Source. - type: string - revision: - description: |- - Revision is a human-readable identifier traceable in the origin source - system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. - type: string - size: - description: Size is the number of bytes in the file. - format: int64 - type: integer - url: - description: |- - URL is the HTTP address of the Artifact as exposed by the controller - managing the Source. It can be used to retrieve the Artifact for - consumption, e.g. by another controller applying the Artifact contents. - type: string - required: - - digest - - lastUpdateTime - - path - - revision - - url - type: object - type: array - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedGeneration: - description: |- - ObservedGeneration is the last observed generation of the GitRepository - object. - format: int64 - type: integer - observedIgnore: - description: |- - ObservedIgnore is the observed exclusion patterns used for constructing - the source artifact. - type: string - observedInclude: - description: |- - ObservedInclude is the observed list of GitRepository resources used to - produce the current Artifact. - items: - description: |- - GitRepositoryInclude specifies a local reference to a GitRepository which - Artifact (sub-)contents must be included, and where they should be placed. - properties: - fromPath: - description: |- - FromPath specifies the path to copy contents from, defaults to the root - of the Artifact. - type: string - repository: - description: |- - GitRepositoryRef specifies the GitRepository which Artifact contents - must be included. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - toPath: - description: |- - ToPath specifies the path to copy contents to, defaults to the name of - the GitRepositoryRef. - type: string - required: - - repository - type: object - type: array - observedRecurseSubmodules: - description: |- - ObservedRecurseSubmodules is the observed resource submodules - configuration used to produce the current Artifact. - type: boolean - observedSparseCheckout: - description: |- - ObservedSparseCheckout is the observed list of directories used to - produce the current Artifact. - items: - type: string - type: array - sourceVerificationMode: - description: |- - SourceVerificationMode is the last used verification mode indicating - which Git object(s) have been verified. - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.19.0 - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: helmcharts.source.toolkit.fluxcd.io -spec: - group: source.toolkit.fluxcd.io - names: - kind: HelmChart - listKind: HelmChartList - plural: helmcharts - shortNames: - - hc - singular: helmchart - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.chart - name: Chart - type: string - - jsonPath: .spec.version - name: Version - type: string - - jsonPath: .spec.sourceRef.kind - name: Source Kind - type: string - - jsonPath: .spec.sourceRef.name - name: Source Name - type: string - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - name: v1 - schema: - openAPIV3Schema: - description: HelmChart is the Schema for the helmcharts API. - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: HelmChartSpec specifies the desired state of a Helm chart. - properties: - chart: - description: |- - Chart is the name or path the Helm chart is available at in the - SourceRef. - type: string - ignoreMissingValuesFiles: - description: |- - IgnoreMissingValuesFiles controls whether to silently ignore missing values - files rather than failing. - type: boolean - interval: - description: |- - Interval at which the HelmChart SourceRef is checked for updates. - This interval is approximate and may be subject to jitter to ensure - efficient use of resources. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - reconcileStrategy: - default: ChartVersion - description: |- - ReconcileStrategy determines what enables the creation of a new artifact. - Valid values are ('ChartVersion', 'Revision'). - See the documentation of the values for an explanation on their behavior. - Defaults to ChartVersion when omitted. - enum: - - ChartVersion - - Revision - type: string - sourceRef: - description: SourceRef is the reference to the Source the chart is - available at. - properties: - apiVersion: - description: APIVersion of the referent. - type: string - kind: - description: |- - Kind of the referent, valid values are ('HelmRepository', 'GitRepository', - 'Bucket'). - enum: - - HelmRepository - - GitRepository - - Bucket - type: string - name: - description: Name of the referent. - type: string - required: - - kind - - name - type: object - suspend: - description: |- - Suspend tells the controller to suspend the reconciliation of this - source. - type: boolean - valuesFiles: - description: |- - ValuesFiles is an alternative list of values files to use as the chart - values (values.yaml is not included by default), expected to be a - relative path in the SourceRef. - Values files are merged in the order of this list with the last file - overriding the first. Ignored when omitted. - items: - type: string - type: array - verify: - description: |- - Verify contains the secret name containing the trusted public keys - used to verify the signature and specifies which provider to use to check - whether OCI image is authentic. - This field is only supported when using HelmRepository source with spec.type 'oci'. - Chart dependencies, which are not bundled in the umbrella chart artifact, are not verified. - properties: - matchOIDCIdentity: - description: |- - MatchOIDCIdentity specifies the identity matching criteria to use - while verifying an OCI artifact which was signed using Cosign keyless - signing. The artifact's identity is deemed to be verified if any of the - specified matchers match against the identity. - items: - description: |- - OIDCIdentityMatch specifies options for verifying the certificate identity, - i.e. the issuer and the subject of the certificate. - properties: - issuer: - description: |- - Issuer specifies the regex pattern to match against to verify - the OIDC issuer in the Fulcio certificate. The pattern must be a - valid Go regular expression. - type: string - subject: - description: |- - Subject specifies the regex pattern to match against to verify - the identity subject in the Fulcio certificate. The pattern must - be a valid Go regular expression. - type: string - required: - - issuer - - subject - type: object - type: array - provider: - default: cosign - description: Provider specifies the technology used to sign the - OCI Artifact. - enum: - - cosign - - notation - type: string - secretRef: - description: |- - SecretRef specifies the Kubernetes Secret containing the - trusted public keys. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - required: - - provider - type: object - version: - default: '*' - description: |- - Version is the chart version semver expression, ignored for charts from - GitRepository and Bucket sources. Defaults to latest when omitted. - type: string - required: - - chart - - interval - - sourceRef - type: object - x-kubernetes-validations: - - message: spec.verify is only supported when spec.sourceRef.kind is 'HelmRepository' - rule: '!has(self.verify) || self.sourceRef.kind == ''HelmRepository''' - status: - default: - observedGeneration: -1 - description: HelmChartStatus records the observed state of the HelmChart. - properties: - artifact: - description: Artifact represents the output of the last successful - reconciliation. - properties: - digest: - description: Digest is the digest of the file in the form of ':'. - pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ - type: string - lastUpdateTime: - description: |- - LastUpdateTime is the timestamp corresponding to the last update of the - Artifact. - format: date-time - type: string - metadata: - additionalProperties: - type: string - description: Metadata holds upstream information such as OCI annotations. - type: object - path: - description: |- - Path is the relative file path of the Artifact. It can be used to locate - the file in the root of the Artifact storage on the local file system of - the controller managing the Source. - type: string - revision: - description: |- - Revision is a human-readable identifier traceable in the origin source - system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. - type: string - size: - description: Size is the number of bytes in the file. - format: int64 - type: integer - url: - description: |- - URL is the HTTP address of the Artifact as exposed by the controller - managing the Source. It can be used to retrieve the Artifact for - consumption, e.g. by another controller applying the Artifact contents. - type: string - required: - - digest - - lastUpdateTime - - path - - revision - - url - type: object - conditions: - description: Conditions holds the conditions for the HelmChart. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedChartName: - description: |- - ObservedChartName is the last observed chart name as specified by the - resolved chart reference. - type: string - observedGeneration: - description: |- - ObservedGeneration is the last observed generation of the HelmChart - object. - format: int64 - type: integer - observedSourceArtifactRevision: - description: |- - ObservedSourceArtifactRevision is the last observed Artifact.Revision - of the HelmChartSpec.SourceRef. - type: string - observedValuesFiles: - description: |- - ObservedValuesFiles are the observed value files of the last successful - reconciliation. - It matches the chart in the last successfully reconciled artifact. - items: - type: string - type: array - url: - description: |- - URL is the dynamic fetch link for the latest Artifact. - It is provided on a "best effort" basis, and using the precise - BucketStatus.Artifact data is recommended. - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.19.0 - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: helmrepositories.source.toolkit.fluxcd.io -spec: - group: source.toolkit.fluxcd.io - names: - kind: HelmRepository - listKind: HelmRepositoryList - plural: helmrepositories - shortNames: - - helmrepo - singular: helmrepository - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.url - name: URL - type: string - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - name: v1 - schema: - openAPIV3Schema: - description: HelmRepository is the Schema for the helmrepositories API. - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: |- - HelmRepositorySpec specifies the required configuration to produce an - Artifact for a Helm repository index YAML. - properties: - accessFrom: - description: |- - AccessFrom specifies an Access Control List for allowing cross-namespace - references to this object. - NOTE: Not implemented, provisional as of https://github.com/fluxcd/flux2/pull/2092 - properties: - namespaceSelectors: - description: |- - NamespaceSelectors is the list of namespace selectors to which this ACL applies. - Items in this list are evaluated using a logical OR operation. - items: - description: |- - NamespaceSelector selects the namespaces to which this ACL applies. - An empty map of MatchLabels matches all namespaces in a cluster. - properties: - matchLabels: - additionalProperties: - type: string - description: |- - MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - type: array - required: - - namespaceSelectors - type: object - certSecretRef: - description: |- - CertSecretRef can be given the name of a Secret containing - either or both of - - - a PEM-encoded client certificate (`tls.crt`) and private - key (`tls.key`); - - a PEM-encoded CA certificate (`ca.crt`) - - and whichever are supplied, will be used for connecting to the - registry. The client cert and key are useful if you are - authenticating with a certificate; the CA cert is useful if - you are using a self-signed server certificate. The Secret must - be of type `Opaque` or `kubernetes.io/tls`. - - It takes precedence over the values specified in the Secret referred - to by `.spec.secretRef`. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - insecure: - description: |- - Insecure allows connecting to a non-TLS HTTP container registry. - This field is only taken into account if the .spec.type field is set to 'oci'. - type: boolean - interval: - description: |- - Interval at which the HelmRepository URL is checked for updates. - This interval is approximate and may be subject to jitter to ensure - efficient use of resources. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - passCredentials: - description: |- - PassCredentials allows the credentials from the SecretRef to be passed - on to a host that does not match the host as defined in URL. - This may be required if the host of the advertised chart URLs in the - index differ from the defined URL. - Enabling this should be done with caution, as it can potentially result - in credentials getting stolen in a MITM-attack. - type: boolean - provider: - default: generic - description: |- - Provider used for authentication, can be 'aws', 'azure', 'gcp' or 'generic'. - This field is optional, and only taken into account if the .spec.type field is set to 'oci'. - When not specified, defaults to 'generic'. - enum: - - generic - - aws - - azure - - gcp - type: string - secretRef: - description: |- - SecretRef specifies the Secret containing authentication credentials - for the HelmRepository. - For HTTP/S basic auth the secret must contain 'username' and 'password' - fields. - Support for TLS auth using the 'certFile' and 'keyFile', and/or 'caFile' - keys is deprecated. Please use `.spec.certSecretRef` instead. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - suspend: - description: |- - Suspend tells the controller to suspend the reconciliation of this - HelmRepository. - type: boolean - timeout: - description: |- - Timeout is used for the index fetch operation for an HTTPS helm repository, - and for remote OCI Repository operations like pulling for an OCI helm - chart by the associated HelmChart. - Its default value is 60s. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ - type: string - type: - description: |- - Type of the HelmRepository. - When this field is set to "oci", the URL field value must be prefixed with "oci://". - enum: - - default - - oci - type: string - url: - description: |- - URL of the Helm repository, a valid URL contains at least a protocol and - host. - pattern: ^(http|https|oci)://.*$ - type: string - required: - - url - type: object - status: - default: - observedGeneration: -1 - description: HelmRepositoryStatus records the observed state of the HelmRepository. - properties: - artifact: - description: Artifact represents the last successful HelmRepository - reconciliation. - properties: - digest: - description: Digest is the digest of the file in the form of ':'. - pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ - type: string - lastUpdateTime: - description: |- - LastUpdateTime is the timestamp corresponding to the last update of the - Artifact. - format: date-time - type: string - metadata: - additionalProperties: - type: string - description: Metadata holds upstream information such as OCI annotations. - type: object - path: - description: |- - Path is the relative file path of the Artifact. It can be used to locate - the file in the root of the Artifact storage on the local file system of - the controller managing the Source. - type: string - revision: - description: |- - Revision is a human-readable identifier traceable in the origin source - system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. - type: string - size: - description: Size is the number of bytes in the file. - format: int64 - type: integer - url: - description: |- - URL is the HTTP address of the Artifact as exposed by the controller - managing the Source. It can be used to retrieve the Artifact for - consumption, e.g. by another controller applying the Artifact contents. - type: string - required: - - digest - - lastUpdateTime - - path - - revision - - url - type: object - conditions: - description: Conditions holds the conditions for the HelmRepository. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedGeneration: - description: |- - ObservedGeneration is the last observed generation of the HelmRepository - object. - format: int64 - type: integer - url: - description: |- - URL is the dynamic fetch link for the latest Artifact. - It is provided on a "best effort" basis, and using the precise - HelmRepositoryStatus.Artifact data is recommended. - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.19.0 - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: ocirepositories.source.toolkit.fluxcd.io -spec: - group: source.toolkit.fluxcd.io - names: - kind: OCIRepository - listKind: OCIRepositoryList - plural: ocirepositories - shortNames: - - ocirepo - singular: ocirepository - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .spec.url - name: URL - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - name: v1 - schema: - openAPIV3Schema: - description: OCIRepository is the Schema for the ocirepositories API - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: OCIRepositorySpec defines the desired state of OCIRepository - properties: - certSecretRef: - description: |- - CertSecretRef can be given the name of a Secret containing - either or both of - - - a PEM-encoded client certificate (`tls.crt`) and private - key (`tls.key`); - - a PEM-encoded CA certificate (`ca.crt`) - - and whichever are supplied, will be used for connecting to the - registry. The client cert and key are useful if you are - authenticating with a certificate; the CA cert is useful if - you are using a self-signed server certificate. The Secret must - be of type `Opaque` or `kubernetes.io/tls`. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - ignore: - description: |- - Ignore overrides the set of excluded patterns in the .sourceignore format - (which is the same as .gitignore). If not provided, a default will be used, - consult the documentation for your version to find out what those are. - type: string - insecure: - description: Insecure allows connecting to a non-TLS HTTP container - registry. - type: boolean - interval: - description: |- - Interval at which the OCIRepository URL is checked for updates. - This interval is approximate and may be subject to jitter to ensure - efficient use of resources. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - layerSelector: - description: |- - LayerSelector specifies which layer should be extracted from the OCI artifact. - When not specified, the first layer found in the artifact is selected. - properties: - mediaType: - description: |- - MediaType specifies the OCI media type of the layer - which should be extracted from the OCI Artifact. The - first layer matching this type is selected. - type: string - operation: - description: |- - Operation specifies how the selected layer should be processed. - By default, the layer compressed content is extracted to storage. - When the operation is set to 'copy', the layer compressed content - is persisted to storage as it is. - enum: - - extract - - copy - type: string - type: object - provider: - default: generic - description: |- - The provider used for authentication, can be 'aws', 'azure', 'gcp' or 'generic'. - When not specified, defaults to 'generic'. - enum: - - generic - - aws - - azure - - gcp - type: string - proxySecretRef: - description: |- - ProxySecretRef specifies the Secret containing the proxy configuration - to use while communicating with the container registry. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - ref: - description: |- - The OCI reference to pull and monitor for changes, - defaults to the latest tag. - properties: - digest: - description: |- - Digest is the image digest to pull, takes precedence over SemVer. - The value should be in the format 'sha256:'. - type: string - semver: - description: |- - SemVer is the range of tags to pull selecting the latest within - the range, takes precedence over Tag. - type: string - semverFilter: - description: SemverFilter is a regex pattern to filter the tags - within the SemVer range. - type: string - tag: - description: Tag is the image tag to pull, defaults to latest. - type: string - type: object - secretRef: - description: |- - SecretRef contains the secret name containing the registry login - credentials to resolve image metadata. - The secret must be of type kubernetes.io/dockerconfigjson. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - serviceAccountName: - description: |- - ServiceAccountName is the name of the Kubernetes ServiceAccount used to authenticate - the image pull if the service account has attached pull secrets. For more information: - https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account - type: string - suspend: - description: This flag tells the controller to suspend the reconciliation - of this source. - type: boolean - timeout: - default: 60s - description: The timeout for remote OCI Repository operations like - pulling, defaults to 60s. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ - type: string - url: - description: |- - URL is a reference to an OCI artifact repository hosted - on a remote container registry. - pattern: ^oci://.*$ - type: string - verify: - description: |- - Verify contains the secret name containing the trusted public keys - used to verify the signature and specifies which provider to use to check - whether OCI image is authentic. - properties: - matchOIDCIdentity: - description: |- - MatchOIDCIdentity specifies the identity matching criteria to use - while verifying an OCI artifact which was signed using Cosign keyless - signing. The artifact's identity is deemed to be verified if any of the - specified matchers match against the identity. - items: - description: |- - OIDCIdentityMatch specifies options for verifying the certificate identity, - i.e. the issuer and the subject of the certificate. - properties: - issuer: - description: |- - Issuer specifies the regex pattern to match against to verify - the OIDC issuer in the Fulcio certificate. The pattern must be a - valid Go regular expression. - type: string - subject: - description: |- - Subject specifies the regex pattern to match against to verify - the identity subject in the Fulcio certificate. The pattern must - be a valid Go regular expression. - type: string - required: - - issuer - - subject - type: object - type: array - provider: - default: cosign - description: Provider specifies the technology used to sign the - OCI Artifact. - enum: - - cosign - - notation - type: string - secretRef: - description: |- - SecretRef specifies the Kubernetes Secret containing the - trusted public keys. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - required: - - provider - type: object - required: - - interval - - url - type: object - status: - default: - observedGeneration: -1 - description: OCIRepositoryStatus defines the observed state of OCIRepository - properties: - artifact: - description: Artifact represents the output of the last successful - OCI Repository sync. - properties: - digest: - description: Digest is the digest of the file in the form of ':'. - pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ - type: string - lastUpdateTime: - description: |- - LastUpdateTime is the timestamp corresponding to the last update of the - Artifact. - format: date-time - type: string - metadata: - additionalProperties: - type: string - description: Metadata holds upstream information such as OCI annotations. - type: object - path: - description: |- - Path is the relative file path of the Artifact. It can be used to locate - the file in the root of the Artifact storage on the local file system of - the controller managing the Source. - type: string - revision: - description: |- - Revision is a human-readable identifier traceable in the origin source - system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. - type: string - size: - description: Size is the number of bytes in the file. - format: int64 - type: integer - url: - description: |- - URL is the HTTP address of the Artifact as exposed by the controller - managing the Source. It can be used to retrieve the Artifact for - consumption, e.g. by another controller applying the Artifact contents. - type: string - required: - - digest - - lastUpdateTime - - path - - revision - - url - type: object - conditions: - description: Conditions holds the conditions for the OCIRepository. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedGeneration: - description: ObservedGeneration is the last observed generation. - format: int64 - type: integer - observedIgnore: - description: |- - ObservedIgnore is the observed exclusion patterns used for constructing - the source artifact. - type: string - observedLayerSelector: - description: |- - ObservedLayerSelector is the observed layer selector used for constructing - the source artifact. - properties: - mediaType: - description: |- - MediaType specifies the OCI media type of the layer - which should be extracted from the OCI Artifact. The - first layer matching this type is selected. - type: string - operation: - description: |- - Operation specifies how the selected layer should be processed. - By default, the layer compressed content is extracted to storage. - When the operation is set to 'copy', the layer compressed content - is persisted to storage as it is. - enum: - - extract - - copy - type: string - type: object - url: - description: URL is the download link for the artifact output of the - last OCI Repository sync. - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: source-controller - namespace: flux-system ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - control-plane: controller - name: source-controller - namespace: flux-system -spec: - ports: - - name: http - port: 80 - protocol: TCP - targetPort: http - selector: - app: source-controller - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - control-plane: controller - name: source-controller - namespace: flux-system -spec: - replicas: 1 - selector: - matchLabels: - app: source-controller - strategy: - type: Recreate - template: - metadata: - annotations: - prometheus.io/port: "8080" - prometheus.io/scrape: "true" - labels: - app: source-controller - app.kubernetes.io/component: source-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - spec: - containers: - - args: - - --events-addr=http://notification-controller.$(RUNTIME_NAMESPACE).svc.cluster.local./ - - --watch-all-namespaces=true - - --log-level=info - - --log-encoding=json - - --enable-leader-election - - --storage-path=/data - - --storage-adv-addr=source-controller.$(RUNTIME_NAMESPACE).svc.cluster.local. - env: - - name: RUNTIME_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: TUF_ROOT - value: /tmp/.sigstore - - name: GOMEMLIMIT - valueFrom: - resourceFieldRef: - containerName: manager - resource: limits.memory - image: ghcr.io/fluxcd/source-controller:v1.8.2 - imagePullPolicy: IfNotPresent - livenessProbe: - httpGet: - path: /healthz - port: healthz - name: manager - ports: - - containerPort: 9090 - name: http - protocol: TCP - - containerPort: 8080 - name: http-prom - protocol: TCP - - containerPort: 9440 - name: healthz - protocol: TCP - readinessProbe: - httpGet: - path: / - port: http - resources: - limits: - cpu: 1000m - memory: 1Gi - requests: - cpu: 50m - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - runAsNonRoot: true - seccompProfile: - type: RuntimeDefault - volumeMounts: - - mountPath: /data - name: data - - mountPath: /tmp - name: tmp - nodeSelector: - kubernetes.io/os: linux - priorityClassName: system-cluster-critical - securityContext: - fsGroup: 1337 - serviceAccountName: source-controller - terminationGracePeriodSeconds: 10 - volumes: - - emptyDir: {} - name: data - - emptyDir: {} - name: tmp ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.19.0 - labels: - app.kubernetes.io/component: kustomize-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: kustomizations.kustomize.toolkit.fluxcd.io -spec: - group: kustomize.toolkit.fluxcd.io - names: - kind: Kustomization - listKind: KustomizationList - plural: kustomizations - shortNames: - - ks - singular: kustomization - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - name: v1 - schema: - openAPIV3Schema: - description: Kustomization is the Schema for the kustomizations API. - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: |- - KustomizationSpec defines the configuration to calculate the desired state - from a Source using Kustomize. - properties: - commonMetadata: - description: |- - CommonMetadata specifies the common labels and annotations that are - applied to all resources. Any existing label or annotation will be - overridden if its key matches a common one. - properties: - annotations: - additionalProperties: - type: string - description: Annotations to be added to the object's metadata. - type: object - labels: - additionalProperties: - type: string - description: Labels to be added to the object's metadata. - type: object - type: object - components: - description: Components specifies relative paths to kustomize Components. - items: - type: string - type: array - decryption: - description: Decrypt Kubernetes secrets before applying them on the - cluster. - properties: - provider: - description: Provider is the name of the decryption engine. - enum: - - sops - type: string - secretRef: - description: |- - The secret name containing the private OpenPGP keys used for decryption. - A static credential for a cloud provider defined inside the Secret - takes priority to secret-less authentication with the ServiceAccountName - field. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - serviceAccountName: - description: |- - ServiceAccountName is the name of the service account used to - authenticate with KMS services from cloud providers. If a - static credential for a given cloud provider is defined - inside the Secret referenced by SecretRef, that static - credential takes priority. - type: string - required: - - provider - type: object - deletionPolicy: - description: |- - DeletionPolicy can be used to control garbage collection when this - Kustomization is deleted. Valid values are ('MirrorPrune', 'Delete', - 'WaitForTermination', 'Orphan'). 'MirrorPrune' mirrors the Prune field - (orphan if false, delete if true). Defaults to 'MirrorPrune'. - enum: - - MirrorPrune - - Delete - - WaitForTermination - - Orphan - type: string - dependsOn: - description: |- - DependsOn may contain a DependencyReference slice - with references to Kustomization resources that must be ready before this - Kustomization can be reconciled. - items: - description: DependencyReference defines a Kustomization dependency - on another Kustomization resource. - properties: - name: - description: Name of the referent. - type: string - namespace: - description: |- - Namespace of the referent, defaults to the namespace of the Kustomization - resource object that contains the reference. - type: string - readyExpr: - description: |- - ReadyExpr is a CEL expression that can be used to assess the readiness - of a dependency. When specified, the built-in readiness check - is replaced by the logic defined in the CEL expression. - To make the CEL expression additive to the built-in readiness check, - the feature gate `AdditiveCELDependencyCheck` must be set to `true`. - type: string - required: - - name - type: object - type: array - force: - default: false - description: |- - Force instructs the controller to recreate resources - when patching fails due to an immutable field change. - type: boolean - healthCheckExprs: - description: |- - HealthCheckExprs is a list of healthcheck expressions for evaluating the - health of custom resources using Common Expression Language (CEL). - The expressions are evaluated only when Wait or HealthChecks are specified. - items: - description: CustomHealthCheck defines the health check for custom - resources. - properties: - apiVersion: - description: APIVersion of the custom resource under evaluation. - type: string - current: - description: |- - Current is the CEL expression that determines if the status - of the custom resource has reached the desired state. - type: string - failed: - description: |- - Failed is the CEL expression that determines if the status - of the custom resource has failed to reach the desired state. - type: string - inProgress: - description: |- - InProgress is the CEL expression that determines if the status - of the custom resource has not yet reached the desired state. - type: string - kind: - description: Kind of the custom resource under evaluation. - type: string - required: - - apiVersion - - current - - kind - type: object - type: array - healthChecks: - description: A list of resources to be included in the health assessment. - items: - description: |- - NamespacedObjectKindReference contains enough information to locate the typed referenced Kubernetes resource object - in any namespace. - properties: - apiVersion: - description: API version of the referent, if not specified the - Kubernetes preferred version will be used. - type: string - kind: - description: Kind of the referent. - type: string - name: - description: Name of the referent. - type: string - namespace: - description: Namespace of the referent, when not specified it - acts as LocalObjectReference. - type: string - required: - - kind - - name - type: object - type: array - ignoreMissingComponents: - description: |- - IgnoreMissingComponents instructs the controller to ignore Components paths - not found in source by removing them from the generated kustomization.yaml - before running kustomize build. - type: boolean - images: - description: |- - Images is a list of (image name, new name, new tag or digest) - for changing image names, tags or digests. This can also be achieved with a - patch, but this operator is simpler to specify. - items: - description: Image contains an image name, a new name, a new tag - or digest, which will replace the original name and tag. - properties: - digest: - description: |- - Digest is the value used to replace the original image tag. - If digest is present NewTag value is ignored. - type: string - name: - description: Name is a tag-less image name. - type: string - newName: - description: NewName is the value used to replace the original - name. - type: string - newTag: - description: NewTag is the value used to replace the original - tag. - type: string - required: - - name - type: object - type: array - interval: - description: |- - The interval at which to reconcile the Kustomization. - This interval is approximate and may be subject to jitter to ensure - efficient use of resources. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - kubeConfig: - description: |- - The KubeConfig for reconciling the Kustomization on a remote cluster. - When used in combination with KustomizationSpec.ServiceAccountName, - forces the controller to act on behalf of that Service Account at the - target cluster. - If the --default-service-account flag is set, its value will be used as - a controller level fallback for when KustomizationSpec.ServiceAccountName - is empty. - properties: - configMapRef: - description: |- - ConfigMapRef holds an optional name of a ConfigMap that contains - the following keys: - - - `provider`: the provider to use. One of `aws`, `azure`, `gcp`, or - `generic`. Required. - - `cluster`: the fully qualified resource name of the Kubernetes - cluster in the cloud provider API. Not used by the `generic` - provider. Required when one of `address` or `ca.crt` is not set. - - `address`: the address of the Kubernetes API server. Required - for `generic`. For the other providers, if not specified, the - first address in the cluster resource will be used, and if - specified, it must match one of the addresses in the cluster - resource. - If audiences is not set, will be used as the audience for the - `generic` provider. - - `ca.crt`: the optional PEM-encoded CA certificate for the - Kubernetes API server. If not set, the controller will use the - CA certificate from the cluster resource. - - `audiences`: the optional audiences as a list of - line-break-separated strings for the Kubernetes ServiceAccount - token. Defaults to the `address` for the `generic` provider, or - to specific values for the other providers depending on the - provider. - - `serviceAccountName`: the optional name of the Kubernetes - ServiceAccount in the same namespace that should be used - for authentication. If not specified, the controller - ServiceAccount will be used. - - Mutually exclusive with SecretRef. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - secretRef: - description: |- - SecretRef holds an optional name of a secret that contains a key with - the kubeconfig file as the value. If no key is set, the key will default - to 'value'. Mutually exclusive with ConfigMapRef. - It is recommended that the kubeconfig is self-contained, and the secret - is regularly updated if credentials such as a cloud-access-token expire. - Cloud specific `cmd-path` auth helpers will not function without adding - binaries and credentials to the Pod that is responsible for reconciling - Kubernetes resources. Supported only for the generic provider. - properties: - key: - description: Key in the Secret, when not specified an implementation-specific - default key is used. - type: string - name: - description: Name of the Secret. - type: string - required: - - name - type: object - type: object - x-kubernetes-validations: - - message: exactly one of spec.kubeConfig.configMapRef or spec.kubeConfig.secretRef - must be specified - rule: has(self.configMapRef) || has(self.secretRef) - - message: exactly one of spec.kubeConfig.configMapRef or spec.kubeConfig.secretRef - must be specified - rule: '!has(self.configMapRef) || !has(self.secretRef)' - namePrefix: - description: NamePrefix will prefix the names of all managed resources. - maxLength: 200 - minLength: 1 - type: string - nameSuffix: - description: NameSuffix will suffix the names of all managed resources. - maxLength: 200 - minLength: 1 - type: string - patches: - description: |- - Strategic merge and JSON patches, defined as inline YAML objects, - capable of targeting objects based on kind, label and annotation selectors. - items: - description: |- - Patch contains an inline StrategicMerge or JSON6902 patch, and the target the patch should - be applied to. - properties: - patch: - description: |- - Patch contains an inline StrategicMerge patch or an inline JSON6902 patch with - an array of operation objects. - type: string - target: - description: Target points to the resources that the patch document - should be applied to. - properties: - annotationSelector: - description: |- - AnnotationSelector is a string that follows the label selection expression - https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api - It matches with the resource annotations. - type: string - group: - description: |- - Group is the API group to select resources from. - Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - kind: - description: |- - Kind of the API Group to select resources from. - Together with Group and Version it is capable of unambiguously - identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - labelSelector: - description: |- - LabelSelector is a string that follows the label selection expression - https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api - It matches with the resource labels. - type: string - name: - description: Name to match resources with. - type: string - namespace: - description: Namespace to select resources from. - type: string - version: - description: |- - Version of the API Group to select resources from. - Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - type: object - required: - - patch - type: object - type: array - path: - description: |- - Path to the directory containing the kustomization.yaml file, or the - set of plain YAMLs a kustomization.yaml should be generated for. - Defaults to 'None', which translates to the root path of the SourceRef. - type: string - postBuild: - description: |- - PostBuild describes which actions to perform on the YAML manifest - generated by building the kustomize overlay. - properties: - substitute: - additionalProperties: - type: string - description: |- - Substitute holds a map of key/value pairs. - The variables defined in your YAML manifests that match any of the keys - defined in the map will be substituted with the set value. - Includes support for bash string replacement functions - e.g. ${var:=default}, ${var:position} and ${var/substring/replacement}. - type: object - substituteFrom: - description: |- - SubstituteFrom holds references to ConfigMaps and Secrets containing - the variables and their values to be substituted in the YAML manifests. - The ConfigMap and the Secret data keys represent the var names, and they - must match the vars declared in the manifests for the substitution to - happen. - items: - description: |- - SubstituteReference contains a reference to a resource containing - the variables name and value. - properties: - kind: - description: Kind of the values referent, valid values are - ('Secret', 'ConfigMap'). - enum: - - Secret - - ConfigMap - type: string - name: - description: |- - Name of the values referent. Should reside in the same namespace as the - referring resource. - maxLength: 253 - minLength: 1 - type: string - optional: - default: false - description: |- - Optional indicates whether the referenced resource must exist, or whether to - tolerate its absence. If true and the referenced resource is absent, proceed - as if the resource was present but empty, without any variables defined. - type: boolean - required: - - kind - - name - type: object - type: array - type: object - prune: - description: Prune enables garbage collection. - type: boolean - retryInterval: - description: |- - The interval at which to retry a previously failed reconciliation. - When not specified, the controller uses the KustomizationSpec.Interval - value to retry failures. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - serviceAccountName: - description: |- - The name of the Kubernetes service account to impersonate - when reconciling this Kustomization. - type: string - sourceRef: - description: Reference of the source where the kustomization file - is. - properties: - apiVersion: - description: API version of the referent. - type: string - kind: - description: Kind of the referent. - enum: - - OCIRepository - - GitRepository - - Bucket - - ExternalArtifact - type: string - name: - description: Name of the referent. - type: string - namespace: - description: |- - Namespace of the referent, defaults to the namespace of the Kubernetes - resource object that contains the reference. - type: string - required: - - kind - - name - type: object - suspend: - description: |- - This flag tells the controller to suspend subsequent kustomize executions, - it does not apply to already started executions. Defaults to false. - type: boolean - targetNamespace: - description: |- - TargetNamespace sets or overrides the namespace in the - kustomization.yaml file. - maxLength: 63 - minLength: 1 - type: string - timeout: - description: |- - Timeout for validation, apply and health checking operations. - Defaults to 'Interval' duration. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - wait: - description: |- - Wait instructs the controller to check the health of all the reconciled - resources. When enabled, the HealthChecks are ignored. Defaults to false. - type: boolean - required: - - interval - - prune - - sourceRef - type: object - status: - default: - observedGeneration: -1 - description: KustomizationStatus defines the observed state of a kustomization. - properties: - conditions: - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - history: - description: |- - History contains a set of snapshots of the last reconciliation attempts - tracking the revision, the state and the duration of each attempt. - items: - description: |- - Snapshot represents a point-in-time record of a group of resources reconciliation, - including timing information, status, and a unique digest identifier. - properties: - digest: - description: Digest is the checksum in the format `:` - of the resources in this snapshot. - type: string - firstReconciled: - description: FirstReconciled is the time when this revision - was first reconciled to the cluster. - format: date-time - type: string - lastReconciled: - description: LastReconciled is the time when this revision was - last reconciled to the cluster. - format: date-time - type: string - lastReconciledDuration: - description: LastReconciledDuration is time it took to reconcile - the resources in this revision. - type: string - lastReconciledStatus: - description: LastReconciledStatus is the status of the last - reconciliation. - type: string - metadata: - additionalProperties: - type: string - description: Metadata contains additional information about - the snapshot. - type: object - totalReconciliations: - description: TotalReconciliations is the total number of reconciliations - that have occurred for this snapshot. - format: int64 - type: integer - required: - - digest - - firstReconciled - - lastReconciled - - lastReconciledDuration - - lastReconciledStatus - - totalReconciliations - type: object - type: array - inventory: - description: |- - Inventory contains the list of Kubernetes resource object references that - have been successfully applied. - properties: - entries: - description: Entries of Kubernetes resource object references. - items: - description: ResourceRef contains the information necessary - to locate a resource within a cluster. - properties: - id: - description: |- - ID is the string representation of the Kubernetes resource object's metadata, - in the format '___'. - type: string - v: - description: Version is the API version of the Kubernetes - resource object's kind. - type: string - required: - - id - - v - type: object - type: array - required: - - entries - type: object - lastAppliedOriginRevision: - description: |- - The last successfully applied origin revision. - Equals the origin revision of the applied Artifact from the referenced Source. - Usually present on the Metadata of the applied Artifact and depends on the - Source type, e.g. for OCI it's the value associated with the key - "org.opencontainers.image.revision". - type: string - lastAppliedRevision: - description: |- - The last successfully applied revision. - Equals the Revision of the applied Artifact from the referenced Source. - type: string - lastAttemptedRevision: - description: LastAttemptedRevision is the revision of the last reconciliation - attempt. - type: string - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedGeneration: - description: ObservedGeneration is the last reconciled generation. - format: int64 - type: integer - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.kubernetes.io/component: kustomize-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: kustomize-controller - namespace: flux-system ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.kubernetes.io/component: kustomize-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - control-plane: controller - name: kustomize-controller - namespace: flux-system -spec: - replicas: 1 - selector: - matchLabels: - app: kustomize-controller - template: - metadata: - annotations: - prometheus.io/port: "8080" - prometheus.io/scrape: "true" - labels: - app: kustomize-controller - app.kubernetes.io/component: kustomize-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - spec: - containers: - - args: - - --events-addr=http://notification-controller.$(RUNTIME_NAMESPACE).svc.cluster.local./ - - --watch-all-namespaces=true - - --log-level=info - - --log-encoding=json - - --enable-leader-election - env: - - name: RUNTIME_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: GOMEMLIMIT - valueFrom: - resourceFieldRef: - containerName: manager - resource: limits.memory - image: ghcr.io/fluxcd/kustomize-controller:v1.8.3 - imagePullPolicy: IfNotPresent - livenessProbe: - httpGet: - path: /healthz - port: healthz - name: manager - ports: - - containerPort: 8080 - name: http-prom - protocol: TCP - - containerPort: 9440 - name: healthz - protocol: TCP - readinessProbe: - httpGet: - path: /readyz - port: healthz - resources: - limits: - cpu: 1000m - memory: 1Gi - requests: - cpu: 100m - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - runAsNonRoot: true - seccompProfile: - type: RuntimeDefault - volumeMounts: - - mountPath: /tmp - name: temp - nodeSelector: - kubernetes.io/os: linux - priorityClassName: system-cluster-critical - securityContext: - fsGroup: 1337 - serviceAccountName: kustomize-controller - terminationGracePeriodSeconds: 60 - volumes: - - emptyDir: {} - name: temp ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.19.0 - labels: - app.kubernetes.io/component: helm-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: helmreleases.helm.toolkit.fluxcd.io -spec: - group: helm.toolkit.fluxcd.io - names: - kind: HelmRelease - listKind: HelmReleaseList - plural: helmreleases - shortNames: - - hr - singular: helmrelease - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - name: v2 - schema: - openAPIV3Schema: - description: HelmRelease is the Schema for the helmreleases API - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: HelmReleaseSpec defines the desired state of a Helm release. - properties: - chart: - description: |- - Chart defines the template of the v1.HelmChart that should be created - for this HelmRelease. - properties: - metadata: - description: ObjectMeta holds the template for metadata like labels - and annotations. - properties: - annotations: - additionalProperties: - type: string - description: |- - Annotations is an unstructured key value map stored with a resource that may be - set by external tools to store and retrieve arbitrary metadata. They are not - queryable and should be preserved when modifying objects. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - type: object - labels: - additionalProperties: - type: string - description: |- - Map of string keys and values that can be used to organize and categorize - (scope and select) objects. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - type: object - type: object - spec: - description: Spec holds the template for the v1.HelmChartSpec - for this HelmRelease. - properties: - chart: - description: The name or path the Helm chart is available - at in the SourceRef. - maxLength: 2048 - minLength: 1 - type: string - ignoreMissingValuesFiles: - description: IgnoreMissingValuesFiles controls whether to - silently ignore missing values files rather than failing. - type: boolean - interval: - description: |- - Interval at which to check the v1.Source for updates. Defaults to - 'HelmReleaseSpec.Interval'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - reconcileStrategy: - default: ChartVersion - description: |- - Determines what enables the creation of a new artifact. Valid values are - ('ChartVersion', 'Revision'). - See the documentation of the values for an explanation on their behavior. - Defaults to ChartVersion when omitted. - enum: - - ChartVersion - - Revision - type: string - sourceRef: - description: The name and namespace of the v1.Source the chart - is available at. - properties: - apiVersion: - description: APIVersion of the referent. - type: string - kind: - description: Kind of the referent. - enum: - - HelmRepository - - GitRepository - - Bucket - type: string - name: - description: Name of the referent. - maxLength: 253 - minLength: 1 - type: string - namespace: - description: Namespace of the referent. - maxLength: 63 - minLength: 1 - type: string - required: - - kind - - name - type: object - valuesFiles: - description: |- - Alternative list of values files to use as the chart values (values.yaml - is not included by default), expected to be a relative path in the SourceRef. - Values files are merged in the order of this list with the last file overriding - the first. Ignored when omitted. - items: - type: string - type: array - verify: - description: |- - Verify contains the secret name containing the trusted public keys - used to verify the signature and specifies which provider to use to check - whether OCI image is authentic. - This field is only supported for OCI sources. - Chart dependencies, which are not bundled in the umbrella chart artifact, - are not verified. - properties: - provider: - default: cosign - description: Provider specifies the technology used to - sign the OCI Helm chart. - enum: - - cosign - - notation - type: string - secretRef: - description: |- - SecretRef specifies the Kubernetes Secret containing the - trusted public keys. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - required: - - provider - type: object - version: - default: '*' - description: |- - Version semver expression, ignored for charts from v1.GitRepository and - v1beta2.Bucket sources. Defaults to latest when omitted. - type: string - required: - - chart - - sourceRef - type: object - required: - - spec - type: object - chartRef: - description: |- - ChartRef holds a reference to a source controller resource containing the - Helm chart artifact. - properties: - apiVersion: - description: APIVersion of the referent. - type: string - kind: - description: Kind of the referent. - enum: - - OCIRepository - - HelmChart - - ExternalArtifact - type: string - name: - description: Name of the referent. - maxLength: 253 - minLength: 1 - type: string - namespace: - description: |- - Namespace of the referent, defaults to the namespace of the Kubernetes - resource object that contains the reference. - maxLength: 63 - minLength: 1 - type: string - required: - - kind - - name - type: object - commonMetadata: - description: |- - CommonMetadata specifies the common labels and annotations that are - applied to all resources. Any existing label or annotation will be - overridden if its key matches a common one. - properties: - annotations: - additionalProperties: - type: string - description: Annotations to be added to the object's metadata. - type: object - labels: - additionalProperties: - type: string - description: Labels to be added to the object's metadata. - type: object - type: object - dependsOn: - description: |- - DependsOn may contain a DependencyReference slice with - references to HelmRelease resources that must be ready before this HelmRelease - can be reconciled. - items: - description: DependencyReference defines a HelmRelease dependency - on another HelmRelease resource. - properties: - name: - description: Name of the referent. - type: string - namespace: - description: |- - Namespace of the referent, defaults to the namespace of the HelmRelease - resource object that contains the reference. - type: string - readyExpr: - description: |- - ReadyExpr is a CEL expression that can be used to assess the readiness - of a dependency. When specified, the built-in readiness check - is replaced by the logic defined in the CEL expression. - To make the CEL expression additive to the built-in readiness check, - the feature gate `AdditiveCELDependencyCheck` must be set to `true`. - type: string - required: - - name - type: object - type: array - driftDetection: - description: |- - DriftDetection holds the configuration for detecting and handling - differences between the manifest in the Helm storage and the resources - currently existing in the cluster. - properties: - ignore: - description: |- - Ignore contains a list of rules for specifying which changes to ignore - during diffing. - items: - description: |- - IgnoreRule defines a rule to selectively disregard specific changes during - the drift detection process. - properties: - paths: - description: |- - Paths is a list of JSON Pointer (RFC 6901) paths to be excluded from - consideration in a Kubernetes object. - items: - type: string - type: array - target: - description: |- - Target is a selector for specifying Kubernetes objects to which this - rule applies. - If Target is not set, the Paths will be ignored for all Kubernetes - objects within the manifest of the Helm release. - properties: - annotationSelector: - description: |- - AnnotationSelector is a string that follows the label selection expression - https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api - It matches with the resource annotations. - type: string - group: - description: |- - Group is the API group to select resources from. - Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - kind: - description: |- - Kind of the API Group to select resources from. - Together with Group and Version it is capable of unambiguously - identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - labelSelector: - description: |- - LabelSelector is a string that follows the label selection expression - https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api - It matches with the resource labels. - type: string - name: - description: Name to match resources with. - type: string - namespace: - description: Namespace to select resources from. - type: string - version: - description: |- - Version of the API Group to select resources from. - Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - type: object - required: - - paths - type: object - type: array - mode: - description: |- - Mode defines how differences should be handled between the Helm manifest - and the manifest currently applied to the cluster. - If not explicitly set, it defaults to DiffModeDisabled. - enum: - - enabled - - warn - - disabled - type: string - type: object - healthCheckExprs: - description: |- - HealthCheckExprs is a list of healthcheck expressions for evaluating the - health of custom resources using Common Expression Language (CEL). - The expressions are evaluated only when the specific Helm action - taking place has wait enabled, i.e. DisableWait is false, and the - 'poller' WaitStrategy is used. - items: - description: CustomHealthCheck defines the health check for custom - resources. - properties: - apiVersion: - description: APIVersion of the custom resource under evaluation. - type: string - current: - description: |- - Current is the CEL expression that determines if the status - of the custom resource has reached the desired state. - type: string - failed: - description: |- - Failed is the CEL expression that determines if the status - of the custom resource has failed to reach the desired state. - type: string - inProgress: - description: |- - InProgress is the CEL expression that determines if the status - of the custom resource has not yet reached the desired state. - type: string - kind: - description: Kind of the custom resource under evaluation. - type: string - required: - - apiVersion - - current - - kind - type: object - type: array - install: - description: Install holds the configuration for Helm install actions - for this HelmRelease. - properties: - crds: - description: |- - CRDs upgrade CRDs from the Helm Chart's crds directory according - to the CRD upgrade policy provided here. Valid values are `Skip`, - `Create` or `CreateReplace`. Default is `Create` and if omitted - CRDs are installed but not updated. - - Skip: do neither install nor replace (update) any CRDs. - - Create: new CRDs are created, existing CRDs are neither updated nor deleted. - - CreateReplace: new CRDs are created, existing CRDs are updated (replaced) - but not deleted. - - By default, CRDs are applied (installed) during Helm install action. - With this option users can opt in to CRD replace existing CRDs on Helm - install actions, which is not (yet) natively supported by Helm. - https://helm.sh/docs/chart_best_practices/custom_resource_definitions. - enum: - - Skip - - Create - - CreateReplace - type: string - createNamespace: - description: |- - CreateNamespace tells the Helm install action to create the - HelmReleaseSpec.TargetNamespace if it does not exist yet. - On uninstall, the namespace will not be garbage collected. - type: boolean - disableHooks: - description: DisableHooks prevents hooks from running during the - Helm install action. - type: boolean - disableOpenAPIValidation: - description: |- - DisableOpenAPIValidation prevents the Helm install action from validating - rendered templates against the Kubernetes OpenAPI Schema. - type: boolean - disableSchemaValidation: - description: |- - DisableSchemaValidation prevents the Helm install action from validating - the values against the JSON Schema. - type: boolean - disableTakeOwnership: - description: |- - DisableTakeOwnership disables taking ownership of existing resources - during the Helm install action. Defaults to false. - type: boolean - disableWait: - description: |- - DisableWait disables the waiting for resources to be ready after a Helm - install has been performed. - type: boolean - disableWaitForJobs: - description: |- - DisableWaitForJobs disables waiting for jobs to complete after a Helm - install has been performed. - type: boolean - remediation: - description: |- - Remediation holds the remediation configuration for when the Helm install - action for the HelmRelease fails. The default is to not perform any action. - properties: - ignoreTestFailures: - description: |- - IgnoreTestFailures tells the controller to skip remediation when the Helm - tests are run after an install action but fail. Defaults to - 'Test.IgnoreFailures'. - type: boolean - remediateLastFailure: - description: |- - RemediateLastFailure tells the controller to remediate the last failure, when - no retries remain. Defaults to 'false'. - type: boolean - retries: - description: |- - Retries is the number of retries that should be attempted on failures before - bailing. Remediation, using an uninstall, is performed between each attempt. - Defaults to '0', a negative integer equals to unlimited retries. - type: integer - type: object - replace: - description: |- - Replace tells the Helm install action to re-use the 'ReleaseName', but only - if that name is a deleted release which remains in the history. - type: boolean - serverSideApply: - description: |- - ServerSideApply enables server-side apply for resources during install. - Defaults to true (or false when UseHelm3Defaults feature gate is enabled). - type: boolean - skipCRDs: - description: |- - SkipCRDs tells the Helm install action to not install any CRDs. By default, - CRDs are installed if not already present. - - Deprecated use CRD policy (`crds`) attribute with value `Skip` instead. - type: boolean - strategy: - description: |- - Strategy defines the install strategy to use for this HelmRelease. - Defaults to 'RemediateOnFailure', or 'RetryOnFailure' when the - DefaultToRetryOnFailure feature gate is enabled. - properties: - name: - description: Name of the install strategy. - enum: - - RemediateOnFailure - - RetryOnFailure - type: string - retryInterval: - description: |- - RetryInterval is the interval at which to retry a failed install. - Can be used only when Name is set to RetryOnFailure. - Defaults to '5m'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - required: - - name - type: object - x-kubernetes-validations: - - message: .retryInterval cannot be set when .name is 'RemediateOnFailure' - rule: '!has(self.retryInterval) || self.name != ''RemediateOnFailure''' - timeout: - description: |- - Timeout is the time to wait for any individual Kubernetes operation (like - Jobs for hooks) during the performance of a Helm install action. Defaults to - 'HelmReleaseSpec.Timeout'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - type: object - interval: - description: Interval at which to reconcile the Helm release. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - kubeConfig: - description: |- - KubeConfig for reconciling the HelmRelease on a remote cluster. - When used in combination with HelmReleaseSpec.ServiceAccountName, - forces the controller to act on behalf of that Service Account at the - target cluster. - If the --default-service-account flag is set, its value will be used as - a controller level fallback for when HelmReleaseSpec.ServiceAccountName - is empty. - properties: - configMapRef: - description: |- - ConfigMapRef holds an optional name of a ConfigMap that contains - the following keys: - - - `provider`: the provider to use. One of `aws`, `azure`, `gcp`, or - `generic`. Required. - - `cluster`: the fully qualified resource name of the Kubernetes - cluster in the cloud provider API. Not used by the `generic` - provider. Required when one of `address` or `ca.crt` is not set. - - `address`: the address of the Kubernetes API server. Required - for `generic`. For the other providers, if not specified, the - first address in the cluster resource will be used, and if - specified, it must match one of the addresses in the cluster - resource. - If audiences is not set, will be used as the audience for the - `generic` provider. - - `ca.crt`: the optional PEM-encoded CA certificate for the - Kubernetes API server. If not set, the controller will use the - CA certificate from the cluster resource. - - `audiences`: the optional audiences as a list of - line-break-separated strings for the Kubernetes ServiceAccount - token. Defaults to the `address` for the `generic` provider, or - to specific values for the other providers depending on the - provider. - - `serviceAccountName`: the optional name of the Kubernetes - ServiceAccount in the same namespace that should be used - for authentication. If not specified, the controller - ServiceAccount will be used. - - Mutually exclusive with SecretRef. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - secretRef: - description: |- - SecretRef holds an optional name of a secret that contains a key with - the kubeconfig file as the value. If no key is set, the key will default - to 'value'. Mutually exclusive with ConfigMapRef. - It is recommended that the kubeconfig is self-contained, and the secret - is regularly updated if credentials such as a cloud-access-token expire. - Cloud specific `cmd-path` auth helpers will not function without adding - binaries and credentials to the Pod that is responsible for reconciling - Kubernetes resources. Supported only for the generic provider. - properties: - key: - description: Key in the Secret, when not specified an implementation-specific - default key is used. - type: string - name: - description: Name of the Secret. - type: string - required: - - name - type: object - type: object - x-kubernetes-validations: - - message: exactly one of spec.kubeConfig.configMapRef or spec.kubeConfig.secretRef - must be specified - rule: has(self.configMapRef) || has(self.secretRef) - - message: exactly one of spec.kubeConfig.configMapRef or spec.kubeConfig.secretRef - must be specified - rule: '!has(self.configMapRef) || !has(self.secretRef)' - maxHistory: - description: |- - MaxHistory is the number of revisions saved by Helm for this HelmRelease. - Use '0' for an unlimited number of revisions; defaults to '5'. - type: integer - persistentClient: - description: |- - PersistentClient tells the controller to use a persistent Kubernetes - client for this release. When enabled, the client will be reused for the - duration of the reconciliation, instead of being created and destroyed - for each (step of a) Helm action. - - This can improve performance, but may cause issues with some Helm charts - that for example do create Custom Resource Definitions during installation - outside Helm's CRD lifecycle hooks, which are then not observed to be - available by e.g. post-install hooks. - - If not set, it defaults to true. - type: boolean - postRenderers: - description: |- - PostRenderers holds an array of Helm PostRenderers, which will be applied in order - of their definition. - items: - description: PostRenderer contains a Helm PostRenderer specification. - properties: - kustomize: - description: Kustomization to apply as PostRenderer. - properties: - images: - description: |- - Images is a list of (image name, new name, new tag or digest) - for changing image names, tags or digests. This can also be achieved with a - patch, but this operator is simpler to specify. - items: - description: Image contains an image name, a new name, - a new tag or digest, which will replace the original - name and tag. - properties: - digest: - description: |- - Digest is the value used to replace the original image tag. - If digest is present NewTag value is ignored. - type: string - name: - description: Name is a tag-less image name. - type: string - newName: - description: NewName is the value used to replace - the original name. - type: string - newTag: - description: NewTag is the value used to replace the - original tag. - type: string - required: - - name - type: object - type: array - patches: - description: |- - Strategic merge and JSON patches, defined as inline YAML objects, - capable of targeting objects based on kind, label and annotation selectors. - items: - description: |- - Patch contains an inline StrategicMerge or JSON6902 patch, and the target the patch should - be applied to. - properties: - patch: - description: |- - Patch contains an inline StrategicMerge patch or an inline JSON6902 patch with - an array of operation objects. - type: string - target: - description: Target points to the resources that the - patch document should be applied to. - properties: - annotationSelector: - description: |- - AnnotationSelector is a string that follows the label selection expression - https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api - It matches with the resource annotations. - type: string - group: - description: |- - Group is the API group to select resources from. - Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - kind: - description: |- - Kind of the API Group to select resources from. - Together with Group and Version it is capable of unambiguously - identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - labelSelector: - description: |- - LabelSelector is a string that follows the label selection expression - https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api - It matches with the resource labels. - type: string - name: - description: Name to match resources with. - type: string - namespace: - description: Namespace to select resources from. - type: string - version: - description: |- - Version of the API Group to select resources from. - Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources. - https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md - type: string - type: object - required: - - patch - type: object - type: array - type: object - type: object - type: array - releaseName: - description: |- - ReleaseName used for the Helm release. Defaults to a composition of - '[TargetNamespace-]Name'. - maxLength: 53 - minLength: 1 - type: string - rollback: - description: Rollback holds the configuration for Helm rollback actions - for this HelmRelease. - properties: - cleanupOnFail: - description: |- - CleanupOnFail allows deletion of new resources created during the Helm - rollback action when it fails. - type: boolean - disableHooks: - description: DisableHooks prevents hooks from running during the - Helm rollback action. - type: boolean - disableWait: - description: |- - DisableWait disables the waiting for resources to be ready after a Helm - rollback has been performed. - type: boolean - disableWaitForJobs: - description: |- - DisableWaitForJobs disables waiting for jobs to complete after a Helm - rollback has been performed. - type: boolean - force: - description: Force forces resource updates through a replacement - strategy. - type: boolean - recreate: - description: |- - Recreate performs pod restarts for any managed workloads. - - Deprecated: This behavior was deprecated in Helm 3: - - Deprecation: https://github.com/helm/helm/pull/6463 - - Removal: https://github.com/helm/helm/pull/31023 - After helm-controller was upgraded to the Helm 4 SDK, - this field is no longer functional and will print a - warning if set to true. It will also be removed in a - future release. - type: boolean - serverSideApply: - description: |- - ServerSideApply enables server-side apply for resources during rollback. - Can be "enabled", "disabled", or "auto". - When "auto", server-side apply usage will be based on the release's previous usage. - Defaults to "auto". - enum: - - enabled - - disabled - - auto - type: string - timeout: - description: |- - Timeout is the time to wait for any individual Kubernetes operation (like - Jobs for hooks) during the performance of a Helm rollback action. Defaults to - 'HelmReleaseSpec.Timeout'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - type: object - serviceAccountName: - description: |- - The name of the Kubernetes service account to impersonate - when reconciling this HelmRelease. - maxLength: 253 - minLength: 1 - type: string - storageNamespace: - description: |- - StorageNamespace used for the Helm storage. - Defaults to the namespace of the HelmRelease. - maxLength: 63 - minLength: 1 - type: string - suspend: - description: |- - Suspend tells the controller to suspend reconciliation for this HelmRelease, - it does not apply to already started reconciliations. Defaults to false. - type: boolean - targetNamespace: - description: |- - TargetNamespace to target when performing operations for the HelmRelease. - Defaults to the namespace of the HelmRelease. - maxLength: 63 - minLength: 1 - type: string - test: - description: Test holds the configuration for Helm test actions for - this HelmRelease. - properties: - enable: - description: |- - Enable enables Helm test actions for this HelmRelease after an Helm install - or upgrade action has been performed. - type: boolean - filters: - description: Filters is a list of tests to run or exclude from - running. - items: - description: Filter holds the configuration for individual Helm - test filters. - properties: - exclude: - description: Exclude specifies whether the named test should - be excluded. - type: boolean - name: - description: Name is the name of the test. - maxLength: 253 - minLength: 1 - type: string - required: - - name - type: object - type: array - ignoreFailures: - description: |- - IgnoreFailures tells the controller to skip remediation when the Helm tests - are run but fail. Can be overwritten for tests run after install or upgrade - actions in 'Install.IgnoreTestFailures' and 'Upgrade.IgnoreTestFailures'. - type: boolean - timeout: - description: |- - Timeout is the time to wait for any individual Kubernetes operation during - the performance of a Helm test action. Defaults to 'HelmReleaseSpec.Timeout'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - type: object - timeout: - description: |- - Timeout is the time to wait for any individual Kubernetes operation (like Jobs - for hooks) during the performance of a Helm action. Defaults to '5m0s'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - uninstall: - description: Uninstall holds the configuration for Helm uninstall - actions for this HelmRelease. - properties: - deletionPropagation: - default: background - description: |- - DeletionPropagation specifies the deletion propagation policy when - a Helm uninstall is performed. - enum: - - background - - foreground - - orphan - type: string - disableHooks: - description: DisableHooks prevents hooks from running during the - Helm rollback action. - type: boolean - disableWait: - description: |- - DisableWait disables waiting for all the resources to be deleted after - a Helm uninstall is performed. - type: boolean - keepHistory: - description: |- - KeepHistory tells Helm to remove all associated resources and mark the - release as deleted, but retain the release history. - type: boolean - timeout: - description: |- - Timeout is the time to wait for any individual Kubernetes operation (like - Jobs for hooks) during the performance of a Helm uninstall action. Defaults - to 'HelmReleaseSpec.Timeout'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - type: object - upgrade: - description: Upgrade holds the configuration for Helm upgrade actions - for this HelmRelease. - properties: - cleanupOnFail: - description: |- - CleanupOnFail allows deletion of new resources created during the Helm - upgrade action when it fails. - type: boolean - crds: - description: |- - CRDs upgrade CRDs from the Helm Chart's crds directory according - to the CRD upgrade policy provided here. Valid values are `Skip`, - `Create` or `CreateReplace`. Default is `Skip` and if omitted - CRDs are neither installed nor upgraded. - - Skip: do neither install nor replace (update) any CRDs. - - Create: new CRDs are created, existing CRDs are neither updated nor deleted. - - CreateReplace: new CRDs are created, existing CRDs are updated (replaced) - but not deleted. - - By default, CRDs are not applied during Helm upgrade action. With this - option users can opt-in to CRD upgrade, which is not (yet) natively supported by Helm. - https://helm.sh/docs/chart_best_practices/custom_resource_definitions. - enum: - - Skip - - Create - - CreateReplace - type: string - disableHooks: - description: DisableHooks prevents hooks from running during the - Helm upgrade action. - type: boolean - disableOpenAPIValidation: - description: |- - DisableOpenAPIValidation prevents the Helm upgrade action from validating - rendered templates against the Kubernetes OpenAPI Schema. - type: boolean - disableSchemaValidation: - description: |- - DisableSchemaValidation prevents the Helm upgrade action from validating - the values against the JSON Schema. - type: boolean - disableTakeOwnership: - description: |- - DisableTakeOwnership disables taking ownership of existing resources - during the Helm upgrade action. Defaults to false. - type: boolean - disableWait: - description: |- - DisableWait disables the waiting for resources to be ready after a Helm - upgrade has been performed. - type: boolean - disableWaitForJobs: - description: |- - DisableWaitForJobs disables waiting for jobs to complete after a Helm - upgrade has been performed. - type: boolean - force: - description: Force forces resource updates through a replacement - strategy. - type: boolean - preserveValues: - description: |- - PreserveValues will make Helm reuse the last release's values and merge in - overrides from 'Values'. Setting this flag makes the HelmRelease - non-declarative. - type: boolean - remediation: - description: |- - Remediation holds the remediation configuration for when the Helm upgrade - action for the HelmRelease fails. The default is to not perform any action. - properties: - ignoreTestFailures: - description: |- - IgnoreTestFailures tells the controller to skip remediation when the Helm - tests are run after an upgrade action but fail. - Defaults to 'Test.IgnoreFailures'. - type: boolean - remediateLastFailure: - description: |- - RemediateLastFailure tells the controller to remediate the last failure, when - no retries remain. Defaults to 'false' unless 'Retries' is greater than 0. - type: boolean - retries: - description: |- - Retries is the number of retries that should be attempted on failures before - bailing. Remediation, using 'Strategy', is performed between each attempt. - Defaults to '0', a negative integer equals to unlimited retries. - type: integer - strategy: - description: Strategy to use for failure remediation. Defaults - to 'rollback'. - enum: - - rollback - - uninstall - type: string - type: object - serverSideApply: - description: |- - ServerSideApply enables server-side apply for resources during upgrade. - Can be "enabled", "disabled", or "auto". - When "auto", server-side apply usage will be based on the release's previous usage. - Defaults to "auto". - enum: - - enabled - - disabled - - auto - type: string - strategy: - description: |- - Strategy defines the upgrade strategy to use for this HelmRelease. - Defaults to 'RemediateOnFailure', or 'RetryOnFailure' when the - DefaultToRetryOnFailure feature gate is enabled. - properties: - name: - description: Name of the upgrade strategy. - enum: - - RemediateOnFailure - - RetryOnFailure - type: string - retryInterval: - description: |- - RetryInterval is the interval at which to retry a failed upgrade. - Can be used only when Name is set to RetryOnFailure. - Defaults to '5m'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - required: - - name - type: object - x-kubernetes-validations: - - message: .retryInterval can only be set when .name is 'RetryOnFailure' - rule: '!has(self.retryInterval) || self.name == ''RetryOnFailure''' - timeout: - description: |- - Timeout is the time to wait for any individual Kubernetes operation (like - Jobs for hooks) during the performance of a Helm upgrade action. Defaults to - 'HelmReleaseSpec.Timeout'. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - type: object - values: - description: Values holds the values for this Helm release. - x-kubernetes-preserve-unknown-fields: true - valuesFrom: - description: |- - ValuesFrom holds references to resources containing Helm values for this HelmRelease, - and information about how they should be merged. - items: - description: |- - ValuesReference contains a reference to a resource containing Helm values, - and optionally the key they can be found at. - properties: - kind: - description: Kind of the values referent, valid values are ('Secret', - 'ConfigMap'). - enum: - - Secret - - ConfigMap - type: string - name: - description: |- - Name of the values referent. Should reside in the same namespace as the - referring resource. - maxLength: 253 - minLength: 1 - type: string - optional: - description: |- - Optional marks this ValuesReference as optional. When set, a not found error - for the values reference is ignored, but any ValuesKey, TargetPath or - transient error will still result in a reconciliation failure. - type: boolean - targetPath: - description: |- - TargetPath is the YAML dot notation path the value should be merged at. When - set, the ValuesKey is expected to be a single flat value. Defaults to 'None', - which results in the values getting merged at the root. - maxLength: 250 - pattern: ^([a-zA-Z0-9_\-.\\\/]|\[[0-9]{1,5}\])+$ - type: string - valuesKey: - description: |- - ValuesKey is the data key where the values.yaml or a specific value can be - found at. Defaults to 'values.yaml'. - maxLength: 253 - pattern: ^[\-._a-zA-Z0-9]+$ - type: string - required: - - kind - - name - type: object - type: array - waitStrategy: - description: |- - WaitStrategy defines Helm's wait strategy for waiting for applied - resources to become ready. - properties: - name: - description: |- - Name is Helm's wait strategy for waiting for applied resources to - become ready. One of 'poller' or 'legacy'. The 'poller' strategy uses - kstatus to poll resource statuses, while the 'legacy' strategy uses - Helm v3's waiting logic. - Defaults to 'poller', or to 'legacy' when UseHelm3Defaults feature - gate is enabled. - enum: - - poller - - legacy - type: string - required: - - name - type: object - required: - - interval - type: object - x-kubernetes-validations: - - message: either chart or chartRef must be set - rule: (has(self.chart) && !has(self.chartRef)) || (!has(self.chart) - && has(self.chartRef)) - status: - default: - observedGeneration: -1 - description: HelmReleaseStatus defines the observed state of a HelmRelease. - properties: - conditions: - description: Conditions holds the conditions for the HelmRelease. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - failures: - description: |- - Failures is the reconciliation failure count against the latest desired - state. It is reset after a successful reconciliation. - format: int64 - type: integer - helmChart: - description: |- - HelmChart is the namespaced name of the HelmChart resource created by - the controller for the HelmRelease. - type: string - history: - description: |- - History holds the history of Helm releases performed for this HelmRelease - up to the last successfully completed release. - items: - description: |- - Snapshot captures a point-in-time copy of the status information for a Helm release, - as managed by the controller. - properties: - action: - description: Action is the action that resulted in this snapshot - being created. - type: string - apiVersion: - description: |- - APIVersion is the API version of the Snapshot. - When the calculation method of the Digest field is changed, this - field will be used to distinguish between the old and new methods. - type: string - appVersion: - description: AppVersion is the chart app version of the release - object in storage. - type: string - chartName: - description: ChartName is the chart name of the release object - in storage. - type: string - chartVersion: - description: |- - ChartVersion is the chart version of the release object in - storage. - type: string - configDigest: - description: |- - ConfigDigest is the checksum of the config (better known as - "values") of the release object in storage. - It has the format of `:`. - type: string - deleted: - description: Deleted is when the release was deleted. - format: date-time - type: string - digest: - description: |- - Digest is the checksum of the release object in storage. - It has the format of `:`. - type: string - firstDeployed: - description: FirstDeployed is when the release was first deployed. - format: date-time - type: string - lastDeployed: - description: LastDeployed is when the release was last deployed. - format: date-time - type: string - name: - description: Name is the name of the release. - type: string - namespace: - description: Namespace is the namespace the release is deployed - to. - type: string - ociDigest: - description: OCIDigest is the digest of the OCI artifact associated - with the release. - type: string - status: - description: Status is the current state of the release. - type: string - testHooks: - additionalProperties: - description: |- - TestHookStatus holds the status information for a test hook as observed - to be run by the controller. - properties: - lastCompleted: - description: LastCompleted is the time the test hook last - completed. - format: date-time - type: string - lastStarted: - description: LastStarted is the time the test hook was - last started. - format: date-time - type: string - phase: - description: Phase the test hook was observed to be in. - type: string - type: object - description: |- - TestHooks is the list of test hooks for the release as observed to be - run by the controller. - type: object - version: - description: Version is the version of the release object in - storage. - type: integer - required: - - chartName - - chartVersion - - configDigest - - digest - - firstDeployed - - lastDeployed - - name - - namespace - - status - - version - type: object - type: array - installFailures: - description: |- - InstallFailures is the install failure count against the latest desired - state. It is reset after a successful reconciliation. - format: int64 - type: integer - inventory: - description: |- - Inventory contains the list of Kubernetes resource object references - that have been applied for this release. - properties: - entries: - description: Entries of Kubernetes resource object references. - items: - description: ResourceRef contains the information necessary - to locate a resource within a cluster. - properties: - id: - description: |- - ID is the string representation of the Kubernetes resource object's metadata, - in the format '___'. - type: string - v: - description: Version is the API version of the Kubernetes - resource object's kind. - type: string - required: - - id - - v - type: object - type: array - required: - - entries - type: object - lastAttemptedConfigDigest: - description: |- - LastAttemptedConfigDigest is the digest for the config (better known as - "values") of the last reconciliation attempt. - type: string - lastAttemptedGeneration: - description: |- - LastAttemptedGeneration is the last generation the controller attempted - to reconcile. - format: int64 - type: integer - lastAttemptedReleaseAction: - description: |- - LastAttemptedReleaseAction is the last release action performed for this - HelmRelease. It is used to determine the active retry or remediation - strategy. - enum: - - install - - upgrade - type: string - lastAttemptedReleaseActionDuration: - description: |- - LastAttemptedReleaseActionDuration is the duration of the last - release action performed for this HelmRelease. - type: string - lastAttemptedRevision: - description: |- - LastAttemptedRevision is the Source revision of the last reconciliation - attempt. For OCIRepository sources, the 12 first characters of the digest are - appended to the chart version e.g. "1.2.3+1234567890ab". - type: string - lastAttemptedRevisionDigest: - description: |- - LastAttemptedRevisionDigest is the digest of the last reconciliation attempt. - This is only set for OCIRepository sources. - type: string - lastAttemptedValuesChecksum: - description: |- - LastAttemptedValuesChecksum is the SHA1 checksum for the values of the last - reconciliation attempt. - - Deprecated: Use LastAttemptedConfigDigest instead. - type: string - lastHandledForceAt: - description: |- - LastHandledForceAt holds the value of the most recent - force request value, so a change of the annotation value - can be detected. - type: string - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - lastHandledResetAt: - description: |- - LastHandledResetAt holds the value of the most recent reset request - value, so a change of the annotation value can be detected. - type: string - lastReleaseRevision: - description: |- - LastReleaseRevision is the revision of the last successful Helm release. - - Deprecated: Use History instead. - type: integer - observedCommonMetadataDigest: - description: |- - ObservedCommonMetadataDigest is the digest for the common metadata of - the last successful reconciliation attempt. - type: string - observedGeneration: - description: ObservedGeneration is the last observed generation. - format: int64 - type: integer - observedPostRenderersDigest: - description: |- - ObservedPostRenderersDigest is the digest for the post-renderers of - the last successful reconciliation attempt. - type: string - storageNamespace: - description: |- - StorageNamespace is the namespace of the Helm release storage for the - current release. - maxLength: 63 - minLength: 1 - type: string - upgradeFailures: - description: |- - UpgradeFailures is the upgrade failure count against the latest desired - state. It is reset after a successful reconciliation. - format: int64 - type: integer - type: object - type: object - served: true - storage: true - subresources: - status: {} ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.kubernetes.io/component: helm-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: helm-controller - namespace: flux-system ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.kubernetes.io/component: helm-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - control-plane: controller - name: helm-controller - namespace: flux-system -spec: - replicas: 1 - selector: - matchLabels: - app: helm-controller - template: - metadata: - annotations: - prometheus.io/port: "8080" - prometheus.io/scrape: "true" - labels: - app: helm-controller - app.kubernetes.io/component: helm-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - spec: - containers: - - args: - - --events-addr=http://notification-controller.$(RUNTIME_NAMESPACE).svc.cluster.local./ - - --watch-all-namespaces=true - - --log-level=info - - --log-encoding=json - - --enable-leader-election - env: - - name: RUNTIME_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: GOMEMLIMIT - valueFrom: - resourceFieldRef: - containerName: manager - resource: limits.memory - image: ghcr.io/fluxcd/helm-controller:v1.5.3 - imagePullPolicy: IfNotPresent - livenessProbe: - httpGet: - path: /healthz - port: healthz - name: manager - ports: - - containerPort: 8080 - name: http-prom - protocol: TCP - - containerPort: 9440 - name: healthz - protocol: TCP - readinessProbe: - httpGet: - path: /readyz - port: healthz - resources: - limits: - cpu: 1000m - memory: 1Gi - requests: - cpu: 100m - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - runAsNonRoot: true - seccompProfile: - type: RuntimeDefault - volumeMounts: - - mountPath: /tmp - name: temp - nodeSelector: - kubernetes.io/os: linux - priorityClassName: system-cluster-critical - securityContext: - fsGroup: 1337 - serviceAccountName: helm-controller - terminationGracePeriodSeconds: 600 - volumes: - - emptyDir: {} - name: temp ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.19.0 - labels: - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: alerts.notification.toolkit.fluxcd.io -spec: - group: notification.toolkit.fluxcd.io - names: - kind: Alert - listKind: AlertList - plural: alerts - singular: alert - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - deprecated: true - deprecationWarning: v1beta2 Alert is deprecated, upgrade to v1beta3 - name: v1beta2 - schema: - openAPIV3Schema: - description: Alert is the Schema for the alerts API - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: AlertSpec defines an alerting rule for events involving a - list of objects. - properties: - eventMetadata: - additionalProperties: - type: string - description: |- - EventMetadata is an optional field for adding metadata to events dispatched by the - controller. This can be used for enhancing the context of the event. If a field - would override one already present on the original event as generated by the emitter, - then the override doesn't happen, i.e. the original value is preserved, and an info - log is printed. - type: object - eventSeverity: - default: info - description: |- - EventSeverity specifies how to filter events based on severity. - If set to 'info' no events will be filtered. - enum: - - info - - error - type: string - eventSources: - description: |- - EventSources specifies how to filter events based - on the involved object kind, name and namespace. - items: - description: |- - CrossNamespaceObjectReference contains enough information to let you locate the - typed referenced object at cluster level - properties: - apiVersion: - description: API version of the referent - type: string - kind: - description: Kind of the referent - enum: - - Bucket - - GitRepository - - Kustomization - - HelmRelease - - HelmChart - - HelmRepository - - ImageRepository - - ImagePolicy - - ImageUpdateAutomation - - OCIRepository - - ArtifactGenerator - - ExternalArtifact - type: string - matchLabels: - additionalProperties: - type: string - description: |- - MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - MatchLabels requires the name to be set to `*`. - type: object - name: - description: |- - Name of the referent - If multiple resources are targeted `*` may be set. - maxLength: 253 - minLength: 1 - type: string - namespace: - description: Namespace of the referent - maxLength: 253 - minLength: 1 - type: string - required: - - kind - - name - type: object - type: array - exclusionList: - description: |- - ExclusionList specifies a list of Golang regular expressions - to be used for excluding messages. - items: - type: string - type: array - inclusionList: - description: |- - InclusionList specifies a list of Golang regular expressions - to be used for including messages. - items: - type: string - type: array - providerRef: - description: ProviderRef specifies which Provider this Alert should - use. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - summary: - description: Summary holds a short description of the impact and affected - cluster. - maxLength: 255 - type: string - suspend: - description: |- - Suspend tells the controller to suspend subsequent - events handling for this Alert. - type: boolean - required: - - eventSources - - providerRef - type: object - status: - default: - observedGeneration: -1 - description: AlertStatus defines the observed state of the Alert. - properties: - conditions: - description: Conditions holds the conditions for the Alert. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedGeneration: - description: ObservedGeneration is the last observed generation. - format: int64 - type: integer - type: object - type: object - served: true - storage: false - subresources: - status: {} - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - name: v1beta3 - schema: - openAPIV3Schema: - description: Alert is the Schema for the alerts API - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: AlertSpec defines an alerting rule for events involving a - list of objects. - properties: - eventMetadata: - additionalProperties: - type: string - description: |- - EventMetadata is an optional field for adding metadata to events dispatched by the - controller. This can be used for enhancing the context of the event. If a field - would override one already present on the original event as generated by the emitter, - then the override doesn't happen, i.e. the original value is preserved, and an info - log is printed. - type: object - eventSeverity: - default: info - description: |- - EventSeverity specifies how to filter events based on severity. - If set to 'info' no events will be filtered. - enum: - - info - - error - type: string - eventSources: - description: |- - EventSources specifies how to filter events based - on the involved object kind, name and namespace. - items: - description: |- - CrossNamespaceObjectReference contains enough information to let you locate the - typed referenced object at cluster level - properties: - apiVersion: - description: API version of the referent - type: string - kind: - description: Kind of the referent - enum: - - Bucket - - GitRepository - - Kustomization - - HelmRelease - - HelmChart - - HelmRepository - - ImageRepository - - ImagePolicy - - ImageUpdateAutomation - - OCIRepository - - ArtifactGenerator - - ExternalArtifact - type: string - matchLabels: - additionalProperties: - type: string - description: |- - MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - MatchLabels requires the name to be set to `*`. - type: object - name: - description: |- - Name of the referent - If multiple resources are targeted `*` may be set. - maxLength: 253 - minLength: 1 - type: string - namespace: - description: Namespace of the referent - maxLength: 253 - minLength: 1 - type: string - required: - - kind - - name - type: object - type: array - exclusionList: - description: |- - ExclusionList specifies a list of Golang regular expressions - to be used for excluding messages. - items: - type: string - type: array - inclusionList: - description: |- - InclusionList specifies a list of Golang regular expressions - to be used for including messages. - items: - type: string - type: array - providerRef: - description: ProviderRef specifies which Provider this Alert should - use. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - summary: - description: |- - Summary holds a short description of the impact and affected cluster. - Deprecated: Use EventMetadata instead. - maxLength: 255 - type: string - suspend: - description: |- - Suspend tells the controller to suspend subsequent - events handling for this Alert. - type: boolean - required: - - eventSources - - providerRef - type: object - type: object - served: true - storage: true - subresources: {} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.19.0 - labels: - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: providers.notification.toolkit.fluxcd.io -spec: - group: notification.toolkit.fluxcd.io - names: - kind: Provider - listKind: ProviderList - plural: providers - singular: provider - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - deprecated: true - deprecationWarning: v1beta2 Provider is deprecated, upgrade to v1beta3 - name: v1beta2 - schema: - openAPIV3Schema: - description: Provider is the Schema for the providers API. - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: ProviderSpec defines the desired state of the Provider. - properties: - address: - description: |- - Address specifies the endpoint, in a generic sense, to where alerts are sent. - What kind of endpoint depends on the specific Provider type being used. - For the generic Provider, for example, this is an HTTP/S address. - For other Provider types this could be a project ID or a namespace. - maxLength: 2048 - type: string - certSecretRef: - description: |- - CertSecretRef specifies the Secret containing - a PEM-encoded CA certificate (in the `ca.crt` key). - - Note: Support for the `caFile` key has - been deprecated. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - channel: - description: Channel specifies the destination channel where events - should be posted. - maxLength: 2048 - type: string - interval: - description: Interval at which to reconcile the Provider with its - Secret references. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - proxy: - description: Proxy the HTTP/S address of the proxy server. - maxLength: 2048 - pattern: ^(http|https)://.*$ - type: string - secretRef: - description: |- - SecretRef specifies the Secret containing the authentication - credentials for this Provider. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - suspend: - description: |- - Suspend tells the controller to suspend subsequent - events handling for this Provider. - type: boolean - timeout: - description: Timeout for sending alerts to the Provider. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ - type: string - type: - description: Type specifies which Provider implementation to use. - enum: - - slack - - discord - - msteams - - rocket - - generic - - generic-hmac - - github - - gitlab - - gitea - - bitbucketserver - - bitbucket - - azuredevops - - googlechat - - googlepubsub - - webex - - sentry - - azureeventhub - - telegram - - lark - - matrix - - opsgenie - - alertmanager - - grafana - - githubdispatch - - pagerduty - - datadog - type: string - username: - description: Username specifies the name under which events are posted. - maxLength: 2048 - type: string - required: - - type - type: object - status: - default: - observedGeneration: -1 - description: ProviderStatus defines the observed state of the Provider. - properties: - conditions: - description: Conditions holds the conditions for the Provider. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedGeneration: - description: ObservedGeneration is the last reconciled generation. - format: int64 - type: integer - type: object - type: object - served: true - storage: false - subresources: - status: {} - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - name: v1beta3 - schema: - openAPIV3Schema: - description: Provider is the Schema for the providers API - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: ProviderSpec defines the desired state of the Provider. - properties: - address: - description: |- - Address specifies the endpoint, in a generic sense, to where alerts are sent. - What kind of endpoint depends on the specific Provider type being used. - For the generic Provider, for example, this is an HTTP/S address. - For other Provider types this could be a project ID or a namespace. - maxLength: 2048 - type: string - certSecretRef: - description: |- - CertSecretRef specifies the Secret containing TLS certificates - for secure communication. - - Supported configurations: - - CA-only: Server authentication (provide ca.crt only) - - mTLS: Mutual authentication (provide ca.crt + tls.crt + tls.key) - - Client-only: Client authentication with system CA (provide tls.crt + tls.key only) - - Legacy keys "caFile", "certFile", "keyFile" are supported but deprecated. Use "ca.crt", "tls.crt", "tls.key" instead. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - channel: - description: Channel specifies the destination channel where events - should be posted. - maxLength: 2048 - type: string - commitStatusExpr: - description: |- - CommitStatusExpr is a CEL expression that evaluates to a string value - that can be used to generate a custom commit status message for use - with eligible Provider types (github, gitlab, gitea, bitbucketserver, - bitbucket, azuredevops). Supported variables are: event, provider, - and alert. - type: string - interval: - description: |- - Interval at which to reconcile the Provider with its Secret references. - Deprecated and not used in v1beta3. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - proxy: - description: |- - Proxy the HTTP/S address of the proxy server. - Deprecated: Use ProxySecretRef instead. Will be removed in v1. - maxLength: 2048 - pattern: ^(http|https)://.*$ - type: string - proxySecretRef: - description: |- - ProxySecretRef specifies the Secret containing the proxy configuration - for this Provider. The Secret should contain an 'address' key with the - HTTP/S address of the proxy server. Optional 'username' and 'password' - keys can be provided for proxy authentication. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - secretRef: - description: |- - SecretRef specifies the Secret containing the authentication - credentials for this Provider. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - serviceAccountName: - description: |- - ServiceAccountName is the name of the Kubernetes ServiceAccount used to - authenticate with cloud provider services through workload identity. - This enables multi-tenant authentication without storing static credentials. - - Supported provider types: azureeventhub, azuredevops, googlepubsub - - When specified, the controller will: - 1. Create an OIDC token for the specified ServiceAccount - 2. Exchange it for cloud provider credentials via STS - 3. Use the obtained credentials for API authentication - - When unspecified, controller-level authentication is used (single-tenant). - - An error is thrown if static credentials are also defined in SecretRef. - This field requires the ObjectLevelWorkloadIdentity feature gate to be enabled. - type: string - suspend: - description: |- - Suspend tells the controller to suspend subsequent - events handling for this Provider. - type: boolean - timeout: - description: Timeout for sending alerts to the Provider. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ - type: string - type: - description: Type specifies which Provider implementation to use. - enum: - - slack - - discord - - msteams - - rocket - - generic - - generic-hmac - - github - - gitlab - - gitea - - giteapullrequestcomment - - bitbucketserver - - bitbucket - - azuredevops - - googlechat - - googlepubsub - - webex - - sentry - - azureeventhub - - telegram - - lark - - matrix - - opsgenie - - alertmanager - - grafana - - githubdispatch - - githubpullrequestcomment - - gitlabmergerequestcomment - - pagerduty - - datadog - - nats - - zulip - - otel - type: string - username: - description: Username specifies the name under which events are posted. - maxLength: 2048 - type: string - required: - - type - type: object - x-kubernetes-validations: - - message: spec.commitStatusExpr is only supported for the 'github', 'gitlab', - 'gitea', 'bitbucketserver', 'bitbucket', 'azuredevops' provider types - rule: self.type == 'github' || self.type == 'gitlab' || self.type == - 'gitea' || self.type == 'bitbucketserver' || self.type == 'bitbucket' - || self.type == 'azuredevops' || !has(self.commitStatusExpr) - type: object - served: true - storage: true - subresources: {} ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.19.0 - labels: - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: receivers.notification.toolkit.fluxcd.io -spec: - group: notification.toolkit.fluxcd.io - names: - kind: Receiver - listKind: ReceiverList - plural: receivers - singular: receiver - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - name: v1 - schema: - openAPIV3Schema: - description: Receiver is the Schema for the receivers API. - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: ReceiverSpec defines the desired state of the Receiver. - properties: - events: - description: |- - Events specifies the list of event types to handle, - e.g. 'push' for GitHub or 'Push Hook' for GitLab. - items: - type: string - type: array - interval: - default: 10m - description: Interval at which to reconcile the Receiver with its - Secret references. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - resourceFilter: - description: |- - ResourceFilter is a CEL expression expected to return a boolean that is - evaluated for each resource referenced in the Resources field when a - webhook is received. If the expression returns false then the controller - will not request a reconciliation for the resource. - When the expression is specified the controller will parse it and mark - the object as terminally failed if the expression is invalid or does not - return a boolean. - type: string - resources: - description: A list of resources to be notified about changes. - items: - description: |- - CrossNamespaceObjectReference contains enough information to let you locate the - typed referenced object at cluster level - properties: - apiVersion: - description: API version of the referent - type: string - kind: - description: Kind of the referent - enum: - - Bucket - - GitRepository - - Kustomization - - HelmRelease - - HelmChart - - HelmRepository - - ImageRepository - - ImagePolicy - - ImageUpdateAutomation - - OCIRepository - - ArtifactGenerator - - ExternalArtifact - type: string - matchLabels: - additionalProperties: - type: string - description: |- - MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - MatchLabels requires the name to be set to `*`. - type: object - name: - description: |- - Name of the referent - If multiple resources are targeted `*` may be set. - maxLength: 253 - minLength: 1 - type: string - namespace: - description: Namespace of the referent - maxLength: 253 - minLength: 1 - type: string - required: - - kind - - name - type: object - type: array - secretRef: - description: |- - SecretRef specifies the Secret containing the token used - to validate the payload authenticity. The Secret must contain a 'token' - key. For GCR receivers, the Secret must also contain an 'email' key - with the IAM service account email configured on the Pub/Sub push - subscription, and may optionally contain an 'audience' key with the - expected OIDC token audience. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - suspend: - description: |- - Suspend tells the controller to suspend subsequent - events handling for this receiver. - type: boolean - type: - description: |- - Type of webhook sender, used to determine - the validation procedure and payload deserialization. - enum: - - generic - - generic-hmac - - github - - gitlab - - bitbucket - - harbor - - dockerhub - - quay - - gcr - - nexus - - acr - - cdevents - type: string - required: - - resources - - secretRef - - type - type: object - status: - default: - observedGeneration: -1 - description: ReceiverStatus defines the observed state of the Receiver. - properties: - conditions: - description: Conditions holds the conditions for the Receiver. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedGeneration: - description: ObservedGeneration is the last observed generation of - the Receiver object. - format: int64 - type: integer - webhookPath: - description: |- - WebhookPath is the generated incoming webhook address in the format - of '/hook/sha256sum(token+name+namespace)'. - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].message - name: Status - type: string - deprecated: true - deprecationWarning: v1beta2 Receiver is deprecated, upgrade to v1 - name: v1beta2 - schema: - openAPIV3Schema: - description: Receiver is the Schema for the receivers API. - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - description: ReceiverSpec defines the desired state of the Receiver. - properties: - events: - description: |- - Events specifies the list of event types to handle, - e.g. 'push' for GitHub or 'Push Hook' for GitLab. - items: - type: string - type: array - interval: - description: Interval at which to reconcile the Receiver with its - Secret references. - pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ - type: string - resources: - description: A list of resources to be notified about changes. - items: - description: |- - CrossNamespaceObjectReference contains enough information to let you locate the - typed referenced object at cluster level - properties: - apiVersion: - description: API version of the referent - type: string - kind: - description: Kind of the referent - enum: - - Bucket - - GitRepository - - Kustomization - - HelmRelease - - HelmChart - - HelmRepository - - ImageRepository - - ImagePolicy - - ImageUpdateAutomation - - OCIRepository - - ArtifactGenerator - - ExternalArtifact - type: string - matchLabels: - additionalProperties: - type: string - description: |- - MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - MatchLabels requires the name to be set to `*`. - type: object - name: - description: |- - Name of the referent - If multiple resources are targeted `*` may be set. - maxLength: 253 - minLength: 1 - type: string - namespace: - description: Namespace of the referent - maxLength: 253 - minLength: 1 - type: string - required: - - kind - - name - type: object - type: array - secretRef: - description: |- - SecretRef specifies the Secret containing the token used - to validate the payload authenticity. - properties: - name: - description: Name of the referent. - type: string - required: - - name - type: object - suspend: - description: |- - Suspend tells the controller to suspend subsequent - events handling for this receiver. - type: boolean - type: - description: |- - Type of webhook sender, used to determine - the validation procedure and payload deserialization. - enum: - - generic - - generic-hmac - - github - - gitlab - - bitbucket - - harbor - - dockerhub - - quay - - gcr - - nexus - - acr - type: string - required: - - resources - - secretRef - - type - type: object - status: - default: - observedGeneration: -1 - description: ReceiverStatus defines the observed state of the Receiver. - properties: - conditions: - description: Conditions holds the conditions for the Receiver. - items: - description: Condition contains details for one aspect of the current - state of this API Resource. - properties: - lastTransitionTime: - description: |- - lastTransitionTime is the last time the condition transitioned from one status to another. - This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. - format: date-time - type: string - message: - description: |- - message is a human readable message indicating details about the transition. - This may be an empty string. - maxLength: 32768 - type: string - observedGeneration: - description: |- - observedGeneration represents the .metadata.generation that the condition was set based upon. - For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date - with respect to the current state of the instance. - format: int64 - minimum: 0 - type: integer - reason: - description: |- - reason contains a programmatic identifier indicating the reason for the condition's last transition. - Producers of specific condition types may define expected values and meanings for this field, - and whether the values are considered a guaranteed API. - The value should be a CamelCase string. - This field may not be empty. - maxLength: 1024 - minLength: 1 - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ - type: string - status: - description: status of the condition, one of True, False, Unknown. - enum: - - "True" - - "False" - - Unknown - type: string - type: - description: type of condition in CamelCase or in foo.example.com/CamelCase. - maxLength: 316 - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ - type: string - required: - - lastTransitionTime - - message - - reason - - status - - type - type: object - type: array - lastHandledReconcileAt: - description: |- - LastHandledReconcileAt holds the value of the most recent - reconcile request value, so a change of the annotation value - can be detected. - type: string - observedGeneration: - description: ObservedGeneration is the last observed generation of - the Receiver object. - format: int64 - type: integer - url: - description: |- - URL is the generated incoming webhook address in the format - of '/hook/sha256sum(token+name+namespace)'. - Deprecated: Replaced by WebhookPath. - type: string - webhookPath: - description: |- - WebhookPath is the generated incoming webhook address in the format - of '/hook/sha256sum(token+name+namespace)'. - type: string - type: object - type: object - served: true - storage: false - subresources: - status: {} ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - name: notification-controller - namespace: flux-system ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - control-plane: controller - name: notification-controller - namespace: flux-system -spec: - ports: - - name: http - port: 80 - protocol: TCP - targetPort: http - selector: - app: notification-controller - type: ClusterIP ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - control-plane: controller - name: webhook-receiver - namespace: flux-system -spec: - ports: - - name: http - port: 80 - protocol: TCP - targetPort: http-webhook - selector: - app: notification-controller - type: ClusterIP ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - control-plane: controller - name: notification-controller - namespace: flux-system -spec: - replicas: 1 - selector: - matchLabels: - app: notification-controller - template: - metadata: - annotations: - prometheus.io/port: "8080" - prometheus.io/scrape: "true" - labels: - app: notification-controller - app.kubernetes.io/component: notification-controller - app.kubernetes.io/instance: flux-system - app.kubernetes.io/part-of: flux - app.kubernetes.io/version: v2.8.5 - spec: - containers: - - args: - - --watch-all-namespaces=true - - --log-level=info - - --log-encoding=json - - --enable-leader-election - env: - - name: RUNTIME_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: GOMEMLIMIT - valueFrom: - resourceFieldRef: - containerName: manager - resource: limits.memory - image: ghcr.io/fluxcd/notification-controller:v1.8.3 - imagePullPolicy: IfNotPresent - livenessProbe: - httpGet: - path: /healthz - port: healthz - name: manager - ports: - - containerPort: 9090 - name: http - protocol: TCP - - containerPort: 9292 - name: http-webhook - protocol: TCP - - containerPort: 8080 - name: http-prom - protocol: TCP - - containerPort: 9440 - name: healthz - protocol: TCP - readinessProbe: - httpGet: - path: /readyz - port: healthz - resources: - limits: - cpu: 1000m - memory: 1Gi - requests: - cpu: 100m - memory: 64Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - runAsNonRoot: true - seccompProfile: - type: RuntimeDefault - volumeMounts: - - mountPath: /tmp - name: temp - nodeSelector: - kubernetes.io/os: linux - securityContext: - fsGroup: 1337 - serviceAccountName: notification-controller - terminationGracePeriodSeconds: 10 - volumes: - - emptyDir: {} - name: temp diff --git a/clusters/yc-k8s-test/flux-system/gotk-sync.yaml b/clusters/yc-k8s-test/flux-system/gotk-sync.yaml deleted file mode 100644 index 9e8eeb2..0000000 --- a/clusters/yc-k8s-test/flux-system/gotk-sync.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# This manifest was generated by flux. DO NOT EDIT. ---- -apiVersion: source.toolkit.fluxcd.io/v1 -kind: GitRepository -metadata: - name: flux-system - namespace: flux-system -spec: - interval: 1m0s - ref: - branch: master - secretRef: - name: flux-system - url: https://gitlab.sarex.io/infra/iac.git ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: flux-system - namespace: flux-system -spec: - interval: 10m0s - path: ./clusters/yc-k8s-test - prune: true - sourceRef: - kind: GitRepository - name: flux-system diff --git a/clusters/yc-k8s-test/flux-system/kustomization.yaml b/clusters/yc-k8s-test/flux-system/kustomization.yaml deleted file mode 100644 index 3842229..0000000 --- a/clusters/yc-k8s-test/flux-system/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- gotk-components.yaml -- gotk-sync.yaml diff --git a/clusters/yc-k8s-test/helm-repositories.yaml b/clusters/yc-k8s-test/helm-repositories.yaml deleted file mode 100644 index bbdeea6..0000000 --- a/clusters/yc-k8s-test/helm-repositories.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -apiVersion: source.toolkit.fluxcd.io/v1 -kind: HelmRepository -metadata: - name: yc-oci-charts - namespace: flux-system -spec: - type: oci - interval: 10m0s - url: oci://cr.yandex/crp3ccidau046kdj8g9q/charts - secretRef: - name: yc-cr-auth diff --git a/clusters/yc-k8s-test/kustomization.yaml b/clusters/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 7a85f22..0000000 --- a/clusters/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,67 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ./flux-system - - ./helm-repositories.yaml - -# infrastructure - - ../../infrastructure/cert-manager/yc-k8s-test - - ../../infrastructure/istio-base/yc-k8s-test - - ../../infrastructure/istio-pilot/yc-k8s-test - - ../../infrastructure/istio-gateway/yc-k8s-test - - ../../infrastructure/istio-config/yc-k8s-test - - ../../infrastructure/dashboard/yc-k8s-test - - ../../infrastructure/local-path-provisioner/yc-k8s-test - - ../../infrastructure/minio/yc-k8s-test - - ../../infrastructure/glitchtip/yc-k8s-test - - ../../infrastructure/openobserve/yc-k8s-test - - ../../infrastructure/opentelemetry-operator/yc-k8s-test - - ../../infrastructure/opentelemetry-collector/yc-k8s-test - - ../../infrastructure/rabbitmq/yc-k8s-test - - ../../infrastructure/kafka/yc-k8s-test - - ../../infrastructure/redis/yc-k8s-test - - ../../infrastructure/camunda/yc-k8s-test - - ../../infrastructure/s3-proxy/yc-k8s-test - - ../../infrastructure/postgresql/yc-k8s-test - - ../../infrastructure/zitadel/yc-k8s-test - - ../../infrastructure/keycloak/yc-k8s-test - - ../../infrastructure/openldap/yc-k8s-test - - ../../infrastructure/vault/yc-k8s-test - - ../../infrastructure/failed-pod-cleanup - - ./bootstrap-jobs - -# apps - - ../../apps/reviews/yc-k8s-test - - ../../apps/projects/yc-k8s-test - - ../../apps/control-interface/yc-k8s-test - - ../../apps/cross-section/yc-k8s-test - - ../../apps/mapper/yc-k8s-test - - ../../apps/attachments/yc-k8s-test - - ../../apps/measurements/yc-k8s-test - - ../../apps/drawings/yc-k8s-test - - ../../apps/comparisons/yc-k8s-test - - ../../apps/contracts/yc-k8s-test - - ../../apps/rfi/yc-k8s-test - - ../../apps/checklists/yc-k8s-test - - ../../apps/subscriptions/yc-k8s-test - - ../../apps/inspections/yc-k8s-test - - ../../apps/system-log/yc-k8s-test - - ../../apps/remarks/yc-k8s-test - - ../../apps/notes/yc-k8s-test - - ../../apps/pm/yc-k8s-test - - ../../apps/faas/yc-k8s-test - - ../../apps/stamp-verification/yc-k8s-test - - ../../apps/eav/yc-k8s-test - - ../../apps/resources/yc-k8s-test - - ../../apps/workspaces/yc-k8s-test - - ../../apps/cde/yc-k8s-test - - ../../apps/flows/yc-k8s-test - - ../../apps/issues/yc-k8s-test - - ../../apps/documentations/yc-k8s-test - - ../../apps/bim/yc-k8s-test - - ../../apps/django/yc-k8s-test - - ../../apps/processing/yc-k8s-test - - ../../apps/message-hub/yc-k8s-test - - ../../apps/transmittal/yc-k8s-test - - ../../apps/prescriptions/yc-k8s-test - - ../../apps/auth-flow/yc-k8s-test diff --git a/infrastructure/camunda/yc-k8s-test/camunda.yaml b/infrastructure/camunda/yc-k8s-test/camunda.yaml deleted file mode 100644 index e8ed5b9..0000000 --- a/infrastructure/camunda/yc-k8s-test/camunda.yaml +++ /dev/null @@ -1,155 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: camunda - namespace: camunda -spec: - interval: 5m - timeout: 15m - values: - global: - vault: - enabled: true - role: camunda - authPath: auth/kubernetes - image: - pullSecrets: - - name: regcred - identity: - auth: - publicIssuerUrl: "https://camunda-keycloak.contour.infra.sarex.tech/auth/realms/camunda-platform" - identity: - redirectUrl: "https://camunda-identity.contour.infra.sarex.tech" - operate: - redirectUrl: "https://camunda-operate.contour.infra.sarex.tech" - tasklist: - redirectUrl: "https://camunda-tasklist.contour.infra.sarex.tech" - optimize: - redirectUrl: "https://camunda-optimize.contour.infra.sarex.tech" - webModeler: - redirectUrl: "https://camunda-web-modeler.contour.infra.sarex.tech" - console: - redirectUrl: "https://camunda-console.contour.infra.sarex.tech" - identityPostgresql: - auth: - usePasswordFiles: true - primary: - automountServiceAccountToken: true - persistence: - size: 10Gi - storageClass: local-path - identityKeycloak: - postgresql: - auth: - usePasswordFiles: true - primary: - automountServiceAccountToken: true - persistence: - size: 10Gi - storageClass: local-path - vaultEnv: - enabled: true - role: camunda - authPath: auth/kubernetes - envFiles: - KEYCLOAK_ADMIN_PASSWORD: - path: secrets/data/camunda/keycloak-admin - key: admin-password - KEYCLOAK_PASSWORD: - path: secrets/data/camunda/keycloak-admin - key: admin-password - KEYCLOAK_DATABASE_PASSWORD: - path: secrets/data/camunda/postgresql - key: password - global: - storageClass: local-path - tolerations: [] - postgresql: - auth: - usePasswordFiles: true - primary: - automountServiceAccountToken: true - persistence: - size: 10Gi - storageClass: local-path - elasticsearch: - master: - persistence: - size: 10Gi - storageClass: local-path - tolerations: [] - metrics: - enabled: false - serviceMonitor: - enabled: false - prometheusRule: - enabled: false - tolerations: [] - camundaCanary: - enabled: false - prometheusServiceMonitor: - enabled: false - console: - image: - pullSecrets: - - name: regcred - tolerations: [] - zeebe: - pvcStorageClassName: local-path - image: - pullSecrets: - - name: regcred - tolerations: [] - zeebeGateway: - image: - pullSecrets: - - name: regcred - tolerations: [] - operate: - image: - pullSecrets: - - name: regcred - serviceAccount: - automountServiceAccountToken: true - tolerations: [] - tasklist: - image: - pullSecrets: - - name: regcred - serviceAccount: - automountServiceAccountToken: true - tolerations: [] - optimize: - image: - pullSecrets: - - name: regcred - serviceAccount: - automountServiceAccountToken: true - tolerations: [] - executionIdentity: - image: - pullSecrets: - - name: regcred - tolerations: [] - identity: - image: - pullSecrets: - - name: regcred - tolerations: [] - webModeler: - image: - pullSecrets: - - name: regcred - restapi: - tolerations: [] - webapp: - tolerations: [] - websockets: - tolerations: [] - connectors: - image: - pullSecrets: - - name: regcred - serviceAccount: - automountServiceAccountToken: true - tolerations: [] diff --git a/infrastructure/camunda/yc-k8s-test/kustomization.yaml b/infrastructure/camunda/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 0c26313..0000000 --- a/infrastructure/camunda/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: camunda.yaml diff --git a/infrastructure/cert-manager/yc-k8s-test/cert-manager.yaml b/infrastructure/cert-manager/yc-k8s-test/cert-manager.yaml deleted file mode 100644 index 310f53c..0000000 --- a/infrastructure/cert-manager/yc-k8s-test/cert-manager.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: cert-manager - namespace: cert-manager -spec: - interval: 5m - timeout: 10m - values: - global: - imagePullSecrets: - - regcred diff --git a/infrastructure/cert-manager/yc-k8s-test/clusterissuer-letsencrypt-istio.yaml b/infrastructure/cert-manager/yc-k8s-test/clusterissuer-letsencrypt-istio.yaml deleted file mode 100644 index a280005..0000000 --- a/infrastructure/cert-manager/yc-k8s-test/clusterissuer-letsencrypt-istio.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: cert-manager.io/v1 -kind: ClusterIssuer -metadata: - name: letsencrypt-issuer-istio -spec: - acme: - email: "pavel@sarex.io" - privateKeySecretRef: - name: letsencrypt-secret-key - server: "https://acme-v02.api.letsencrypt.org/directory" - solvers: - - http01: - ingress: - class: istio - podTemplate: - spec: - imagePullSecrets: - - name: regcred diff --git a/infrastructure/cert-manager/yc-k8s-test/clusterissuer-letsencrypt.yaml b/infrastructure/cert-manager/yc-k8s-test/clusterissuer-letsencrypt.yaml deleted file mode 100644 index 8fda70a..0000000 --- a/infrastructure/cert-manager/yc-k8s-test/clusterissuer-letsencrypt.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: cert-manager.io/v1 -kind: ClusterIssuer -metadata: - name: letsencrypt-issuer -spec: - acme: - email: "pavel@sarex.io" - privateKeySecretRef: - name: letsencrypt-secret-key - server: "https://acme-v02.api.letsencrypt.org/directory" - solvers: - - http01: - ingress: - class: nginx - podTemplate: - spec: - imagePullSecrets: - - name: regcred diff --git a/infrastructure/cert-manager/yc-k8s-test/kustomization.yaml b/infrastructure/cert-manager/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 7d2ee3b..0000000 --- a/infrastructure/cert-manager/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: cert-manager.yaml - - path: clusterissuer-letsencrypt.yaml - - path: clusterissuer-letsencrypt-istio.yaml diff --git a/infrastructure/dashboard/yc-k8s-test/dashboard.yaml b/infrastructure/dashboard/yc-k8s-test/dashboard.yaml deleted file mode 100644 index 5a7bd7d..0000000 --- a/infrastructure/dashboard/yc-k8s-test/dashboard.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: dashboard - namespace: kubernetes-dashboard -spec: - interval: 5m - timeout: 10m - values: - destinationRule: - enabled: true - host: "dashboard-kong-proxy" - tlsMode: "DISABLE" - virtualService: - enabled: false - gateway: - enabled: false - app: - image: - pullSecrets: - - regcred - kong: - image: - pullSecrets: - - regcred diff --git a/infrastructure/dashboard/yc-k8s-test/kustomization.yaml b/infrastructure/dashboard/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 1e73b3b..0000000 --- a/infrastructure/dashboard/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: dashboard.yaml diff --git a/infrastructure/glitchtip/yc-k8s-test/glitchtip.yaml b/infrastructure/glitchtip/yc-k8s-test/glitchtip.yaml deleted file mode 100644 index 4e54de2..0000000 --- a/infrastructure/glitchtip/yc-k8s-test/glitchtip.yaml +++ /dev/null @@ -1,64 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: glitchtip - namespace: glitchtip -spec: - interval: 5m - timeout: 10m - values: - universal-chart: - services: - web: - deployment: - replicaCount: - _default: 1 - envs: - - name: SERVER_ROLE - value: - _default: web - - name: PORT - value: - _default: "8000" - - name: GLITCHTIP_DOMAIN - value: - _default: https://glitchtip.contour.infra.sarex.tech - - name: ENABLE_OPEN_USER_REGISTRATION - value: - _default: "false" - serviceAccount: - enabled: true - name: - _default: glitchtip-vault - worker: - deployment: - replicaCount: - _default: 1 - envs: - - name: SERVER_ROLE - value: - _default: worker - - name: PORT - value: - _default: "8000" - - name: GLITCHTIP_DOMAIN - value: - _default: https://glitchtip.contour.infra.sarex.tech - serviceAccount: - enabled: false - name: - _default: glitchtip-vault - glitchtip: - secret: - create: false - name: glitchtip-secret - migrate: - enabled: true - env: - PORT: "8000" - GLITCHTIP_DOMAIN: https://glitchtip.contour.infra.sarex.tech - vault: - enabled: true - role: glitchtip - authPath: auth/kubernetes - secretPath: secrets/data/vault/apps/glitchtip diff --git a/infrastructure/glitchtip/yc-k8s-test/kustomization.yaml b/infrastructure/glitchtip/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 5942157..0000000 --- a/infrastructure/glitchtip/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: glitchtip.yaml diff --git a/infrastructure/istio-base/sarex-contour/kustomization.yaml b/infrastructure/istio-base/sarex-contour/kustomization.yaml deleted file mode 100644 index 27bb5cb..0000000 --- a/infrastructure/istio-base/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base diff --git a/infrastructure/istio-base/yc-k8s-test/istio-base.yaml b/infrastructure/istio-base/yc-k8s-test/istio-base.yaml deleted file mode 100644 index 0c7f66e..0000000 --- a/infrastructure/istio-base/yc-k8s-test/istio-base.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: istio-base - namespace: istio-system -spec: - interval: 5m - timeout: 10m diff --git a/infrastructure/istio-base/yc-k8s-test/kustomization.yaml b/infrastructure/istio-base/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 0bf8d30..0000000 --- a/infrastructure/istio-base/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: istio-base.yaml diff --git a/infrastructure/istio-config/yc-k8s-test/istio-config.yaml b/infrastructure/istio-config/yc-k8s-test/istio-config.yaml deleted file mode 100644 index 93971b2..0000000 --- a/infrastructure/istio-config/yc-k8s-test/istio-config.yaml +++ /dev/null @@ -1,1138 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: istio-config - namespace: default -spec: - interval: 5m - timeout: 10m - values: - global: - env: contour - environments: - contour: - namespaces: - - name: attachments - certManager: - certificates: - platform-tls: - dnsNames: - - sarex.contour.infra.sarex.tech - issuerRef: - name: letsencrypt-issuer-istio - kind: ClusterIssuer - minio-tls: - dnsNames: - - minio.contour.infra.sarex.tech - issuerRef: - name: letsencrypt-issuer-istio - kind: ClusterIssuer - zitadel-tls: - dnsNames: - - zitadel.contour.infra.sarex.tech - issuerRef: - name: letsencrypt-issuer-istio - kind: ClusterIssuer - dashboard-tls: - dnsNames: - - dashboard.contour.infra.sarex.tech - issuerRef: - name: letsencrypt-issuer-istio - kind: ClusterIssuer - rabbitmq-tls: - dnsNames: - - rabbitmq.contour.infra.sarex.tech - issuerRef: - name: letsencrypt-issuer-istio - kind: ClusterIssuer - keycloak-tls: - dnsNames: - - keycloak.contour.infra.sarex.tech - issuerRef: - name: letsencrypt-issuer-istio - kind: ClusterIssuer - glitchtip-tls: - dnsNames: - - glitchtip.contour.infra.sarex.tech - issuerRef: - name: letsencrypt-issuer-istio - kind: ClusterIssuer - openobserve-tls: - dnsNames: - - openobserve.contour.infra.sarex.tech - issuerRef: - name: letsencrypt-issuer-istio - kind: ClusterIssuer - camunda-keycloak-tls: - dnsNames: - - camunda-keycloak.contour.infra.sarex.tech - issuerRef: - name: letsencrypt-issuer-istio - kind: ClusterIssuer - camunda-identity-tls: - dnsNames: - - camunda-identity.contour.infra.sarex.tech - issuerRef: - name: letsencrypt-issuer-istio - kind: ClusterIssuer - camunda-operate-tls: - dnsNames: - - camunda-operate.contour.infra.sarex.tech - issuerRef: - name: letsencrypt-issuer-istio - kind: ClusterIssuer - camunda-tasklist-tls: - dnsNames: - - camunda-tasklist.contour.infra.sarex.tech - issuerRef: - name: letsencrypt-issuer-istio - kind: ClusterIssuer - camunda-optimize-tls: - dnsNames: - - camunda-optimize.contour.infra.sarex.tech - issuerRef: - name: letsencrypt-issuer-istio - kind: ClusterIssuer - vault-tls: - dnsNames: - - vault.contour.infra.sarex.tech - issuerRef: - name: letsencrypt-issuer-istio - kind: ClusterIssuer - istio: - requestAuthentications: - api-jwt: - namespace: istio-system - selector: - matchLabels: - istio: ingressgateway - jwtRules: - - issuer: django - jwks: | - { - "keys": [{ - "kty": "RSA", - "kid": "tiSFtZhCeHtAmHjjY3cG55ZYRgpTnIbAdmX1DsD8GOk=", - "use": "sig", - "alg": "RS512", - "n": "iJxequyGx7cS2MKqYBlyFXsrN5mhvKKyMeYFYW2XbvCiVRXVs0OK7gwvmhMRR-spCTxJLrG2rxzvs0CBXEFIrvmVRpXSLAau_aRAoTxmfCTqsZWb9ZT7u2i3_itUgFZmQg9UsuKoSodLJ16mf29XLE6VRqlu9oIxTB61FN5WtJ8ML7-lS00UBNYbemD8iVVFTHdn_v-uJ9blhg-2l-SPaJmwFlYlr8Zll99NXhw0-SNRzYTKJ04B1SIlebkuyTpvKbeGwnA6sPainH26MQ88DJIueRpJy_zgDWYoQBO7JAxbxJnF5A5RWeWDqodZU0FPkuNyQM8RI20j83GPI-X4FvTJNXKoBVgWNpq0yvxbwcFo0GdXDkXu8FPxBjCmh0yQnz-C_3SWcQ6gM1e9ryypoi4IJzR9KIlo7c39VTK4K70lx6piEtR_Cl3LldnHVhztAPEQr58e9cIrStax3EzwMijS6eFPf21vZNIpgs96XoZGBXvbtRJJx8uqbYSjO4uofgJWkIrjleO-ygD1MpTe7Opr_5h7-DfywrgBNbstskCecSbEgCv0Hblx55JCZcb_lL6hT5cJRXOybFEmIGRpGZTR-eUELrI1cqP62Tf3qvUyNeOPi9WE2lDCJtsF1gya64xWTi1nxSXdCJEZGjKyGFHg_Majf2RzyzsYuX90P5c", - "e": "AQAB" - }] - } - forwardOriginalToken: true - outputClaims: - user_id: x-user-id - company_ids: x-company-ids - zitadel-jwks: - namespace: istio-system - selector: - matchLabels: - istio: ingressgateway - jwtRules: - - issuer: https://zitadel.contour.infra.sarex.tech - jwksUri: https://zitadel.contour.infra.sarex.tech/oauth/v2/keys - forwardOriginalToken: true - fromHeaders: - - name: Identity - prefix: "Bearer " - - name: Authorization - prefix: "Bearer " - outputClaims: - company_ids: x-company-ids - sub: x-user-id - add-traceparent-filter: - - attachments - - bim - - cde - - checklists - - comparisons - - contracts - - control-interface - - cross-section - - django - - documentations - - drawings - - eav - - faas - - flows - - gateway - - inspections - - issues - - mapper - - measurements - - message-hub - - notes - - pm - - prescriptions - - processing - - projects - - remarks - - resources - - reviews - - rfi - - stamp-verification - - subscriptions - - system-log - - transmittal - - workspaces - envoyFilters: - http-header-count-size-control: - namespace: istio-system - workloadSelector: - labels: - istio: ingressgateway - configPatches: - - applyTo: NETWORK_FILTER - match: - listener: - filterChain: - filter: - name: envoy.filters.network.http_connection_manager - patch: - operation: MERGE - value: - typed_config: - '@type': >- - type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager - common_http_protocol_options: - max_headers_count: 200 - max_request_headers_kb: 96 - header-size-sidecar: - namespace: istio-system - workloadSelector: - labels: - istio: ingressgateway - configPatches: - - applyTo: NETWORK_FILTER - match: - context: SIDECAR_INBOUND - listener: - filterChain: - filter: - name: envoy.filters.network.http_connection_manager - patch: - operation: MERGE - value: - typed_config: - '@type': >- - type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager - common_http_protocol_options: - max_headers_kb: 96 - max_request_headers_kb: 96 - - applyTo: NETWORK_FILTER - match: - context: SIDECAR_OUTBOUND - listener: - filterChain: - filter: - name: envoy.filters.network.http_connection_manager - patch: - operation: MERGE - value: - typed_config: - '@type': >- - type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager - common_http_protocol_options: - max_headers_kb: 96 - max_request_headers_kb: 96 - sarex-agents-upload-body-50mb: - namespace: istio-system - workloadSelector: - labels: - istio: ingressgateway - configPatches: - - applyTo: HTTP_FILTER - match: - context: GATEWAY - listener: - filterChain: - sni: sarex.contour.infra.sarex.tech - filter: - name: envoy.filters.network.http_connection_manager - subFilter: - name: envoy.filters.http.router - patch: - operation: INSERT_BEFORE - value: - name: envoy.filters.http.buffer - typed_config: - "@type": type.googleapis.com/envoy.extensions.filters.http.buffer.v3.Buffer - max_request_bytes: 2147483648 - x-robots-tag-noindex: - namespace: istio-system - workloadSelector: - labels: - istio: ingressgateway - configPatches: - - applyTo: VIRTUAL_HOST - match: - context: GATEWAY - routeConfiguration: - vhost: - name: sarex.contour.infra.sarex.tech:443 - patch: - operation: MERGE - value: - response_headers_to_add: - - append: false - header: - key: X-Robots-Tag - value: noindex, nofollow - - applyTo: VIRTUAL_HOST - match: - context: GATEWAY - routeConfiguration: - vhost: - name: dashboard.contour.infra.sarex.tech:443 - patch: - operation: MERGE - value: - response_headers_to_add: - - append: false - header: - key: X-Robots-Tag - value: noindex, nofollow - - applyTo: VIRTUAL_HOST - match: - context: GATEWAY - routeConfiguration: - vhost: - name: sarex.contour.infra.sarex.tech:80 - patch: - operation: MERGE - value: - response_headers_to_add: - - append: false - header: - key: X-Robots-Tag - value: noindex, nofollow - - applyTo: VIRTUAL_HOST - match: - context: GATEWAY - routeConfiguration: - vhost: - name: dashboard.contour.infra.sarex.tech:80 - patch: - operation: MERGE - value: - response_headers_to_add: - - append: false - header: - key: X-Robots-Tag - value: noindex, nofollow - strip-jwt-on-public-hosts: - namespace: istio-system - workloadSelector: - labels: - istio: ingressgateway - configPatches: - - applyTo: HTTP_FILTER - match: - context: GATEWAY - listener: - filterChain: - filter: - name: envoy.filters.network.http_connection_manager - subFilter: - name: envoy.filters.http.jwt_authn - patch: - operation: INSERT_BEFORE - value: - name: envoy.filters.http.lua - typed_config: - '@type': type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua - inlineCode: | - local public_hosts = { - ["camunda-keycloak.contour.infra.sarex.tech"] = true, - ["keycloak.contour.infra.sarex.tech"] = true, - ["zitadel.contour.infra.sarex.tech"] = true, - ["dashboard.contour.infra.sarex.tech"] = true, - ["openobserve.contour.infra.sarex.tech"] = true, - } - - local public_paths = { - "^/documentations/api/v1/public/qr", - "^/documentations/api/v1/public/documents/public_link", - } - - local function is_public(host, path) - if not host then return false end - host = string.gsub(host, ":%d+$", "") - if public_hosts[host] then - return true - end - if path then - for _,pref in ipairs(public_paths) do - if string.find(path, pref) == 1 then - return true - end - end - end - return false - end - - function envoy_on_request(handle) - local h = handle:headers() - local host = h:get(":authority") - local path = h:get(":path") - if is_public(host, path) then - local auth = h:get("authorization") - if auth then - h:replace("x-orig-authorization", auth) - h:remove("authorization") - end - end - end - - applyTo: HTTP_FILTER - match: - context: GATEWAY - listener: - filterChain: - filter: - name: envoy.filters.network.http_connection_manager - subFilter: - name: envoy.filters.http.jwt_authn - patch: - operation: INSERT_AFTER - value: - name: envoy.filters.http.lua - typed_config: - '@type': type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua - inlineCode: | - function envoy_on_request(handle) - local h = handle:headers() - local xauth = h:get("x-orig-authorization") - if xauth and not h:get("authorization") then - h:replace("authorization", xauth) - h:remove("x-orig-authorization") - end - end - strip-jwt-on-public-paths: - namespace: istio-system - workloadSelector: - labels: - istio: ingressgateway - configPatches: - - applyTo: HTTP_FILTER - match: - context: GATEWAY - listener: - filterChain: - filter: - name: envoy.filters.network.http_connection_manager - subFilter: - name: envoy.filters.http.jwt_authn - patch: - operation: INSERT_BEFORE - value: - name: envoy.filters.http.lua - typed_config: - '@type': type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua - inlineCode: | - local public_prefixes = { - "^/documentations/api/v1/public/qr", - "^/documentations/api/v1/public/documents/public_link" - } - - local download_prefixes = { - "^/files/api/v1/documents/folders", - "^/files/api/v1/documents", - "^/files/api/v1/bundles" - } - - local function starts_with_any(path, prefixes) - for _, pref in ipairs(prefixes) do - if string.find(path, pref) == 1 then - return true - end - end - return false - end - - local function has_download_type(path) - if not path or path == "" then - return false - end - return string.match(path, "[%?&]download_type=") ~= nil - end - - local function should_strip(path) - if not path then - return false - end - - if starts_with_any(path, public_prefixes) then - return true - end - - if starts_with_any(path, download_prefixes) and has_download_type(path) then - return true - end - - return false - end - - function envoy_on_request(handle) - local h = handle:headers() - local p = h:get(":path") or "" - - if should_strip(p) then - local auth = h:get("authorization") - if auth then - h:replace("x-orig-authorization-public-paths", auth) - h:remove("authorization") - end - - local identity = h:get("identity") - if identity then - h:replace("x-orig-identity-public-paths", identity) - h:remove("identity") - end - - h:replace("x-jwt-stripped-public-paths", "1") - end - end - - applyTo: HTTP_FILTER - match: - context: GATEWAY - listener: - filterChain: - filter: - name: envoy.filters.network.http_connection_manager - subFilter: - name: envoy.filters.http.jwt_authn - patch: - operation: INSERT_AFTER - value: - name: envoy.filters.http.lua - typed_config: - '@type': type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua - inlineCode: | - function envoy_on_request(handle) - local h = handle:headers() - local stripped = h:get("x-jwt-stripped-public-paths") - - if stripped == "1" then - local xauth = h:get("x-orig-authorization-public-paths") - if xauth and not h:get("authorization") then - h:replace("authorization", xauth) - end - h:remove("x-orig-authorization-public-paths") - - local xidentity = h:get("x-orig-identity-public-paths") - if xidentity and not h:get("identity") then - h:replace("identity", xidentity) - end - h:remove("x-orig-identity-public-paths") - - h:remove("x-jwt-stripped-public-paths") - end - end - cors-json-401: - namespace: istio-system - workloadSelector: - labels: - istio: ingressgateway - configPatches: - - applyTo: HTTP_FILTER - match: - context: GATEWAY - listener: - filterChain: - filter: - name: envoy.filters.http.jwt_authn - patch: - operation: INSERT_BEFORE - value: - name: envoy.filters.http.cors - typed_config: - '@type': type.googleapis.com/envoy.extensions.filters.http.cors.v3.Cors - cors: - allow_credentials: true - allow_headers: "Authorization,Content-Type" - allow_methods: "GET,POST,PUT,PATCH,DELETE,OPTIONS" - allow_origin_string_match: - - safe_regex: - regex: https://.*\.sarex\.io - - safe_regex: - regex: https://.*\.contour\.infra\.sarex\.tech - - safe_regex: - regex: https://localhost:.* - max_age: "86400" - - applyTo: NETWORK_FILTER - match: - context: GATEWAY - listener: - filterChain: - filter: - name: envoy.filters.network.http_connection_manager - patch: - operation: MERGE - value: - typed_config: - '@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager - local_reply_config: - mappers: - - body: - inline_string: | - {"error":"unauthorized","detail":"Invalid or expired token"} - filter: - status_code_filter: - comparison: - op: EQ - value: - default_value: 401 - runtime_key: default - headers_to_add: - - append_action: OVERWRITE_IF_EXISTS_OR_ADD - header: - key: Content-Type - value: application/json - - append_action: OVERWRITE_IF_EXISTS_OR_ADD - header: - key: Access-Control-Allow-Origin - value: '%REQ(Origin)%' - - append_action: OVERWRITE_IF_EXISTS_OR_ADD - header: - key: Access-Control-Allow-Credentials - value: 'true' - gateways: - platform: - name: platform-gateway - namespace: gateway - servers: - - hosts: - - sarex.contour.infra.sarex.tech - tls: - credentialName: platform-tls - minio: - name: minio-gateway - namespace: gateway - servers: - - hosts: - - minio.contour.infra.sarex.tech - tls: - credentialName: minio-tls - zitadel: - name: zitadel-gateway - namespace: gateway - servers: - - hosts: - - zitadel.contour.infra.sarex.tech - tls: - credentialName: zitadel-tls - dashboard: - name: dashboard-gateway - namespace: gateway - servers: - - hosts: - - dashboard.contour.infra.sarex.tech - tls: - credentialName: dashboard-tls - rabbitmq: - name: rabbitmq-gateway - namespace: gateway - servers: - - hosts: - - rabbitmq.contour.infra.sarex.tech - tls: - credentialName: rabbitmq-tls - keycloak: - name: keycloak-gateway - namespace: gateway - servers: - - hosts: - - keycloak.contour.infra.sarex.tech - tls: - credentialName: keycloak-tls - glitchtip: - name: glitchtip-gateway - namespace: gateway - servers: - - hosts: - - glitchtip.contour.infra.sarex.tech - tls: - credentialName: glitchtip-tls - openobserve: - name: openobserve-gateway - namespace: gateway - servers: - - hosts: - - openobserve.contour.infra.sarex.tech - tls: - credentialName: openobserve-tls - vault: - name: vault-gateway - namespace: gateway - servers: - - hosts: - - vault.contour.infra.sarex.tech - tls: - credentialName: vault-tls - camunda: - name: camunda-gateway - namespace: gateway - servers: - - hosts: - - camunda-keycloak.contour.infra.sarex.tech - tls: - credentialName: camunda-keycloak-tls - - hosts: - - camunda-identity.contour.infra.sarex.tech - tls: - credentialName: camunda-identity-tls - - hosts: - - camunda-operate.contour.infra.sarex.tech - tls: - credentialName: camunda-operate-tls - - hosts: - - camunda-tasklist.contour.infra.sarex.tech - tls: - credentialName: camunda-tasklist-tls - - hosts: - - camunda-optimize.contour.infra.sarex.tech - tls: - credentialName: camunda-optimize-tls - virtualServices: - platform: - name: sarex-frontend-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /admin/ - service: backend-svc.django.svc.cluster.local - port: 80 - - - path: - prefix: /api/ - service: backend-svc.django.svc.cluster.local - port: 80 - - - path: - prefix: / - service: frontend-svc.django.svc.cluster.local - port: 80 - gateway-platform: - name: pdm-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /gateway/ - rewrite: / - service: pdm-svc.documentations.svc.cluster.local - port: 80 - resources-admin: - name: resources-admin-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /resource-management - rewrite: /resource-management - service: backend-svc.resources.svc.cluster.local - port: 80 - srx-admin-frontend: - name: srx-admin-frontend-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /control-interface/ - rewrite: / - service: frontend-svc.control-interface.svc.cluster.local - port: 80 - workflows-frontend: - name: workflows-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /workflows/api/ - rewrite: /api/ - service: backend-svc.processing.svc.cluster.local - port: 80 - - path: - prefix: /workflows/ - rewrite: / - service: frontend-svc.processing.svc.cluster.local - port: 80 - eav-api: - name: eav-api-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /eav/api/ - rewrite: /api/ - service: backend-svc.eav.svc.cluster.local - port: 80 - issues-api: - name: issues-api-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /issues/api/ - rewrite: /api/ - service: backend-svc.issues.svc.cluster.local - port: 80 - flows-api: - name: flows-api-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /flows/api/ - rewrite: /api/ - service: backend-svc.flows.svc.cluster.local - port: 80 - rfi-api: - name: rfi-api-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /rfi/api/ - rewrite: /api/ - service: backend-svc.rfi.svc.cluster.local - port: 80 - transmittals-api: - name: flows-api-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /transmittals/api/ - rewrite: /api/ - service: backend-svc.transmittal.svc.cluster.local - port: 80 - workspaces-api: - name: workspaces-api-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /workspaces/api/ - rewrite: /api/ - service: backend-svc.workspaces.svc.cluster.local - port: 80 - documentations-frontend: - name: documentations-frontend-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /documentations/static/ - rewrite: / - service: frontend-svc.documentations.svc.cluster.local - port: 80 - transmittal-frontend: - name: transmittal-frontend-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /transmittal/static/ - rewrite: / - service: frontend-svc.transmittal.svc.cluster.local - port: 80 - documentations-api: - name: documentations-api-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /documentations/api/ - rewrite: /api/ - service: backend-api-svc.documentations.svc.cluster.local - port: 80 - mapper-api: - name: mapper-api-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /mapper/api/ - rewrite: /api/ - service: backend-svc.mapper.svc.cluster.local - port: 80 - filestream-api: - name: documentations-filestream-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /files/api/ - rewrite: /api/ - service: backend-filestream-svc.documentations.svc.cluster.local - port: 80 - issues-frontend: - name: issues-frontend-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /issues/static/ - rewrite: / - service: frontend-svc.issues.svc.cluster.local - port: 80 - flows-frontend: - name: flows-frontend-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /flows/static/ - rewrite: / - service: frontend-svc.flows.svc.cluster.local - port: 80 - reviews-frontend: - name: reviews-frontend-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /reviews/static/ - rewrite: / - service: frontend-svc.reviews.svc.cluster.local - port: 80 - rfi-frontend: - name: rfi-frontend-virt-service - namespace: gateway - hosts: - - sarex.contour.infra.sarex.tech - gateways: - - gateway/platform-gateway - routes: - - path: - prefix: /rfi/static/ - rewrite: / - service: frontend-svc.rfi.svc.cluster.local - port: 80 - vault: - name: vault-virt-service - namespace: gateway - hosts: - - vault.contour.infra.sarex.tech - gateways: - - gateway/vault-gateway - routes: - - path: - prefix: / - service: vault-vault-contour.vault.svc.cluster.local - port: 8200 - minio: - name: minio-virt-service - namespace: gateway - hosts: - - minio.contour.infra.sarex.tech - gateways: - - gateway/minio-gateway - routes: - - path: - prefix: /console/ - service: minio-console.minio.svc.cluster.local - port: 9001 - minio-api: - name: minio-api-virt-service - namespace: gateway - hosts: - - minio.contour.infra.sarex.tech - gateways: - - gateway/minio-gateway - routes: - - path: - prefix: / - service: minio.minio.svc.cluster.local - port: 9000 - zitadel: - name: zitadel-virt-service - namespace: gateway - hosts: - - zitadel.contour.infra.sarex.tech - gateways: - - gateway/zitadel-gateway - routes: - - path: - prefix: / - service: zitadel-idp-contour.zitadel.svc.cluster.local - port: 8080 - dashboard: - name: dashboard-virt-service - namespace: gateway - hosts: - - dashboard.contour.infra.sarex.tech - gateways: - - gateway/dashboard-gateway - routes: - - path: - prefix: / - service: dashboard-kong-proxy.kubernetes-dashboard.svc.cluster.local - port: 80 - rabbitmq: - name: rabbitmq-virt-service - namespace: gateway - hosts: - - rabbitmq.contour.infra.sarex.tech - gateways: - - gateway/rabbitmq-gateway - routes: - - path: - prefix: / - service: rabbitmq.rabbitmq.svc.cluster.local - port: 15672 - keycloak: - name: keycloak-virt-service - namespace: gateway - hosts: - - keycloak.contour.infra.sarex.tech - gateways: - - gateway/keycloak-gateway - routes: - - path: - prefix: / - service: keycloak-keycloak-contour.keycloak.svc.cluster.local - port: 80 - glitchtip: - name: glitchtip-virt-service - namespace: gateway - hosts: - - glitchtip.contour.infra.sarex.tech - gateways: - - gateway/glitchtip-gateway - routes: - - path: - prefix: / - service: glitchtip-web.glitchtip.svc.cluster.local - port: 8000 - openobserve: - name: openobserve-virt-service - namespace: gateway - hosts: - - openobserve.contour.infra.sarex.tech - gateways: - - gateway/openobserve-gateway - routes: - - path: - prefix: / - service: openobserve-web.openobserve.svc.cluster.local - port: 5080 - camunda-keycloak: - name: camunda-keycloak-virt-service - namespace: gateway - hosts: - - camunda-keycloak.contour.infra.sarex.tech - gateways: - - gateway/camunda-gateway - routes: - - path: - prefix: / - service: camunda-keycloak.camunda.svc.cluster.local - port: 80 - camunda-identity: - name: camunda-identity-virt-service - namespace: gateway - hosts: - - camunda-identity.contour.infra.sarex.tech - gateways: - - gateway/camunda-gateway - routes: - - path: - prefix: / - service: camunda-identity.camunda.svc.cluster.local - port: 80 - camunda-operate: - name: camunda-operate-virt-service - namespace: gateway - hosts: - - camunda-operate.contour.infra.sarex.tech - gateways: - - gateway/camunda-gateway - routes: - - path: - prefix: / - service: camunda-operate.camunda.svc.cluster.local - port: 80 - camunda-tasklist: - name: camunda-tasklist-virt-service - namespace: gateway - hosts: - - camunda-tasklist.contour.infra.sarex.tech - gateways: - - gateway/camunda-gateway - routes: - - path: - prefix: / - service: camunda-tasklist.camunda.svc.cluster.local - port: 80 - camunda-optimize: - name: camunda-optimize-virt-service - namespace: gateway - hosts: - - camunda-optimize.contour.infra.sarex.tech - gateways: - - gateway/camunda-gateway - routes: - - path: - prefix: / - service: camunda-optimize.camunda.svc.cluster.local - port: 80 diff --git a/infrastructure/istio-config/yc-k8s-test/kustomization.yaml b/infrastructure/istio-config/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 894c51a..0000000 --- a/infrastructure/istio-config/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: istio-config.yaml diff --git a/infrastructure/istio-gateway/sarex-contour/istio-gateway.yaml b/infrastructure/istio-gateway/sarex-contour/istio-gateway.yaml deleted file mode 100644 index 46d4110..0000000 --- a/infrastructure/istio-gateway/sarex-contour/istio-gateway.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: ingressgateway - namespace: istio-system -spec: - interval: 5m - timeout: 10m - dependsOn: - - name: istio-base - namespace: istio-system - - name: istiod - namespace: istio-system - values: - _internal_defaults_do_not_set: - replicaCount: 1 - service: - type: NodePort - ports: - - name: status-port - port: 15021 - protocol: TCP - targetPort: 15021 - - name: http2 - port: 80 - protocol: TCP - targetPort: 80 - nodePort: 30080 - - name: https - port: 443 - protocol: TCP - targetPort: 443 - nodePort: 30443 diff --git a/infrastructure/istio-gateway/sarex-contour/kustomization.yaml b/infrastructure/istio-gateway/sarex-contour/kustomization.yaml deleted file mode 100644 index ecc3c36..0000000 --- a/infrastructure/istio-gateway/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: istio-gateway.yaml diff --git a/infrastructure/istio-gateway/yc-k8s-test/istio-gateway.yaml b/infrastructure/istio-gateway/yc-k8s-test/istio-gateway.yaml deleted file mode 100644 index 0dfbf8a..0000000 --- a/infrastructure/istio-gateway/yc-k8s-test/istio-gateway.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: ingressgateway - namespace: istio-system -spec: - interval: 5m - timeout: 10m - dependsOn: - - name: istio-base - namespace: istio-system - - name: istiod - namespace: istio-system - values: - _internal_defaults_do_not_set: - replicaCount: 1 diff --git a/infrastructure/istio-gateway/yc-k8s-test/kustomization.yaml b/infrastructure/istio-gateway/yc-k8s-test/kustomization.yaml deleted file mode 100644 index ecc3c36..0000000 --- a/infrastructure/istio-gateway/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: istio-gateway.yaml diff --git a/infrastructure/istio-pilot/sarex-contour/istio-pilot.yaml b/infrastructure/istio-pilot/sarex-contour/istio-pilot.yaml deleted file mode 100644 index a7d0773..0000000 --- a/infrastructure/istio-pilot/sarex-contour/istio-pilot.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: istiod - namespace: istio-system -spec: - interval: 5m - timeout: 10m - dependsOn: - - name: istio-base - namespace: istio-system - values: - global: - imagePullSecrets: - - regcred diff --git a/infrastructure/istio-pilot/sarex-contour/kustomization.yaml b/infrastructure/istio-pilot/sarex-contour/kustomization.yaml deleted file mode 100644 index 252e659..0000000 --- a/infrastructure/istio-pilot/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: istio-pilot.yaml diff --git a/infrastructure/istio-pilot/yc-k8s-test/istio-pilot.yaml b/infrastructure/istio-pilot/yc-k8s-test/istio-pilot.yaml deleted file mode 100644 index f7d1fe3..0000000 --- a/infrastructure/istio-pilot/yc-k8s-test/istio-pilot.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: istiod - namespace: istio-system -spec: - interval: 5m - timeout: 10m - dependsOn: - - name: istio-base - namespace: istio-system - values: - traceSampling: 100 - meshConfig: - enableTracing: true - defaultConfig: - tracing: - sampling: 100 - custom_tags: - client_ip: - header: - name: x-forwarded-for - user.id: - header: - name: x-user-id - zipkin: - address: otel-collector.opentelemetry-collector.svc.cluster.local:9411 diff --git a/infrastructure/istio-pilot/yc-k8s-test/kustomization.yaml b/infrastructure/istio-pilot/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 252e659..0000000 --- a/infrastructure/istio-pilot/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: istio-pilot.yaml diff --git a/infrastructure/kafka/sarex-contour/kafka.yaml b/infrastructure/kafka/sarex-contour/kafka.yaml deleted file mode 100644 index 5b9b033..0000000 --- a/infrastructure/kafka/sarex-contour/kafka.yaml +++ /dev/null @@ -1,60 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: kafka - namespace: kafka -spec: - interval: 5m - timeout: 10m - values: - global: - imagePullSecrets: - - regcred - defaultStorageClass: local-path - image: - pullSecrets: - - regcred - controller: - replicaCount: 1 - automountServiceAccountToken: true - persistence: - size: 8Gi - storageClass: local-path - overrideConfiguration: - authorizer.class.name: org.apache.kafka.metadata.authorizer.StandardAuthorizer - allow.everyone.if.no.acl.found: true - super.users: User:controller_user;User:inter_broker_user - offsets.topic.replication.factor: 1 - transaction.state.log.replication.factor: 1 - transaction.state.log.min.isr: 1 - default.replication.factor: 1 - min.insync.replicas: 1 - broker: - replicaCount: 0 - automountServiceAccountToken: true - listeners: - client: - protocol: SASL_SSL - sslClientAuth: "none" - provisioning: - enabled: false - sasl: - managedExistingSecret: - enabled: false - existingSecret: "" - enabledMechanisms: PLAIN,SCRAM-SHA-512 - interBrokerMechanism: PLAIN - controllerMechanism: PLAIN - client: - users: [] - passwords: "" - tls: - type: PEM - vault: - enabled: true - role: kafka - authPath: auth/kubernetes - secretPath: secrets/data/kafka/bootstrap - clusterIdKey: clusterId - interBrokerPasswordKey: interBrokerPassword - controllerPasswordKey: controllerPassword diff --git a/infrastructure/kafka/sarex-contour/kustomization.yaml b/infrastructure/kafka/sarex-contour/kustomization.yaml deleted file mode 100644 index f60b1c1..0000000 --- a/infrastructure/kafka/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: kafka.yaml diff --git a/infrastructure/kafka/yc-k8s-test/kafka.yaml b/infrastructure/kafka/yc-k8s-test/kafka.yaml deleted file mode 100644 index 5b9b033..0000000 --- a/infrastructure/kafka/yc-k8s-test/kafka.yaml +++ /dev/null @@ -1,60 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: kafka - namespace: kafka -spec: - interval: 5m - timeout: 10m - values: - global: - imagePullSecrets: - - regcred - defaultStorageClass: local-path - image: - pullSecrets: - - regcred - controller: - replicaCount: 1 - automountServiceAccountToken: true - persistence: - size: 8Gi - storageClass: local-path - overrideConfiguration: - authorizer.class.name: org.apache.kafka.metadata.authorizer.StandardAuthorizer - allow.everyone.if.no.acl.found: true - super.users: User:controller_user;User:inter_broker_user - offsets.topic.replication.factor: 1 - transaction.state.log.replication.factor: 1 - transaction.state.log.min.isr: 1 - default.replication.factor: 1 - min.insync.replicas: 1 - broker: - replicaCount: 0 - automountServiceAccountToken: true - listeners: - client: - protocol: SASL_SSL - sslClientAuth: "none" - provisioning: - enabled: false - sasl: - managedExistingSecret: - enabled: false - existingSecret: "" - enabledMechanisms: PLAIN,SCRAM-SHA-512 - interBrokerMechanism: PLAIN - controllerMechanism: PLAIN - client: - users: [] - passwords: "" - tls: - type: PEM - vault: - enabled: true - role: kafka - authPath: auth/kubernetes - secretPath: secrets/data/kafka/bootstrap - clusterIdKey: clusterId - interBrokerPasswordKey: interBrokerPassword - controllerPasswordKey: controllerPassword diff --git a/infrastructure/kafka/yc-k8s-test/kustomization.yaml b/infrastructure/kafka/yc-k8s-test/kustomization.yaml deleted file mode 100644 index f60b1c1..0000000 --- a/infrastructure/kafka/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: kafka.yaml diff --git a/infrastructure/keycloak/yc-k8s-test/keycloak.yaml b/infrastructure/keycloak/yc-k8s-test/keycloak.yaml deleted file mode 100644 index d4a7fe4..0000000 --- a/infrastructure/keycloak/yc-k8s-test/keycloak.yaml +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: keycloak - namespace: keycloak -spec: - interval: 5m - timeout: 15m - values: - global: - defaultStorageClass: local-path - imageRegistry: "" - persistence: - enabled: true - storageClass: local-path - size: 10Gi - postgresql: - enabled: false - vaultEnv: - enabled: true - role: keycloak - authPath: auth/kubernetes - envFiles: - KEYCLOAK_ADMIN_PASSWORD: - path: secrets/data/keycloak/admin - key: password - KEYCLOAK_PASSWORD: - path: secrets/data/keycloak/admin - key: password - KEYCLOAK_DATABASE_HOST: - path: secrets/data/keycloak/postgresql - key: host - KEYCLOAK_DATABASE_PORT: - path: secrets/data/keycloak/postgresql - key: port - KEYCLOAK_DATABASE_USER: - path: secrets/data/keycloak/postgresql - key: user - KEYCLOAK_DATABASE_NAME: - path: secrets/data/keycloak/postgresql - key: database - KEYCLOAK_DATABASE_PASSWORD: - path: secrets/data/keycloak/postgresql - key: password - externalDatabase: - host: "postgresql.postgresql.svc.cluster.local" - port: 5432 - user: keycloak - database: keycloak diff --git a/infrastructure/keycloak/yc-k8s-test/kustomization.yaml b/infrastructure/keycloak/yc-k8s-test/kustomization.yaml deleted file mode 100644 index ff5985b..0000000 --- a/infrastructure/keycloak/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: keycloak.yaml diff --git a/infrastructure/local-path-provisioner/yc-k8s-test/kustomization.yaml b/infrastructure/local-path-provisioner/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 5be1e3d..0000000 --- a/infrastructure/local-path-provisioner/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: local-path-provisioner.yaml diff --git a/infrastructure/local-path-provisioner/yc-k8s-test/local-path-provisioner.yaml b/infrastructure/local-path-provisioner/yc-k8s-test/local-path-provisioner.yaml deleted file mode 100644 index 2d78181..0000000 --- a/infrastructure/local-path-provisioner/yc-k8s-test/local-path-provisioner.yaml +++ /dev/null @@ -1,53 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: local-path-provisioner - namespace: local-path-provisioner -spec: - interval: 5m - timeout: 10m - values: - replicaCount: 1 - image: - repository: cr.yandex/crp3ccidau046kdj8g9q/contour/local-path-provisioner-nn/local-path-provisioner - tag: v0.0.24 - pullPolicy: IfNotPresent - helperImage: - repository: cr.yandex/crp3ccidau046kdj8g9q/contour/local-path-provisioner-nn/busybox - tag: latest - defaultSettings: - registrySecret: null - privateRegistry: - registryUrl: null - registryUser: null - registryPasswd: null - imagePullSecrets: - - name: regcred - nameOverride: "" - fullnameOverride: "" - storageClass: - create: true - defaultClass: false - name: local-path - reclaimPolicy: Retain - nodePathMap: - - node: DEFAULT_PATH_FOR_NON_LISTED_NODES - paths: - - /opt/local-path-provisioner - resources: {} - rbac: - create: true - serviceAccount: - create: true - name: "" - nodeSelector: {} - tolerations: [] - affinity: {} - configmap: - name: local-path-config - setup: |- - set -eu - mkdir -m 0777 -p "$VOL_DIR" - teardown: |- - set -eu - rm -rf "$VOL_DIR" diff --git a/infrastructure/minio/yc-k8s-test/kustomization.yaml b/infrastructure/minio/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 2a83dd9..0000000 --- a/infrastructure/minio/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: minio.yaml diff --git a/infrastructure/minio/yc-k8s-test/minio.yaml b/infrastructure/minio/yc-k8s-test/minio.yaml deleted file mode 100644 index 769c6a7..0000000 --- a/infrastructure/minio/yc-k8s-test/minio.yaml +++ /dev/null @@ -1,39 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: minio - namespace: minio -spec: - interval: 5m - timeout: 10m - values: - nameOverride: "minio" - mode: standalone - environment: - MINIO_SERVER_URL: "https://minio.contour.infra.sarex.tech" - MINIO_BROWSER_REDIRECT_URL: "https://minio.contour.infra.sarex.tech/console/" - MINIO_API_CORS_ALLOW_ORIGIN: "https://minio.contour.infra.sarex.tech" - imagePullSecrets: - - name: regcred - vaultRoot: - enabled: true - role: minio - authPath: auth/kubernetes - secretPath: secrets/data/minio/admin - rootUserKey: rootUser - rootPasswordKey: rootPassword - drivesPerNode: 1 - replicas: 1 - nodeSelector: - dedicated: s3 - tolerations: - - key: dedicated - operator: Equal - value: s3 - effect: NoSchedule - persistence: - storageClass: local-path - size: 100Gi - resources: - requests: - memory: 1Gi diff --git a/infrastructure/openldap/yc-k8s-test/kustomization.yaml b/infrastructure/openldap/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 8480a7c..0000000 --- a/infrastructure/openldap/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: openldap.yaml diff --git a/infrastructure/openldap/yc-k8s-test/openldap.yaml b/infrastructure/openldap/yc-k8s-test/openldap.yaml deleted file mode 100644 index 022d77d..0000000 --- a/infrastructure/openldap/yc-k8s-test/openldap.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: openldap - namespace: openldap -spec: - interval: 5m - timeout: 15m - values: - global: - ldapDomain: "sarex.tech" - replicaCount: 1 - readOnlyReplicaCount: 0 - replication: - enabled: false - persistence: - enabled: true - size: 10Gi - storageClass: local-path - phpldapadmin: - enabled: false - ltb-passwd: - enabled: false - service: - enableLdapPort: true - enableSslLdapPort: false diff --git a/infrastructure/openobserve/yc-k8s-test/kustomization.yaml b/infrastructure/openobserve/yc-k8s-test/kustomization.yaml deleted file mode 100644 index a051eeb..0000000 --- a/infrastructure/openobserve/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: openobserve.yaml diff --git a/infrastructure/openobserve/yc-k8s-test/openobserve.yaml b/infrastructure/openobserve/yc-k8s-test/openobserve.yaml deleted file mode 100644 index 1d9225e..0000000 --- a/infrastructure/openobserve/yc-k8s-test/openobserve.yaml +++ /dev/null @@ -1,73 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: openobserve - namespace: openobserve -spec: - interval: 5m - timeout: 10m - values: - universal-chart: - services: - openobserve: - deployment: - replicaCount: - _default: 1 - envs: - - name: ZO_HTTP_PORT - value: - _default: "5080" - - name: ZO_LOCAL_MODE - value: - _default: "false" - - name: ZO_META_STORE - value: - _default: postgres - - name: ZO_CLUSTER_COORDINATOR - value: - _default: nats - - name: ZO_NATS_REPLICAS - value: - _default: "1" - - name: ZO_S3_PROVIDER - value: - _default: s3 - - name: ZO_S3_SERVER_URL - value: - _default: http://minio.minio.svc.cluster.local:9000 - - name: ZO_S3_BUCKET_NAME - value: - _default: open-observe - - name: ZO_S3_REGION_NAME - value: - _default: ru-central1 - - name: ZO_TELEMETRY - value: - _default: "false" - serviceAccount: - enabled: true - name: - _default: openobserve-vault - imagePullSecrets: - create: - _default: false - name: - _default: regcred - openobserve: - secret: - create: false - name: openobserve-secret - nats: - enabled: true - replicaCount: 1 - persistence: - enabled: true - size: 10Gi - storageClassName: local-path - otelCollector: - enabled: false - vault: - enabled: true - role: openobserve - authPath: auth/kubernetes - secretPath: secrets/data/vault/apps/openobserve diff --git a/infrastructure/opentelemetry-collector/yc-k8s-test/kustomization.yaml b/infrastructure/opentelemetry-collector/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 684a50e..0000000 --- a/infrastructure/opentelemetry-collector/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - signoz-compat.yaml -patches: - - path: opentelemetry-collector.yaml diff --git a/infrastructure/opentelemetry-collector/yc-k8s-test/opentelemetry-collector.yaml b/infrastructure/opentelemetry-collector/yc-k8s-test/opentelemetry-collector.yaml deleted file mode 100644 index 068c4f0..0000000 --- a/infrastructure/opentelemetry-collector/yc-k8s-test/opentelemetry-collector.yaml +++ /dev/null @@ -1,203 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: opentelemetry-collector - namespace: opentelemetry-collector -spec: - interval: 5m - timeout: 30m - install: - disableWait: true - remediation: - retries: 3 - upgrade: - disableWait: true - remediation: - retries: 3 - values: - imagePullSecrets: - - name: regcred - mode: daemonset - fullnameOverride: otel-collector - serviceAccount: - create: true - name: openobserve-vault - podAnnotations: - vault.hashicorp.com/agent-init-first: "true" - vault.hashicorp.com/agent-inject: "true" - vault.hashicorp.com/agent-requests-cpu: "25m" - vault.hashicorp.com/agent-limits-cpu: "100m" - vault.hashicorp.com/agent-pre-populate-only: "true" - vault.hashicorp.com/auth-path: auth/kubernetes - vault.hashicorp.com/role: openobserve - vault.hashicorp.com/agent-inject-secret-openobserve-basic-auth: secrets/data/vault/apps/openobserve - vault.hashicorp.com/agent-inject-template-openobserve-basic-auth: |- - {{ "{{- with secret \"secrets/data/vault/apps/openobserve\" -}}" }} - Basic {{ "{{ index .Data.data \"OPENOBSERVE_BASIC_AUTH\" }}" }} - {{ "{{- end -}}" }} - tolerations: - - operator: Exists - rollout: - rollingUpdate: - maxUnavailable: 4 - presets: - logsCollection: - enabled: true - includeCollectorLogs: false - kubernetesAttributes: - enabled: true - podMonitor: - enabled: false - extraPodMonitors: [] - serviceMonitor: - enabled: false - prometheusRule: - enabled: false - alternateConfig: - exporters: - otlphttp/openobserve: - endpoint: http://openobserve-web.openobserve.svc.cluster.local:5080/api/default - headers: - Authorization: ${file:/vault/secrets/openobserve-basic-auth} - retry_on_failure: - enabled: true - sending_queue: - enabled: true - num_consumers: 5 - queue_size: 8192 - tls: - insecure: true - extensions: - health_check: - endpoint: ${env:MY_POD_IP}:13133 - processors: - batch: - send_batch_max_size: 2048 - send_batch_size: 1024 - timeout: 5s - filter/drop_timeouts: - logs: - exclude: - match_type: regexp - bodies: - - '^Timeouts: user.*' - k8sattributes: {} - resource: - attributes: - - action: insert - key: k8s.cluster.name - value: yc-k8s-test - - action: insert - key: deployment.environment - value: contour - - action: insert - key: host.name - from_attribute: k8s.node.name - transform/remove_body: - error_mode: ignore - trace_statements: - - delete_key(span.attributes, "body") - receivers: - filelog: - exclude: - - /var/log/pods/*/otel-collector/*.log - - /var/log/pods/*/otel-collector-*/*.log - - /var/log/pods/*/opentelemetry-collector-prod/*.log - - /var/log/pods/*/opentelemetry-collector-*/*.log - - /var/log/pods/kube-system_*/*/*.log - - /var/log/pods/istio-system_*/*/*.log - - /var/log/pods/*/*/istio-*/*.log - - /var/log/pods/*/istio-*/*.log - include: - - /var/log/pods/*/*/*.log - include_file_name: false - include_file_path: true - operators: - - id: container-parser - type: container - max_log_size: 102400 - - id: json-body-parser - type: json_parser - parse_from: body - parse_to: attributes - if: 'body matches "^\\s*\\{"' - on_error: send_quiet - - id: json-msg-parser - type: json_parser - parse_from: attributes.msg - parse_to: attributes - if: 'attributes.msg != nil and attributes.msg matches "^\\s*\\{"' - on_error: send_quiet - - id: severity-from-level - type: severity_parser - parse_from: attributes.level - if: 'attributes.level != nil' - overwrite_text: true - on_error: send_quiet - - id: trace-from-json - type: trace_parser - trace_id: - parse_from: attributes.trace_id - span_id: - parse_from: attributes.span_id - if: 'attributes.trace_id != nil and attributes.span_id != nil' - on_error: send_quiet - - id: user-id-from-request - type: copy - from: attributes.request.user_id - to: attributes.user_id - if: 'attributes.request != nil and attributes.request.user_id != nil' - on_error: send_quiet - - id: company-id-from-request - type: copy - from: attributes.request.company_id - to: attributes.company_id - if: 'attributes.request != nil and attributes.request.company_id != nil' - on_error: send_quiet - - id: message-to-body - type: copy - from: attributes.message - to: body - if: 'attributes.message != nil' - on_error: send_quiet - retry_on_failure: - enabled: true - start_at: end - otlp: - protocols: - grpc: - endpoint: 0.0.0.0:4317 - http: - endpoint: 0.0.0.0:4318 - zipkin: - endpoint: 0.0.0.0:9411 - service: - extensions: - - health_check - pipelines: - logs: - exporters: - - otlphttp/openobserve - processors: - - k8sattributes - - resource - - filter/drop_timeouts - - batch - receivers: - - filelog - traces: - exporters: - - otlphttp/openobserve - processors: - - k8sattributes - - resource - - transform/remove_body - - batch - receivers: - - otlp - - zipkin - telemetry: - logs: - level: info - metrics: - address: ${env:MY_POD_IP}:8888 diff --git a/infrastructure/opentelemetry-collector/yc-k8s-test/signoz-compat.yaml b/infrastructure/opentelemetry-collector/yc-k8s-test/signoz-compat.yaml deleted file mode 100644 index 9d76993..0000000 --- a/infrastructure/opentelemetry-collector/yc-k8s-test/signoz-compat.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: signoz ---- -apiVersion: v1 -kind: Service -metadata: - name: signoz-otel-collector-external - namespace: signoz -spec: - type: ExternalName - externalName: otel-collector.opentelemetry-collector.svc.cluster.local - ports: - - name: otlp-grpc - port: 4317 - targetPort: 4317 - protocol: TCP - - name: otlp-http - port: 4318 - targetPort: 4318 - protocol: TCP - - name: zipkin - port: 9411 - targetPort: 9411 - protocol: TCP diff --git a/infrastructure/opentelemetry-operator/yc-k8s-test/kustomization.yaml b/infrastructure/opentelemetry-operator/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 61b73d3..0000000 --- a/infrastructure/opentelemetry-operator/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: opentelemetry-operator.yaml - target: - kind: HelmRelease - name: opentelemetry-operator - namespace: opentelemetry-operator diff --git a/infrastructure/opentelemetry-operator/yc-k8s-test/opentelemetry-operator.yaml b/infrastructure/opentelemetry-operator/yc-k8s-test/opentelemetry-operator.yaml deleted file mode 100644 index a736f6d..0000000 --- a/infrastructure/opentelemetry-operator/yc-k8s-test/opentelemetry-operator.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: opentelemetry-operator - namespace: opentelemetry-operator -spec: - values: - manager: - featureGatesMap: - operator.collector.targetallocatorcr: false - operator.observability.prometheus: false diff --git a/infrastructure/postgresql/yc-k8s-test/kustomization.yaml b/infrastructure/postgresql/yc-k8s-test/kustomization.yaml deleted file mode 100644 index f7fbc19..0000000 --- a/infrastructure/postgresql/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: postgresql.yaml diff --git a/infrastructure/postgresql/yc-k8s-test/postgresql.yaml b/infrastructure/postgresql/yc-k8s-test/postgresql.yaml deleted file mode 100644 index c94b76e..0000000 --- a/infrastructure/postgresql/yc-k8s-test/postgresql.yaml +++ /dev/null @@ -1,419 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: postgresql - namespace: postgresql -spec: - interval: 5m - timeout: 2h - - install: - timeout: 2h - remediation: - retries: 3 - - upgrade: - timeout: 2h - remediation: - retries: 3 - - values: - global: - security: - allowInsecureImages: true - defaultStorageClass: local-path - postgresql: - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - auth: - username: "" - database: "" - secretKeys: - userPasswordKey: "postgres-password" - image: - registry: cr.yandex/crp3ccidau046kdj8g9q - repository: contour/postgresql - tag: 17.0.7 - pullPolicy: Always - metrics: - enabled: false - prometheusRule: - enabled: false - primary: - automountServiceAccountToken: true - containerSecurityContext: - readOnlyRootFilesystem: false - persistence: - storageClass: local-path - size: 20Gi - customLivenessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customReadinessProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - customStartupProbe: - exec: - command: - - /bin/sh - - -c - - exec pg_isready -U "postgres" -d postgres -h 127.0.0.1 -p 5432 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 6 - nodeSelector: - dedicated: db - tolerations: - - key: dedicated - operator: Equal - value: db - effect: NoSchedule - contour: - enabled: true - adminUser: "postgres" - vault: - enabled: true - role: postgresql - authPath: auth/kubernetes - secretPath: secrets/data/postgresql/admin - secretKey: postgres-password - usersSecretPath: secrets/data/postgresql/users - sharedPreloadLibraries: "timescaledb,pg_stat_statements" - databases: - # - name: attachments_db - # user: attachments - # passwordKey: attachments - # extensions: - # - ltree - # - pg_stat_statements - # - uuid-ossp - # restoreFromDump: false - # dumpKey: attachments.sql - - name: zitadel - user: zitadel - passwordKey: zitadel - extensions: [] - restoreFromDump: false - - name: keycloak - user: keycloak - passwordKey: keycloak - extensions: [] - restoreFromDump: false - - name: automation - user: automation - passwordKey: automation - extensions: - - pg_stat_statements - - uuid-ossp - restoreFromDump: false - - - name: bi - user: bi - passwordKey: bi - extensions: - - ltree - - pg_stat_statements - - uuid-ossp - restoreFromDump: false - - name: glitchtip - user: glitchtip - passwordKey: glitchtip - extensions: [] - restoreFromDump: false - - name: openobserve - user: openobserve - passwordKey: openobserve - extensions: [] - restoreFromDump: false - - # - name: camunda_db - # user: camunda - # passwordKey: camunda - # extensions: - # - pg_stat_statements - # restoreFromDump: false - - # - name: camunda_new - # user: camunda - # passwordKey: camunda - # extensions: - # - pg_stat_statements - # restoreFromDump: false - - # - name: checklists - # user: checklists_user - # passwordKey: checklists - # extensions: - # - pg_stat_statements - # - uuid-ossp - # restoreFromDump: false - - # - name: comparator - # user: prod_user - # passwordKey: comparator - # extensions: - # - pg_stat_statements - # - uuid-ossp - # restoreFromDump: false - - # - name: comparisons - # user: comparisons_prod - # passwordKey: comparisons - # extensions: - # - pg_stat_statements - # - uuid-ossp - # restoreFromDump: false - - # - name: contracts_prod_db - # user: prod_user - # passwordKey: contracts - # extensions: - # - btree_gist - # - ltree - # - pg_stat_statements - # - uuid-ossp - # restoreFromDump: false - - # - name: data-engine_db - # user: data-engine - # passwordKey: data-engine - # extensions: - # - btree_gin - # - btree_gist - # - hstore - # - ltree - # - pg_partman - # - pg_trgm - # - uuid-ossp - # restoreFromDump: false - - # - name: drawings - # user: prod_user - # passwordKey: drawings - # extensions: - # - pg_stat_statements - # - uuid-ossp - # restoreFromDump: false - - # - name: flow_db - # user: flow - # passwordKey: flow - # extensions: - # - pg_stat_statements - # restoreFromDump: false - - # - name: inspections - # user: prod_user - # passwordKey: inspections - # extensions: - # - ltree - # - pg_stat_statements - # - postgis - # - timescaledb - # - uuid-ossp - # restoreFromDump: false - - # - name: issues - # user: prod_user - # passwordKey: issues - # extensions: - # - ltree - # - pg_stat_statements - # - pg_trgm - # - postgis - # - timescaledb - # - uuid-ossp - # restoreFromDump: false - - # - name: mailer - # user: mailer - # passwordKey: mailer - # extensions: - # - pg_stat_statements - # - uuid-ossp - # restoreFromDump: false - - # - name: notes_db - # user: note - # passwordKey: notes - # extensions: - # - pg_stat_statements - # restoreFromDump: false - - # - name: pm_db - # user: pm - # passwordKey: pm - # extensions: - # - ltree - # - pg_stat_statements - # restoreFromDump: false - - # - name: premises_db - # user: premises - # passwordKey: premises - # extensions: - # - uuid-ossp - # restoreFromDump: false - - # - name: preprod_sarex_db - # user: preprod_sarex - # passwordKey: preprod-sarex - # extensions: - # - ltree - # - pg_stat_statements - # restoreFromDump: false - - # - name: processing - # user: prod_user - # passwordKey: processing - # extensions: - # - pg_stat_statements - # - uuid-ossp - # restoreFromDump: false - - # - name: pulse_db - # user: pulse - # passwordKey: pulse - # extensions: - # - pg_stat_statements - # restoreFromDump: false - - # - name: remarks - # user: prod_user - # passwordKey: remarks - # extensions: - # - pg_stat_statements - # - uuid-ossp - # restoreFromDump: false - - # - name: resources - # user: prod_user - # passwordKey: resources - # extensions: - # - ltree - # - pg_stat_statements - # - postgis - # restoreFromDump: false - - # - name: restored_flow_db - # user: flow - # passwordKey: flow - # extensions: - # - pg_stat_statements - # restoreFromDump: false - - # - name: rfi - # user: rfi_user - # passwordKey: rfi - # extensions: - # - pg_stat_statements - # restoreFromDump: false - - # - name: sarex_compute - # user: prod_user - # passwordKey: sarex-compute - # extensions: - # - pg_stat_statements - # - uuid-ossp - # restoreFromDump: false - - # - name: sarex_db - # user: sarex - # passwordKey: sarex - # extensions: - # - ltree - # - pg_stat_statements - # restoreFromDump: false - - # - name: srx-data-engine - # user: admin_user - # passwordKey: srx-data-engine - # extensions: - # - btree_gist - # - ltree - # - pg_partman - # - pg_stat_statements - # - uuid-ossp - # restoreFromDump: false - - # - name: subscriptions - # user: prod_user - # passwordKey: subscriptions - # extensions: - # - ltree - # - pg_stat_statements - # - postgis - # - timescaledb - # restoreFromDump: false - - # - name: superset - # user: sarex - # passwordKey: superset - # extensions: - # - pg_stat_statements - # restoreFromDump: false - - # - name: system_log - # user: prod_user - # passwordKey: system-log - # extensions: - # - ltree - # - pg_stat_statements - # - timescaledb - # restoreFromDump: false - - # - name: transmittal - # user: transmittal - # passwordKey: transmittal - # extensions: - # - pg_stat_statements - # restoreFromDump: false - - # - name: workspaces - # user: prod_user - # passwordKey: workspaces - # extensions: - # - pg_stat_statements - # - uuid-ossp - # restoreFromDump: false - - # - name: bim - # user: bim - # passwordKey: bim - # extensions: [] - # restoreFromDump: false - - # - name: documentations - # user: documentations - # passwordKey: documentations - # extensions: [] - # restoreFromDump: false - - # - name: eav - # user: eav - # passwordKey: eav - # extensions: [] - # restoreFromDump: false - s3-proxy: - endpointUrl: "s3-proxy-service.postgresql.svc.cluster.local" diff --git a/infrastructure/rabbitmq/sarex-contour/kustomization.yaml b/infrastructure/rabbitmq/sarex-contour/kustomization.yaml deleted file mode 100644 index e9a2db5..0000000 --- a/infrastructure/rabbitmq/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: rabbitmq.yaml diff --git a/infrastructure/rabbitmq/sarex-contour/rabbitmq.yaml b/infrastructure/rabbitmq/sarex-contour/rabbitmq.yaml deleted file mode 100644 index af8ea33..0000000 --- a/infrastructure/rabbitmq/sarex-contour/rabbitmq.yaml +++ /dev/null @@ -1,84 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: rabbitmq - namespace: rabbitmq -spec: - interval: 5m - timeout: 10m - postRenderers: - - kustomize: - patches: - - target: - group: cert-manager.io - version: v1 - kind: Certificate - namespace: gateway - name: rmq-tls - patch: |- - $patch: delete - apiVersion: cert-manager.io/v1 - kind: Certificate - metadata: - name: rmq-tls - namespace: gateway - - target: - group: networking.istio.io - version: v1beta1 - kind: Gateway - namespace: gateway - name: rmq-gateway - patch: |- - $patch: delete - apiVersion: networking.istio.io/v1beta1 - kind: Gateway - metadata: - name: rmq-gateway - namespace: gateway - - target: - group: networking.istio.io - version: v1 - kind: VirtualService - namespace: rabbitmq - name: rmq-virt-service - patch: |- - $patch: delete - apiVersion: networking.istio.io/v1 - kind: VirtualService - metadata: - name: rmq-virt-service - namespace: rabbitmq - values: - global: - security: - allowInsecureImages: true - virtualService: null - gateway: null - certificate: null - metrics: - serviceMonitor: - enabled: false - default: - enabled: false - perObject: - enabled: false - detailed: - enabled: false - extraServiceMonitors: [] - replicaCount: 1 - resources: - requests: - memory: 1Gi - persistence: - storageClass: local-path - size: 10Gi - auth: - securePassword: true - existingPasswordSecret: "" - vault: - enabled: true - role: rabbitmq - authPath: auth/kubernetes - secretPath: secrets/data/rabbitmq/auth - usernameKey: username - passwordKey: password diff --git a/infrastructure/rabbitmq/yc-k8s-test/kustomization.yaml b/infrastructure/rabbitmq/yc-k8s-test/kustomization.yaml deleted file mode 100644 index e9a2db5..0000000 --- a/infrastructure/rabbitmq/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: rabbitmq.yaml diff --git a/infrastructure/rabbitmq/yc-k8s-test/rabbitmq.yaml b/infrastructure/rabbitmq/yc-k8s-test/rabbitmq.yaml deleted file mode 100644 index ba24e8f..0000000 --- a/infrastructure/rabbitmq/yc-k8s-test/rabbitmq.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: rabbitmq - namespace: rabbitmq -spec: - interval: 5m - timeout: 10m - values: - global: - security: - allowInsecureImages: true - virtualService: null - gateway: null - certificate: null - metrics: - serviceMonitor: - enabled: false - default: - enabled: false - perObject: - enabled: false - detailed: - enabled: false - extraServiceMonitors: [] - replicaCount: 1 - resources: - requests: - memory: 1Gi - persistence: - storageClass: local-path - size: 10Gi - auth: - securePassword: true - existingPasswordSecret: "" - vault: - enabled: true - role: rabbitmq - authPath: auth/kubernetes - secretPath: secrets/data/rabbitmq/auth - usernameKey: username - passwordKey: password diff --git a/infrastructure/redis/yc-k8s-test/kustomization.yaml b/infrastructure/redis/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 5490543..0000000 --- a/infrastructure/redis/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: redis.yaml diff --git a/infrastructure/redis/yc-k8s-test/redis.yaml b/infrastructure/redis/yc-k8s-test/redis.yaml deleted file mode 100644 index a75d4e8..0000000 --- a/infrastructure/redis/yc-k8s-test/redis.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: redis - namespace: redis -spec: - interval: 5m - timeout: 10m - values: - global: - defaultStorageClass: local-path - architecture: standalone - auth: - enabled: true - sentinel: - enabled: false - replica: - replicaCount: 0 - master: - count: 1 - resources: - requests: - memory: 1Gi - limits: {} - persistence: - storageClass: local-path - size: 10Gi diff --git a/infrastructure/s3-proxy/yc-k8s-test/deployment.yaml b/infrastructure/s3-proxy/yc-k8s-test/deployment.yaml deleted file mode 100644 index be8adb2..0000000 --- a/infrastructure/s3-proxy/yc-k8s-test/deployment.yaml +++ /dev/null @@ -1,105 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: s3-proxy - namespace: postgresql - labels: - app: s3-proxy - service: s3proxy -spec: - replicas: 1 - revisionHistoryLimit: 10 - selector: - matchLabels: - app: s3-proxy - strategy: - type: RollingUpdate - rollingUpdate: - maxSurge: 25% - maxUnavailable: 25% - template: - metadata: - labels: - app: s3-proxy - service: s3proxy - annotations: - traffic.sidecar.istio.io/excludeOutboundPorts: "4317,4318,9411" - proxy.istio.io/config: | - tracing: - sampling: 100 - zipkin: - address: signoz-otel-collector-external.signoz.svc.cluster.local:9411 - custom_tags: - k8s.pod.name: - environment: - name: POD_NAME - k8s.namespace.name: - environment: - name: POD_NAMESPACE - k8s.pod.ip: - environment: - name: INSTANCE_IP - 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: "postgresql" - vault.hashicorp.com/agent-inject-secret-aws-credentials: "secrets/data/postgresql/s3" - vault.hashicorp.com/agent-inject-template-aws-credentials: | - {{- with secret "secrets/data/postgresql/s3" -}} - [default] - aws_access_key_id={{ .Data.data.access_key }} - aws_secret_access_key={{ .Data.data.secret_key }} - {{- end }} - spec: - serviceAccountName: postgresql - automountServiceAccountToken: true - imagePullSecrets: - - name: regcred - containers: - - name: s3proxy - image: cr.yandex/crp3ccidau046kdj8g9q/s3-proxy:stable - imagePullPolicy: Always - ports: - - containerPort: 80 - name: http - protocol: TCP - env: - - name: K8S_POD_UID - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.uid - - name: K8S_POD_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.name - - name: K8S_NAMESPACE - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.namespace - - name: OTEL_RESOURCE_ATTRIBUTES - value: k8s.pod.uid=$(K8S_POD_UID),k8s.pod.name=$(K8S_POD_NAME),k8s.namespace.name=$(K8S_NAMESPACE) - - name: AWS_API_ENDPOINT - value: https://storage.yandexcloud.net - - name: AWS_S3_BUCKET - value: prod-pg-dumps - - name: AWS_REGION - value: ru-central1 - - name: AWS_SHARED_CREDENTIALS_FILE - value: /vault/secrets/aws-credentials - - name: AWS_EC2_METADATA_DISABLED - value: "true" - - name: ACCESS_LOG - value: "true" - - name: CORS_ALLOW_HEADERS - value: Content-Type, Accept-Ranges, Content-Range, Content-Encoding - resources: - requests: - cpu: 100m - memory: 128Mi - limits: - cpu: 500m - memory: 512Mi diff --git a/infrastructure/s3-proxy/yc-k8s-test/kustomization.yaml b/infrastructure/s3-proxy/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 3b7e38b..0000000 --- a/infrastructure/s3-proxy/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base - - deployment.yaml - - service.yaml -patches: - - path: s3-proxy.yaml diff --git a/infrastructure/s3-proxy/yc-k8s-test/s3-proxy.yaml b/infrastructure/s3-proxy/yc-k8s-test/s3-proxy.yaml deleted file mode 100644 index 02081c1..0000000 --- a/infrastructure/s3-proxy/yc-k8s-test/s3-proxy.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: s3-proxy - namespace: postgresql -spec: - suspend: true diff --git a/infrastructure/s3-proxy/yc-k8s-test/service.yaml b/infrastructure/s3-proxy/yc-k8s-test/service.yaml deleted file mode 100644 index 9639842..0000000 --- a/infrastructure/s3-proxy/yc-k8s-test/service.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: s3-proxy-service - namespace: postgresql - labels: - app: s3-proxy - service: s3proxy -spec: - type: ClusterIP - selector: - app: s3-proxy - ports: - - name: http - port: 80 - protocol: TCP - targetPort: 80 diff --git a/infrastructure/vault/sarex-contour/kustomization.yaml b/infrastructure/vault/sarex-contour/kustomization.yaml deleted file mode 100644 index 6ea817e..0000000 --- a/infrastructure/vault/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: vault-namespace.yaml - - path: vault.yaml diff --git a/infrastructure/vault/sarex-contour/vault-namespace.yaml b/infrastructure/vault/sarex-contour/vault-namespace.yaml deleted file mode 100644 index b4e1203..0000000 --- a/infrastructure/vault/sarex-contour/vault-namespace.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: vault - labels: - istio-injection: disabled diff --git a/infrastructure/vault/sarex-contour/vault.yaml b/infrastructure/vault/sarex-contour/vault.yaml deleted file mode 100644 index ed1aeca..0000000 --- a/infrastructure/vault/sarex-contour/vault.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: vault - namespace: vault -spec: - interval: 5m - timeout: 10m - postRenderers: - - kustomize: - patches: - - target: - group: apps - version: v1 - kind: StatefulSet - namespace: vault - name: vault-vault-contour - patch: |- - - op: replace - path: /spec/template/spec/nodeSelector - value: {} - - op: replace - path: /spec/template/spec/tolerations - value: [] - values: - imagePullSecrets: - - name: regcred - backup: - enabled: false - server: - ha: - replicas: 1 - dataStorage: - size: 10Gi diff --git a/infrastructure/vault/yc-k8s-test/kustomization.yaml b/infrastructure/vault/yc-k8s-test/kustomization.yaml deleted file mode 100644 index dd86ecb..0000000 --- a/infrastructure/vault/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: vault.yaml diff --git a/infrastructure/vault/yc-k8s-test/vault.yaml b/infrastructure/vault/yc-k8s-test/vault.yaml deleted file mode 100644 index 3fd1bb4..0000000 --- a/infrastructure/vault/yc-k8s-test/vault.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: vault - namespace: vault -spec: - interval: 5m - timeout: 10m - values: - server: - dataStorage: - storageClass: local-path - diff --git a/infrastructure/zitadel/sarex-contour/kustomization.yaml b/infrastructure/zitadel/sarex-contour/kustomization.yaml deleted file mode 100644 index 17fee7c..0000000 --- a/infrastructure/zitadel/sarex-contour/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: zitadel.yaml diff --git a/infrastructure/zitadel/sarex-contour/zitadel.yaml b/infrastructure/zitadel/sarex-contour/zitadel.yaml deleted file mode 100644 index f5659e0..0000000 --- a/infrastructure/zitadel/sarex-contour/zitadel.yaml +++ /dev/null @@ -1,151 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: zitadel - namespace: zitadel -spec: - interval: 5m - timeout: 10m - postRenderers: - - kustomize: - patches: - - target: - group: apps - version: v1 - kind: Deployment - name: zitadel-idp-contour - patch: |- - - op: add - path: /spec/template/spec/nodeSelector - value: {} - - op: add - path: /spec/template/spec/tolerations - value: [] - - op: replace - path: /spec/template/metadata/annotations/vault.hashicorp.com~1agent-inject-template-zitadel-vault-config.yaml - value: |- - {{- with secret "secrets/data/zitadel/postgresql" -}} - Database: - postgres: - User: - Password: |- - {{ index .Data.data "password" }} - Admin: - Password: |- - {{ index .Data.data "password" }} - FirstInstance: - Org: - Human: - Password: |- - {{ index .Data.data "humanPassword" }} - {{- end -}} - - target: - group: batch - version: v1 - kind: Job - name: zitadel-idp-contour-init - patch: |- - - op: add - path: /spec/template/spec/nodeSelector - value: {} - - op: add - path: /spec/template/spec/tolerations - value: [] - - op: replace - path: /spec/template/metadata/annotations/vault.hashicorp.com~1agent-inject-template-zitadel-vault-config.yaml - value: |- - {{- with secret "secrets/data/zitadel/postgresql" -}} - Database: - postgres: - User: - Password: |- - {{ index .Data.data "password" }} - Admin: - Password: |- - {{ index .Data.data "password" }} - FirstInstance: - Org: - Human: - Password: |- - {{ index .Data.data "humanPassword" }} - {{- end -}} - - target: - group: batch - version: v1 - kind: Job - name: zitadel-idp-contour-setup - patch: |- - - op: add - path: /spec/template/spec/nodeSelector - value: {} - - op: add - path: /spec/template/spec/tolerations - value: [] - - op: replace - path: /spec/template/metadata/annotations/vault.hashicorp.com~1agent-inject-template-zitadel-vault-config.yaml - value: |- - {{- with secret "secrets/data/zitadel/postgresql" -}} - Database: - postgres: - User: - Password: |- - {{ index .Data.data "password" }} - Admin: - Password: |- - {{ index .Data.data "password" }} - FirstInstance: - Org: - Human: - Password: |- - {{ index .Data.data "humanPassword" }} - {{- end -}} - values: - zitadel: - configmapConfig: - ExternalDomain: zitadel.sarex-contour.internal - ExternalSecure: true - debug: - enabled: false - postgresqlSecret: - create: false - vault: - enabled: true - role: zitadel - authPath: auth/kubernetes - secretPath: secrets/data/zitadel/postgresql - secretKey: password - kvVersion: 2 - fileName: zitadel-vault-config.yaml - serviceAccount: - create: true - name: zitadel - replicaCount: 1 - pdb: - enabled: false - env: - - name: ZITADEL_DEFAULTINSTANCE_FEATURES_LOGINV2_REQUIRED - value: "false" - - name: ZITADEL_SYSTEMDEFAULTS_PASSWORDHASHER_VERIFIERS - value: "bcrypt,pbkdf2" - - name: ZITADEL_MACHINE_IDENTIFICATION_HOSTNAME_ENABLED - value: "true" - - name: ZITADEL_DATABASE_POSTGRES_HOST - value: "111.88.255.180" - - name: ZITADEL_DATABASE_POSTGRES_PORT - value: "5432" - - name: ZITADEL_DATABASE_POSTGRES_USER_USERNAME - value: "zitadel" - - name: ZITADEL_DATABASE_POSTGRES_ADMIN_EXISTINGDATABASE - value: "zitadel" - - name: ZITADEL_DATABASE_POSTGRES_ADMIN_USERNAME - value: "zitadel" - - name: ZITADEL_DATABASE_POSTGRES_DATABASE - value: "zitadel" - - name: ZITADEL_DATABASE_POSTGRES_USER_SSL_MODE - value: "disable" - - name: ZITADEL_DATABASE_POSTGRES_ADMIN_SSL_MODE - value: "disable" - - name: ZITADEL_DEFAULTINSTANCE_ORG_HUMAN_USERNAME - value: "zitadel-admin" - - name: ZITADEL_DEFAULTINSTANCE_ORG_NAME - value: "Sarex" diff --git a/infrastructure/zitadel/yc-k8s-test/kustomization.yaml b/infrastructure/zitadel/yc-k8s-test/kustomization.yaml deleted file mode 100644 index 17fee7c..0000000 --- a/infrastructure/zitadel/yc-k8s-test/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ../base -patches: - - path: zitadel.yaml diff --git a/infrastructure/zitadel/yc-k8s-test/zitadel.yaml b/infrastructure/zitadel/yc-k8s-test/zitadel.yaml deleted file mode 100644 index c107a8b..0000000 --- a/infrastructure/zitadel/yc-k8s-test/zitadel.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: zitadel - namespace: zitadel -spec: - interval: 5m - timeout: 10m - values: - postgresqlSecret: - create: false - vault: - enabled: true - role: zitadel - authPath: auth/kubernetes - secretPath: secrets/data/zitadel/postgresql - secretKey: password - zitadel: - configmapConfig: - ExternalDomain: zitadel.contour.infra.sarex.tech - login: - env: - - name: ZITADEL_DEFAULTINSTANCE_FEATURES_LOGINV2_REQUIRED - value: "false" - - name: ZITADEL_DATABASE_POSTGRES_HOST - value: "postgresql.postgresql.svc.cluster.local" - - name: ZITADEL_DATABASE_POSTGRES_PORT - value: "5432" - env: - - name: ZITADEL_DEFAULTINSTANCE_FEATURES_LOGINV2_REQUIRED - value: "false" - - name: ZITADEL_DATABASE_POSTGRES_HOST - value: "postgresql.postgresql.svc.cluster.local" - - name: ZITADEL_DATABASE_POSTGRES_PORT - value: "5432" From 29833a7e5a71cebc83cbe365d164caf796db0988 Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Wed, 25 Nov 2026 11:54:15 +0300 Subject: [PATCH 21/32] ++ grafana vault oauth --- infrastructure/vmstack/uralkal/vmstack.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/infrastructure/vmstack/uralkal/vmstack.yaml b/infrastructure/vmstack/uralkal/vmstack.yaml index 377b2f2..36093b1 100644 --- a/infrastructure/vmstack/uralkal/vmstack.yaml +++ b/infrastructure/vmstack/uralkal/vmstack.yaml @@ -168,7 +168,21 @@ spec: sidecar.istio.io/inject: "true" podAnnotations: proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}' - envFromSecret: grafana-oauth + vault.hashicorp.com/agent-inject: "true" + vault.hashicorp.com/agent-pre-populate-only: "true" + vault.hashicorp.com/agent-init-first: "true" + vault.hashicorp.com/auth-path: auth/kubernetes + vault.hashicorp.com/role: vmstack-grafana + vault.hashicorp.com/agent-inject-secret-oauth-client-id: secrets/data/vmstack/grafana + vault.hashicorp.com/agent-inject-template-oauth-client-id: |- + {{- with secret "secrets/data/vmstack/grafana" -}} + {{ index .Data.data "client_id" }} + {{- end -}} + vault.hashicorp.com/agent-inject-secret-oauth-client-secret: secrets/data/vmstack/grafana + vault.hashicorp.com/agent-inject-template-oauth-client-secret: |- + {{- with secret "secrets/data/vmstack/grafana" -}} + {{ index .Data.data "client_secret" }} + {{- end -}} resources: requests: cpu: 50m @@ -190,6 +204,8 @@ spec: name: Zitadel allow_sign_up: true use_pkce: true + client_id: $__file{/vault/secrets/oauth-client-id} + client_secret: $__file{/vault/secrets/oauth-client-secret} scopes: openid profile email urn:zitadel:iam:org:projects:roles auth_url: https://login.sarex.local.uralkali.com/oauth/v2/authorize token_url: http://login.sarex.local.uralkali.com:8080/oauth/v2/token From 6f1de64a49ef62c16d4657b4db2da8d60f36ad2e Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Wed, 25 Nov 2026 14:18:23 +0300 Subject: [PATCH 22/32] ++ grafana datasources sidecar --- infrastructure/vmstack/uralkal/vmstack.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infrastructure/vmstack/uralkal/vmstack.yaml b/infrastructure/vmstack/uralkal/vmstack.yaml index 36093b1..787b869 100644 --- a/infrastructure/vmstack/uralkal/vmstack.yaml +++ b/infrastructure/vmstack/uralkal/vmstack.yaml @@ -160,6 +160,8 @@ spec: registry: cr.yandex/crp3ccidau046kdj8g9q repository: vm-stack/k8s-sidecar tag: 1.30.10-amd64 + datasources: + enabled: true testFramework: enabled: false persistence: From a8f9eac64f89f651331605474320bc851635a00a Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Wed, 25 Nov 2026 14:26:53 +0300 Subject: [PATCH 23/32] ++ vmstack kubelet cadvisor --- infrastructure/vmstack/uralkal/vmstack.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/infrastructure/vmstack/uralkal/vmstack.yaml b/infrastructure/vmstack/uralkal/vmstack.yaml index 787b869..f2e22ce 100644 --- a/infrastructure/vmstack/uralkal/vmstack.yaml +++ b/infrastructure/vmstack/uralkal/vmstack.yaml @@ -74,7 +74,13 @@ spec: vmauth: enabled: false kubelet: - enabled: false + enabled: true + vmScrapes: + cadvisor: + enabled: true + vmScrape: + spec: + scheme: https kubeApiServer: enabled: false kubeControllerManager: From 7fd0b082c83c8a924324378be4ddf59a2d048308 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 25 Nov 2026 18:37:01 +0500 Subject: [PATCH 24/32] ++ --- apps/workspaces/wb/frontend.yaml | 2 +- ci/__pycache__/build-slice.cpython-314.pyc | Bin 0 -> 12962 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 ci/__pycache__/build-slice.cpython-314.pyc diff --git a/apps/workspaces/wb/frontend.yaml b/apps/workspaces/wb/frontend.yaml index bc3bdac..0ea6074 100644 --- a/apps/workspaces/wb/frontend.yaml +++ b/apps/workspaces/wb/frontend.yaml @@ -36,7 +36,7 @@ spec: image: name: - _default: cr.yandex/crp3ccidau046kdj8g9q/workspaces-v2-frontend:contour_2a4ce3fd + _default: cr.yandex/crp3ccidau046kdj8g9q/workspaces-v2-frontend:contour_beb51bc2 pullPolicy: _default: IfNotPresent diff --git a/ci/__pycache__/build-slice.cpython-314.pyc b/ci/__pycache__/build-slice.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cff67c8dbe037bb7c05ef0e5367823bb7b5954de GIT binary patch literal 12962 zcmb_je^49Ooqwy{)ej^-1cX>RJIX)k}=A0omQ*>IC~a{u%{JGReh?&j{k z-?!S8z<@iwdyL+`eedo2`Tc&rKi=c z+K8+^8JVH)2H8NLtjy9UCv)&LwDJ3mvT?sjHmy8M}L<*h3*P+!f#3VT~5E=^B%8^L;g^*m^7ml6r2WmqR zKYpo&RLkUUA><5`XNk-R1XeXyW(7v(1VbgMVU?_|aL6CrD~b{EEz(iLD`u~E&^HkD zdX+4%cOVjog)wdOdS8tB!l{y6ueUEGN^&?f7#xg1ae>z>$v!#c_xfa64E4t3pyc(6 zX6X4Yjz_7eJ1PZ5sV;QNH&_?)`Rn|ly53kQ9M~vf|FzMxq6zBJC>IhE(#Q|U=bTy0 z(enK`BW+e3q;Ze$J^|4%@sJaS#=nD=hrCj9ggMCwOb?W(K``_fv~(Sv_n+}yVZ~sd zVibdNOdPB+D6Axl3fBv(TEi&DzKA&BlO^nMt%zg7Meq#{Mqr|_B;qQ_a==e2hiI5Q zAPn?*hsKxdZ`0@12KAlJfes(4(tty!!`}&sVIsf;wn1tKQ%#Er>CeZBtbzPaZOW+< zdQ5xO9B zer|PsmXPEXg98ycC;|azPHxU>AKx?Dl(Zg+TaQfCzrOS3o$>XZiPcBq+>!L;w1MK@ zWlZjodjr+gAg~*d3Q~dY6es4vt6~X+#Gqe}h-XDy^NzO|k%K2p0;xM=ljye42=_ArM`wx{Z&w8>Xv%wS(rQhY$5>(Dx<)ufrrwMt0Kr7$H&S7_-5estb>(!DHye zZx#iO#q}M9I;Et&k`Rv}W>`ZiiG`HI&chBe9YB4K_M=_hhYz(q)7;&5xWn7pc5rW( zVuCH{3x$I)re)z>P%WoXRM`3Yx%6Te9lq&sjc*miR4w?F%z3Ty)+N)Y%6W-kvpq% zT@UUS4I7ZOQbFZKb%)tN#83AYK#2>4{IbG@L%@(AJXYN1HBhc^vyG|0Lm;}`avL94 zyRTKgcAVy<=c09PfdsDJT@m78QVSb<+`c5U5sle0*b}}%_N*lvvb6@0G?r;WXV<^E z1;hV&4D3oR*vU~K%32aLv~EO_?!lFz!DC48T|;U=7m@U803^<1KmhBf>(X9@L@scd zd);AZuOpP?V}__<;i?H1V67X_FS|6{c^)zL*1v~uIS;qw?(r+ldzo*HD}A$pu8SJM zxF3hUc@NW>fm~Vz58sJYwkQau6O6W!LRRJ)X}zu??XU|756g_ttkqn!6F-1;UwR~* zU|y!DNwuf;k5WA{KnuncEtJ9Bj2X0G?4ep6PDq=uz?L|E*lS}Y#A`5R z2x%!}h}2jWix`w5G0`8Clq`@|(FkZ0vZNG5eX{>#Q0kIJK)C*p|4>lu4=Scqw!%T; zq{1UCN(vVoJS8d2Qwj?SK+$}EWUw#Pf5;cz7aR;i0})Zlm4bc{@_NRf{|7>iQDOUo zvXT{&LW3X{2mL|O4f9frzGyT!7*KdA8V;rK$0P#q1Nwr#0G&k@_J!bC{CrU1VaVcH zg%Ks(e?VdkDjH{nBYs~PBx;`|?t(&!RL=sG4wE@+_HfG_XCB)(x^KKaVRI#I?zqi8 zx%(#PP8S?Z*ea5?>bR|XQn<-g>jiP=;|be_q-}HDwt3ocliN&7-ZcHfG-XM+HYZ(; zaaZGXFGLC3b2F~SiA^6Ixbfn@RwbJbUpyY~ekOjxJJapGczoo@$f>d8Bgdi2jP1Fb z+;hV%pXWA?uyc;WD_bvZov8n5Q_}HR-0|4t=1(1ujqI5#DSN&8%`vI+h1;> zrS-S$4R=^la*+9BZvNQm(bMCxv2z#CY1Q{k@~<7ZWv{+#Ax<~cvv0d&BSobN>*h=H zc*WJBsfxF|l4~}NHIFo3l4q=&7cjdh;>1;XaqmO78eRbfzJeEfXiz-T!MMx%G@usp%w)r2^cl? zBW5TA4KhS_uw^8~q=6RTEz1`TdBErbRZs!!dLaa$mffDR9;t??a8eYY5$UwXN~u%f z&iV$zO19+d3wpy5U%=}NhY_eDB?r&Qisg9op@Y<16rY68C}dKS7PsJQF+@s!>%pT> zdl#s)pub`-pxH(IfS`eedTSP1uwI09N$iAblm+G>F-&e7SU!I~*KxTe>2!bUbWh4} zp8LhQMD^B$voVpoZG^j%Me+;p@+O<{Pk99+&GXiRao<%?Ys>HP#8Pt4NV4tY%oY9; zKOUakov>FYZ0nM?`WajOY(s0(w(p(^YTY)I?3}T^qkG5Q7Y=PkEcNd4DW9Mq9;hTq$`r<}Z7v}XtRp?wp?9~m7OmsdgjJChUR@>P2p+23tt zAYK4ky6$?OF4AAGhYM_4o9h80QbUhUWSL}{mi1})$SkinWWLq0V92DbHIS3h2nbL# zHdUS8r~)7|tHR5%XgCPgc2E`(eJSCsWXU}Rl_Ufsw6Zrc)pszu43-=`u1fTAE%tWT zdu2B_?)upIvH$nQ@r?&=R=3l7Do&=51lk}3kq*_{yI(=%BR+$V^>IGlXY`qdN!OD0 zwuXcel2(TFJg$~R*d_9f0vKK%QV(tca1WWo_6RQ+Acynt9^x_8a{`;nHwb2QTzL#0 z7RroJ#tXb!7G@%*E>i`J%d^1h6pVstYid?&NEg?GD@j9oBwf1NtYKq4IzKE6ND1Wu z;_Bb%NKqx-c4&ZZG}= zVk4V%X>*d%(7J{hS_|4?Pz-|d>59Z;DHI60DjgfMRVnS^>d@86| z#b6lV`&7^?M-;P9@?zaHN|whLj;WqJ>PD+Eh;&;7n3{x?;vQD@Qt*0(73V{H0l9Pw zu>RK+crE*wd53E<@6F<06u+@LSc^YnpFV+;GIp_9pUMyT*T01r6Sjx_#>G9IRj zMMGD0G@|#Wi(Sg>^ypMXeR!Gp17Bkh)OOrRFKO;g_XVb<6E&+YBXB?OF=YCj1V%8V zxxXEJV45$9`jfbhZg7wxY=U!;uSJnQ#MPc12!n5h^#uZoQHu5Th0ai6TVqn`1U-?8 zp)V?;Y!XjkgruNYPJx9ad%*#xnK;7`R8lfSW7N&06hA~yS`poV!_X2C)n~Tcappqn z2s3B3jq?|`e`d>{GiQ%kMlItN7j2L^);QW2U$t)5x^BJ@DDUS3MN`LESX zH6-m%+-1qCDliLdHR;XM)ZG6UD8rGamQIyf1(30vbV357{8bJKB(MU$8*mF_)Y$QP ztxA1=SPmgaP+I#jP)8Gwl)n@uX;>A7@-E9F+OsT$ZfP1?vm|Aq$FdKm1$3ut{Q}cv z&ZP8(h~?4!(t!&6uFJHPVn^2nYb&F* z`>=DZ4qQq-xW+W3-AKS&qrh8S4{okn#%Zl++IygA(Fz$noDH~^&P^XXtdsubN#+=r z$)(^H;ycmzx+rMl)_Vfm3Dz_V=Be8d-~#FbR|?;W8ug;E%=fsancqt!bAQ1-w$$ha zezX3~Nk&7F8e_*$@nFQYz@JQU#1$HJ4dtn)1R$m~;Wfn3f~<_3Tvs3xlw5FL;tHMt zPi{@N_zX-$^kY-pl%tXftJ&jO|;0gy25?zo3){4%j3jYGS zf~bdv9%(2>&^y7kBlbg0#e@!;P*9?X2F(Y9gA~ieJ}8yYYIReu4T74AYP3Wtc?i&S z9Hbm?1k?dUo3mw)wT-r2Xjd`Ka&afcw7jwG(d=>Gths33zIJj`!v5F@4~Hn{pP~}7 z@qNejBflxUZjP5VC-Qg4ZM(m)+UIPJv5wJ>tMxBSlbc>W_3DmUTlHsV`*^{{-1(gR zvBC3$6Gvb7zU)nu)h2T4k~v%AIa{VTkFfKOvI+msca7|s&n=p8jGa4w4xlq$*)ZKT zz4yBFegBQee)IhGo_NK9L}7c}-ac2j>Sz5Ut#i2rW8WVA_SkpMe+L29eal`km$&Ll z`K9t?Ud5+*6`$FQCJJxaUH=X+ynV_)b#%Jw9qIa(cZa6KH|pXQLZYxMZtuG5AkIpP zY~5ln?hDfjmLA>aqqz7+DI&_jK#iG-5)mkx&|MKDm`V$pD8AASK~<{H{Vf_)8DmOq zgb4IZs40N^`rqh8%N=VPZMv{?xMki|`366{cdmH#@V@!g<*#lTZhOF?_NeNP4{RXw z@1o#;kdK)BA1Y4Q5s&&ONuOl{)Z!p%=)`4O z6ab!Bfn?Ot)#h|Xf!UfG$qvQ~?u;1g)z8WSu5~98Hn(CZ47D#-oo=bEbh{c_pPTasvEmHzhz#HFQ3fZd*%v z*iKDOX<6{p)>4~4++X0(6ndO!mHUBKN=XPj|7GC$#=nD`R3{Z&GGI=FCTc?1j`TjS zaB$5aNDp#D*8o+;z0g5NjZ-m%B8qAESvcivJFJ)h)bRs_i-3Dx$?9x=+S__qIMm!N zicntx(E~oJUaYN{x_x5XAROSMTv6CC)aN9)F(IDCcYZ()!67Oe3kAT34-p@ur>cBE zeV9OTr5#yMiy=7aSDQ40Kskj5mWE{%ykfNd-dLZ)!tfNP4;)-R*{5(J=v_kkcB|4Q zbtGU>n}oXJI22M&{R9%jWIoF_w*LJ33mb;_%vrK4fF&@-ZzLq_5Bc5e zS_=7(3#~2ghkXqcSe~GBUfI&i#7;aY7MtNCF#V8s6`tC3L@^ zg9PxBIe#qYe9nYra>sk@bj!Pz_^R!nG|ZYihnwe2<{!TF-IvB+oHZ5A=M=?PKR(qm z_2hK%^-aHRe82IxyWZcG*l{qqLzvkiBzAPiw;zocdlEUv;^t#1<8=6NnrZ;6Xwa$V zuT%+ApP>sN?O9FBq)heTA(a3TN7bHoLuw@k_&$_N>mj0!52g?7QWM0No#3E`=T*2O zfzP)a-eZ5YO)XnN6_|v{YFG8(n4VqA?$n5FNzu*0NN8A!6+ku6{Uu9$jdqmIAX+I3sla`gt~(_j_3=uJEq+$?hS#lqnXA7qVLG0VY$D3yx&-H?iiKJjdeekBWe zPy9ASN*0_Ei9Wv!r$&@3Rkalv1l&x>9%7n+e~BNk@<3F)h$$wh`j=FJsp|g5Q$aD* zcUF88Do}dMbPwojOUK9tyS;8yMdYCAnS z{o=GgzRe%62qX%FaeMF%Px6Z&m`GOjjK%#$b~*I%4a&o6=sj+6elDs?*7bYz=;mgML&J0><$(5fD(s}W){ZvX!)lxJi4Zqa-|EpuD+Kctfgya2lTC-n5hISQWUiaDO1cDlnaR`EgOGPQCX7kb#3wcOMC4oSf2 zQ;M+sSB;_@;B+(BgDzGYI$fzm#zV+X?|T^$a-zmv#uEUHYATdIa>-M`pD-xHwWA^9 z#*OrxlBoqgG6jNtzF1fu;x}#t-2-(Vvlx6a1{fC@vTocs7}=;|5#FJVfFdM|U<<%C zVE{WgU>~yh!*H?=a9THHRDpEJ0ICq9aEO{6LxnDUN*i4CzK|;#0lt;CyM_!KTs00j z#S#0XK2ZuPIn82!Yyc{C;;X3G(2WkIG*8K*mGE6sk(EN~Gq4aUuA+-X{6~z?yihD~ zIXeSERi%rMiqJP4zn+!ESFq}Lu`2gGjHt$>7<^HMqwS~BnwmP)WAhJCm7=tI&ncyk zaRa{4p!fllQM4(gs=_=1wChugD`8nXynBu_Qlp`5mMhoN`zQUwhiAF<+WWrA0KPx2 zy&sy|fbU!3veej9qfcGf1%4iD?l^bFa>;UGSJJw6#=16Pt%BUFoDq5K%;=d5wZnUE z8%%uOe6efNIaNH}@av{`nx<>x)y;|G-J>}p{Jc4DylO(4HCN8%g0F1s+{n3kTmE>% zME|VKea}qztdZ97hAT~%n#OA<4PZ{i-q=35Azs^Zqx)Zue|Y?p(}}&u;w?|dvyRVl z&wOUJeGL}{Y=!rT0s1s&j~mD3D=%GoX?$>U_vDL{{&>#%_Z+`2d8g#2x#{0>?f-e3 zhkD;g$dez{H1jQP^0C{xx0?NU)8l*BvcF%;LmDsO<9d3%aHD(SgWKTG!I~oRpWq=5VRQwf>lmSErdQ`qhC{t7%^(a@XRCM!Q+O>+vFttL4@QxaRj({E ztLmhs4%kk7rNo7FrAl^`$#m02L_oNRcLr|Dp~*|dO6q*5N&OFko#Ka30CYj5??41+ zf(-K|$^D#IJ|}sfldR84&KIQmOJe1z8UUr z-?zif-uvZn8|r>JTmZQL90R_r`{iKP-OoXV_P!G&-0k&*vyBYRvc+?p>4*Ejw|}(z Qg69_Jgp(t#gbwh30Sw$NUH||9 literal 0 HcmV?d00001 From f5fa1fadb666d3f2a1b8a4c51d0c478ca2a8bc3a Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 26 Nov 2026 13:44:29 +0500 Subject: [PATCH 25/32] uralkal: scale Superset and Trino workloads to zero --- infrastructure/superset/uralkal/superset.yaml | 11 +++++++++++ infrastructure/trino/uralkal/trino.yaml | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/infrastructure/superset/uralkal/superset.yaml b/infrastructure/superset/uralkal/superset.yaml index 51f191e..56a03b6 100644 --- a/infrastructure/superset/uralkal/superset.yaml +++ b/infrastructure/superset/uralkal/superset.yaml @@ -10,6 +10,17 @@ spec: spec: chart: superset-contour version: "0.13.4" + postRenderers: + - kustomize: + patches: + - target: + group: apps + version: v1 + kind: Deployment|StatefulSet + patch: |- + - op: add + path: /spec/replicas + value: 0 values: global: imagePullSecrets: diff --git a/infrastructure/trino/uralkal/trino.yaml b/infrastructure/trino/uralkal/trino.yaml index 6938597..a07a048 100644 --- a/infrastructure/trino/uralkal/trino.yaml +++ b/infrastructure/trino/uralkal/trino.yaml @@ -13,6 +13,14 @@ spec: postRenderers: - kustomize: patches: + - target: + group: apps + version: v1 + kind: Deployment|StatefulSet + patch: |- + - op: add + path: /spec/replicas + value: 0 - target: group: apps version: v1 From bb7e7eaba0be24246924a29dde6a452adda5879d Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 26 Nov 2026 17:11:03 +0500 Subject: [PATCH 26/32] uralkal: scale CDE workers to zero while keeping API --- apps/cde/uralkal/kustomization.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/apps/cde/uralkal/kustomization.yaml b/apps/cde/uralkal/kustomization.yaml index ae51a89..4d6b36d 100644 --- a/apps/cde/uralkal/kustomization.yaml +++ b/apps/cde/uralkal/kustomization.yaml @@ -55,3 +55,20 @@ patches: target: kind: HelmRelease name: cde + - target: + kind: HelmRelease + name: cde-(worker-.*|flowscallback|splitpdf) + patch: |- + - op: add + path: /spec/postRenderers + value: + - kustomize: + patches: + - target: + group: apps + version: v1 + kind: Deployment|StatefulSet + patch: |- + - op: add + path: /spec/replicas + value: 0 From ee836c60f443a6b278f4baeb394bef6f6a1bee9d Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Thu, 26 Nov 2026 17:43:23 +0300 Subject: [PATCH 27/32] ++ proctmp ephemeral storage --- apps/processing/uralkal/engine-low.yaml | 2 +- apps/processing/uralkal/kustomization.yaml | 12 ++++++-- clusters/uralkal/kustomization.yaml | 1 + .../uralkal/kustomization.yaml | 16 ++++++++++ .../uralkal/local-path-provisioner.yaml | 29 +++++++++++++++++++ 5 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 infrastructure/local-path-provisioner/uralkal/kustomization.yaml create mode 100644 infrastructure/local-path-provisioner/uralkal/local-path-provisioner.yaml diff --git a/apps/processing/uralkal/engine-low.yaml b/apps/processing/uralkal/engine-low.yaml index e952038..dddeefe 100644 --- a/apps/processing/uralkal/engine-low.yaml +++ b/apps/processing/uralkal/engine-low.yaml @@ -10,7 +10,7 @@ spec: backend: image: name: - _default: cr.yandex/crp3ccidau046kdj8g9q/workflows-engine:contour_8a50dd85 + _default: cr.yandex/crp3ccidau046kdj8g9q/workflows-engine:contour_0b38b80b deployment: resources: requests: diff --git a/apps/processing/uralkal/kustomization.yaml b/apps/processing/uralkal/kustomization.yaml index 938f7ab..32d1b56 100644 --- a/apps/processing/uralkal/kustomization.yaml +++ b/apps/processing/uralkal/kustomization.yaml @@ -32,12 +32,18 @@ patches: - op: add path: /spec/values/services/backend/envs/- value: - name: JOB_TMP_HOST_PATH + name: JOB_TMP_STORAGE_CLASS value: - _default: "/mnt/proctmp" + _default: "proctmp" - op: add path: /spec/values/services/backend/envs/- value: - name: JOB_TMP_HOST_PATH_IMAGE + name: JOB_TMP_IMAGE value: _default: "e57-to-las" + - op: add + path: /spec/values/services/backend/envs/- + value: + name: JOB_TMP_STORAGE_SIZE + value: + _default: "350Gi" diff --git a/clusters/uralkal/kustomization.yaml b/clusters/uralkal/kustomization.yaml index fc3973d..3e91be1 100644 --- a/clusters/uralkal/kustomization.yaml +++ b/clusters/uralkal/kustomization.yaml @@ -20,6 +20,7 @@ resources: - ../../infrastructure/opentelemetry-collector/uralkal - ../../infrastructure/security-audit/uralkal - ../../infrastructure/vmstack/uralkal + - ../../infrastructure/local-path-provisioner/uralkal - ../../apps/reviews/uralkal - ../../apps/remarks/uralkal diff --git a/infrastructure/local-path-provisioner/uralkal/kustomization.yaml b/infrastructure/local-path-provisioner/uralkal/kustomization.yaml new file mode 100644 index 0000000..a5ade5a --- /dev/null +++ b/infrastructure/local-path-provisioner/uralkal/kustomization.yaml @@ -0,0 +1,16 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base +patches: + - path: local-path-provisioner.yaml + target: + kind: HelmRelease + name: local-path-provisioner + - target: + kind: HelmRelease + name: local-path-provisioner + patch: |- + - op: replace + path: /metadata/name + value: proctmp-provisioner diff --git a/infrastructure/local-path-provisioner/uralkal/local-path-provisioner.yaml b/infrastructure/local-path-provisioner/uralkal/local-path-provisioner.yaml new file mode 100644 index 0000000..5669ee7 --- /dev/null +++ b/infrastructure/local-path-provisioner/uralkal/local-path-provisioner.yaml @@ -0,0 +1,29 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: proctmp-provisioner + namespace: local-path-provisioner +spec: + values: + fullnameOverride: proctmp-provisioner + storageClass: + create: true + defaultClass: false + name: proctmp + provisionerName: cluster.local/proctmp-provisioner + reclaimPolicy: Delete + nodePathMap: + - node: glp-sarex-proc1 + paths: + - /mnt/proctmp + - node: glp-sarex-proc2 + paths: + - /mnt/proctmp + configmap: + name: proctmp-config + setup: |- + set -eu + mkdir -m 0777 -p "$VOL_DIR" + teardown: |- + set -eu + rm -rf "$VOL_DIR" From 372f29560a81a41eea7452274375454f8dc972c4 Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Thu, 26 Nov 2026 18:00:34 +0300 Subject: [PATCH 28/32] ++ keycloak generic node --- infrastructure/camunda/uralkal/camunda.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/infrastructure/camunda/uralkal/camunda.yaml b/infrastructure/camunda/uralkal/camunda.yaml index 3c9883c..36b9a00 100644 --- a/infrastructure/camunda/uralkal/camunda.yaml +++ b/infrastructure/camunda/uralkal/camunda.yaml @@ -177,6 +177,19 @@ spec: operator: Equal value: processing effect: NoSchedule + - target: + group: apps + version: v1 + kind: StatefulSet + name: camunda-keycloak + patch: |- + - op: add + path: /spec/template/spec/nodeSelector + value: + dedicated: generic + - op: add + path: /spec/template/spec/tolerations + value: [] values: global: vault: From ff22c6b6d2adda92c428b78d616140900451be58 Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Thu, 26 Nov 2026 18:24:10 +0300 Subject: [PATCH 29/32] ++ fix proctmp provisioner values --- .../uralkal/local-path-provisioner.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/infrastructure/local-path-provisioner/uralkal/local-path-provisioner.yaml b/infrastructure/local-path-provisioner/uralkal/local-path-provisioner.yaml index 5669ee7..752eb0f 100644 --- a/infrastructure/local-path-provisioner/uralkal/local-path-provisioner.yaml +++ b/infrastructure/local-path-provisioner/uralkal/local-path-provisioner.yaml @@ -5,7 +5,31 @@ metadata: namespace: local-path-provisioner spec: values: + replicaCount: 1 + image: + repository: cr.yandex/crp3ccidau046kdj8g9q/contour/local-path-provisioner-nn/local-path-provisioner + tag: v0.0.24 + pullPolicy: IfNotPresent + helperImage: + repository: cr.yandex/crp3ccidau046kdj8g9q/contour/local-path-provisioner-nn/busybox + tag: latest + defaultSettings: + registrySecret: null + privateRegistry: + registryUrl: null + registryUser: null + registryPasswd: null + nameOverride: "" fullnameOverride: proctmp-provisioner + resources: {} + rbac: + create: true + serviceAccount: + create: true + name: "" + nodeSelector: {} + tolerations: [] + affinity: {} storageClass: create: true defaultClass: false From cfb61e1c9d91352f8479a09e11302ff1494eb61c Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 27 Nov 2026 15:38:22 +0500 Subject: [PATCH 30/32] wb: add premises and CDE API workers with routes --- .../wb/cde-api/cde-api-worker-copy.yaml | 382 +++++++++++++++ .../wb/cde-api/cde-api-worker-move.yaml | 364 ++++++++++++++ .../cde-api-worker-s32d-create-upload.yaml | 252 ++++++++++ .../cde-api-worker-s32d-handle-error.yaml | 246 ++++++++++ ...cde-api-worker-s32d-process-workflows.yaml | 315 ++++++++++++ ...cde-api-worker-s32d-publish-documents.yaml | 261 ++++++++++ apps/documentations/wb/cde-api/cde-api.yaml | 462 ++++++++++++++++++ .../wb/cde-api/kustomization.yaml | 14 + .../wb/cde-api/outbox-relay.yaml | 137 ++++++ .../wb/cde-api/tasks-execution-config.yaml | 66 +++ .../wb/cde-api/virtualservice.yaml | 54 ++ apps/documentations/wb/kustomization.yaml | 1 + apps/premises/wb/backend.yaml | 141 ++++++ apps/premises/wb/kafka-compat-configmap.yaml | 40 ++ apps/premises/wb/kustomization.yaml | 9 + apps/premises/wb/namespace.yaml | 6 + apps/premises/wb/service.yaml | 12 + apps/premises/wb/virtualservice.yaml | 22 + clusters/wb/kustomization.yaml | 3 +- 19 files changed, 2786 insertions(+), 1 deletion(-) create mode 100644 apps/documentations/wb/cde-api/cde-api-worker-copy.yaml create mode 100644 apps/documentations/wb/cde-api/cde-api-worker-move.yaml create mode 100644 apps/documentations/wb/cde-api/cde-api-worker-s32d-create-upload.yaml create mode 100644 apps/documentations/wb/cde-api/cde-api-worker-s32d-handle-error.yaml create mode 100644 apps/documentations/wb/cde-api/cde-api-worker-s32d-process-workflows.yaml create mode 100644 apps/documentations/wb/cde-api/cde-api-worker-s32d-publish-documents.yaml create mode 100644 apps/documentations/wb/cde-api/cde-api.yaml create mode 100644 apps/documentations/wb/cde-api/kustomization.yaml create mode 100644 apps/documentations/wb/cde-api/outbox-relay.yaml create mode 100644 apps/documentations/wb/cde-api/tasks-execution-config.yaml create mode 100644 apps/documentations/wb/cde-api/virtualservice.yaml create mode 100644 apps/premises/wb/backend.yaml create mode 100644 apps/premises/wb/kafka-compat-configmap.yaml create mode 100644 apps/premises/wb/kustomization.yaml create mode 100644 apps/premises/wb/namespace.yaml create mode 100644 apps/premises/wb/service.yaml create mode 100644 apps/premises/wb/virtualservice.yaml diff --git a/apps/documentations/wb/cde-api/cde-api-worker-copy.yaml b/apps/documentations/wb/cde-api/cde-api-worker-copy.yaml new file mode 100644 index 0000000..b9b6c5e --- /dev/null +++ b/apps/documentations/wb/cde-api/cde-api-worker-copy.yaml @@ -0,0 +1,382 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-api-worker-copy + namespace: documentations +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: 0.1.7 + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + worker-copy: + enabled: true + deployment: + enabled: true + name: + _default: worker-copy + replicaCount: + _default: 1 + revisionHistoryLimit: + _default: 5 + resources: + requests: + cpu: + _default: 100m + memory: + _default: 64Mi + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-copy:production_19194531 + pullPolicy: + _default: IfNotPresent + service: + enabled: false + imagePullSecrets: + enabled: + _default: true + name: + _default: dockerhub + envs: + - name: CDE_API_EAV_HOST + value: + _default: http://eav-service.eav.svc.cluster.local:8000 + - name: CDE_API_APP_NAME + value: + _default: worker-copy + - name: CDE_API_LOG_LEVEL + value: + _default: info + - name: CDE_API_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE + value: + _default: '5368709120' + - name: CDE_API_S3_MAX_PART_SIZE + value: + _default: '524288000' + - name: CDE_API_S3_UPLOAD_STALL_TIMEOUT + value: + _default: 10m + - name: CDE_API_SYSTEMLOG_BASE_URL + value: + _default: http://api-service.system-log.svc.cluster.local:8000 + - name: CDE_API_SYSTEMLOG_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_DATABASE__SSLMODE + value: + _default: disable + - name: CDE_API_DATABASE__INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_DATABASE_MAX_CONN_LIFETIME + value: + _default: 30m + - name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME + value: + _default: 10m + - name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD + value: + _default: 30s + - name: CDE_API_DATABASE_POOL_SIZE + value: + _default: '3' + - name: CDE_API_REDIS__SSL + value: + _default: 'false' + - name: CDE_API_REDIS__POOL_SIZE + value: + _default: '5' + - name: CDE_API_REDIS__MIN_IDLE_CONNS + value: + _default: '1' + - name: CDE_API_REDIS__DIAL_TIMEOUT_MS + value: + _default: '5000' + - name: CDE_API_REDIS__READ_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__WRITE_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__DEFAULT_TTL_MINUTES + value: + _default: '10' + - name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED + value: + _default: 'false' + - name: CDE_API_S3_USE_SSL + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_LOOKUP + value: + _default: auto + - name: CDE_API_S3_INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_S3_CHECK_BUCKET + value: + _default: 'false' + - name: CDE_API_ZEEBE_USE_PLAINTEXT + value: + _default: 'true' + - name: CDE_API_MAILER_BASE_URL + value: + _default: http://mailer-service.mailer:8000 + - name: CDE_API_MAILER_FROM_EMAIL + value: + _default: noreply@sarex.io + - name: CDE_API_WORKFLOW_BASE_URL + value: + _default: http://workflows-api-service.workflow.svc.cluster.local:8000 + - name: CDE_API_WORKFLOW_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKFLOW_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_URL + value: + _default: http://backend-service.bim.svc.cluster.local:8000 + - name: CDE_API_BIMAPI_V2_URL + value: + _default: http://bim-backend-v2-service.bim-api.svc.cluster.local:8080 + - name: CDE_API_BIMAPI_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_BIMAPI_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_TIMEOUT_V2_MS + value: + _default: '300000' + - name: CDE_API_CONTAINER_REGISTRY + value: + _default: cr.yandex/crp3ccidau046kdj8g9q + - name: CDE_API_WORKFLOWS_IMAGES_VERSION + value: + _default: master + - name: CDE_API_DJANGO_HOST + value: + _default: http://backend.django.svc.cluster.local:8000 + - name: CDE_API_ENVIRONMENT + value: + _default: wb + - name: CDE_API_CONVERTED_PDF_TO_S3 + value: + _default: 'true' + - name: CDE_API_CONVERT_DXF_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_CONVERT_DWG_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_USE_BIMV1_FOR_BIMV2 + value: + _default: 'false' + - name: CDE_API_LAST_MASTER_BIM + value: + _default: '2000' + - name: CDE_API_LAST_SLAVE_1_BIM + value: + _default: '2250' + - name: CDE_API_LAST_SLAVE_2_BIM + value: + _default: '15000' + - name: CDE_API_USE_BIM_INSERTER + value: + _default: 'true' + - name: CDE_API_USE_LEGACY_BIM_FLOW + value: + _default: 'true' + - name: CDE_API_DOCUMENTATION_V2_URL + value: + _default: http://documentations-api.documentations.svc.cluster.local:8080 + - name: CDE_API_INTERNAL_URL + value: + _default: http://cde-api.documentations:8000 + - name: CDE_API_FLOWS_URL + value: + _default: http://backend-service.flows.svc.cluster.local:8000 + - name: CDE_API_TRANSMITTALS_URL + value: + _default: http://transmittal-service.transmittal.svc.cluster.local:80 + - name: CDE_API_WORKFLOWS_CONFIG_FILEPATH + value: + _default: /etc/app/tasks_execution_config.json + - name: CDE_API_WORKSPACE_BASE_URL + value: + _default: http://workspaces-service.workspaces.svc.cluster.local:8000 + - name: CDE_API_WORKSPACE_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKSPACE_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_RABBITMQ__MARKS_ROUTING_KEY + value: + _default: pdf_markings_input + - name: CDE_API_RABBITMQ__HASHER_ROUTING_KEY + value: + _default: hash.compute.normal + - name: CDE_API_RABBITMQ__HASHER_EXCHANGE + value: + _default: hash.compute + - name: CDE_API_ISSUES_SYNC_ENABLED + value: + _default: 'false' + - name: CDE_API_ISSUES_BASE_URL + value: + _default: http://issues-service.issues.svc.cluster.local:80 + - name: CDE_API_ISSUES_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_ISSUES_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_COPY_WORKER_JOBS + value: + _default: '' + - name: CDE_API_COPY_JOB_TIMEOUT_MINUTES + value: + _default: '30' + - name: CDE_API_COPY_STEP_PARALLELISM + value: + _default: '1' + - name: CDE_API_COPY_S3_PARALLELISM + value: + _default: '1' + - name: CDE_API_REDIS__HOST + value: + _default: redis + - name: CDE_API_REDIS__PORT + value: + _default: '6379' + - name: CDE_API_DATABASE__HOST + value: + _default: sarex-vpsql-01.xc.wb.ru + - name: CDE_API_DATABASE__PORT + value: + _default: '5432' + - name: CDE_API_DATABASE__NAME + value: + _default: documentations_db + secretEnvs: + - name: CDE_API_DATABASE__USER + secretName: + _default: postgres-secret + secretKey: + _default: username + - name: CDE_API_DATABASE__PASSWORD + secretName: + _default: postgres-secret + secretKey: + _default: password + - name: CDE_API_S3_ENDPOINT + secretName: + _default: cde-api-s3-secret + secretKey: + _default: endpoint + - name: CDE_API_S3_ACCESS_KEY + secretName: + _default: cde-api-s3-secret + secretKey: + _default: access_key + - name: CDE_API_S3_SECRET_KEY + secretName: + _default: cde-api-s3-secret + secretKey: + _default: secret_key + - name: CDE_API_ZEEBE_GATEWAY_ADDRESS + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: gateway_address + - name: CDE_API_ZEEBE_CLIENT_ID + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: client_id + - name: CDE_API_ZEEBE_CLIENT_SECRET + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: client_secret + - name: CDE_API_ZEEBE_AUTH_SERVER_URL + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: auth_server_url + - name: CDE_API_RABBITMQ__HOST + secretName: + _default: rabbitmq + secretKey: + _default: host + - name: CDE_API_RABBITMQ__PORT + secretName: + _default: rabbitmq + secretKey: + _default: port + - name: CDE_API_RABBITMQ__USER + secretName: + _default: rabbitmq + secretKey: + _default: username + - name: CDE_API_RABBITMQ__PASSWORD + secretName: + _default: rabbitmq + secretKey: + _default: password + - name: CDE_API_RABBITMQ__VHOST + secretName: + _default: rabbitmq + secretKey: + _default: vhost + - name: CDE_API_S3_BUCKET_NAME + secretName: + _default: cde-api-s3-secret + secretKey: + _default: bucket + volumes: + _default: + - name: tasks-execution-config + mountPath: + _default: /etc/app/tasks_execution_config.json + subPath: + _default: tasks_execution_config.json + readOnly: + _default: true + configMap: + name: + _default: tasks-execution-config-documentation-v2 + items: + - key: tasks-execution-config-documentation-v2.json + path: + _default: tasks_execution_config.json + defaultMode: + _default: '0644' + dependsOn: + - name: cde-api + namespace: documentations diff --git a/apps/documentations/wb/cde-api/cde-api-worker-move.yaml b/apps/documentations/wb/cde-api/cde-api-worker-move.yaml new file mode 100644 index 0000000..4c06e97 --- /dev/null +++ b/apps/documentations/wb/cde-api/cde-api-worker-move.yaml @@ -0,0 +1,364 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-api-worker-move + namespace: documentations +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: 0.1.7 + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + worker-move: + enabled: true + deployment: + enabled: true + name: + _default: worker-move + replicaCount: + _default: 1 + revisionHistoryLimit: + _default: 5 + resources: + requests: + cpu: + _default: 100m + memory: + _default: 64Mi + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-move:production_19194531 + pullPolicy: + _default: IfNotPresent + service: + enabled: false + imagePullSecrets: + enabled: + _default: true + name: + _default: dockerhub + envs: + - name: CDE_API_EAV_HOST + value: + _default: http://eav-service.eav.svc.cluster.local:8000 + - name: CDE_API_APP_NAME + value: + _default: worker-move + - name: CDE_API_LOG_LEVEL + value: + _default: info + - name: CDE_API_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE + value: + _default: '5368709120' + - name: CDE_API_S3_MAX_PART_SIZE + value: + _default: '524288000' + - name: CDE_API_S3_UPLOAD_STALL_TIMEOUT + value: + _default: 10m + - name: CDE_API_SYSTEMLOG_BASE_URL + value: + _default: http://api-service.system-log.svc.cluster.local:8000 + - name: CDE_API_SYSTEMLOG_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_DATABASE__SSLMODE + value: + _default: disable + - name: CDE_API_DATABASE__INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_DATABASE_MAX_CONN_LIFETIME + value: + _default: 30m + - name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME + value: + _default: 10m + - name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD + value: + _default: 30s + - name: CDE_API_DATABASE_POOL_SIZE + value: + _default: '10' + - name: CDE_API_REDIS__SSL + value: + _default: 'false' + - name: CDE_API_REDIS__POOL_SIZE + value: + _default: '5' + - name: CDE_API_REDIS__MIN_IDLE_CONNS + value: + _default: '1' + - name: CDE_API_REDIS__DIAL_TIMEOUT_MS + value: + _default: '5000' + - name: CDE_API_REDIS__READ_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__WRITE_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__DEFAULT_TTL_MINUTES + value: + _default: '10' + - name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED + value: + _default: 'false' + - name: CDE_API_S3_USE_SSL + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_LOOKUP + value: + _default: auto + - name: CDE_API_S3_INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_S3_CHECK_BUCKET + value: + _default: 'false' + - name: CDE_API_ZEEBE_USE_PLAINTEXT + value: + _default: 'true' + - name: CDE_API_MAILER_BASE_URL + value: + _default: http://mailer-service.mailer:8000 + - name: CDE_API_MAILER_FROM_EMAIL + value: + _default: noreply@sarex.io + - name: CDE_API_WORKFLOW_BASE_URL + value: + _default: http://workflows-api-service.workflow.svc.cluster.local:8000 + - name: CDE_API_WORKFLOW_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKFLOW_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_URL + value: + _default: http://backend-service.bim.svc.cluster.local:8000 + - name: CDE_API_BIMAPI_V2_URL + value: + _default: http://bim-backend-v2-service.bim-api.svc.cluster.local:8080 + - name: CDE_API_BIMAPI_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_BIMAPI_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_TIMEOUT_V2_MS + value: + _default: '300000' + - name: CDE_API_CONTAINER_REGISTRY + value: + _default: cr.yandex/crp3ccidau046kdj8g9q + - name: CDE_API_WORKFLOWS_IMAGES_VERSION + value: + _default: master + - name: CDE_API_DJANGO_HOST + value: + _default: http://backend.django.svc.cluster.local:8000 + - name: CDE_API_ENVIRONMENT + value: + _default: wb + - name: CDE_API_CONVERTED_PDF_TO_S3 + value: + _default: 'true' + - name: CDE_API_CONVERT_DXF_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_CONVERT_DWG_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_USE_BIMV1_FOR_BIMV2 + value: + _default: 'false' + - name: CDE_API_LAST_MASTER_BIM + value: + _default: '2000' + - name: CDE_API_LAST_SLAVE_1_BIM + value: + _default: '2250' + - name: CDE_API_LAST_SLAVE_2_BIM + value: + _default: '15000' + - name: CDE_API_USE_BIM_INSERTER + value: + _default: 'true' + - name: CDE_API_USE_LEGACY_BIM_FLOW + value: + _default: 'true' + - name: CDE_API_DOCUMENTATION_V2_URL + value: + _default: http://documentations-api.documentations.svc.cluster.local:8080 + - name: CDE_API_INTERNAL_URL + value: + _default: http://cde-api.documentations:8000 + - name: CDE_API_FLOWS_URL + value: + _default: http://backend-service.flows.svc.cluster.local:8000 + - name: CDE_API_TRANSMITTALS_URL + value: + _default: http://transmittal-service.transmittal.svc.cluster.local:80 + - name: CDE_API_WORKFLOWS_CONFIG_FILEPATH + value: + _default: /etc/app/tasks_execution_config.json + - name: CDE_API_WORKSPACE_BASE_URL + value: + _default: http://workspaces-service.workspaces.svc.cluster.local:8000 + - name: CDE_API_WORKSPACE_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKSPACE_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_RABBITMQ__MARKS_ROUTING_KEY + value: + _default: pdf_markings_input + - name: CDE_API_RABBITMQ__HASHER_ROUTING_KEY + value: + _default: hash.compute.normal + - name: CDE_API_RABBITMQ__HASHER_EXCHANGE + value: + _default: hash.compute + - name: CDE_API_MOVE_WORKER_JOBS + value: + _default: '' + - name: CDE_API_MOVE_JOB_TIMEOUT_MINUTES + value: + _default: '30' + - name: CDE_API_REDIS__HOST + value: + _default: redis + - name: CDE_API_REDIS__PORT + value: + _default: '6379' + - name: CDE_API_DATABASE__HOST + value: + _default: sarex-vpsql-01.xc.wb.ru + - name: CDE_API_DATABASE__PORT + value: + _default: '5432' + - name: CDE_API_DATABASE__NAME + value: + _default: documentations_db + secretEnvs: + - name: CDE_API_DATABASE__USER + secretName: + _default: postgres-secret + secretKey: + _default: username + - name: CDE_API_DATABASE__PASSWORD + secretName: + _default: postgres-secret + secretKey: + _default: password + - name: CDE_API_S3_ENDPOINT + secretName: + _default: cde-api-s3-secret + secretKey: + _default: endpoint + - name: CDE_API_S3_ACCESS_KEY + secretName: + _default: cde-api-s3-secret + secretKey: + _default: access_key + - name: CDE_API_S3_SECRET_KEY + secretName: + _default: cde-api-s3-secret + secretKey: + _default: secret_key + - name: CDE_API_ZEEBE_GATEWAY_ADDRESS + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: gateway_address + - name: CDE_API_ZEEBE_CLIENT_ID + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: client_id + - name: CDE_API_ZEEBE_CLIENT_SECRET + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: client_secret + - name: CDE_API_ZEEBE_AUTH_SERVER_URL + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: auth_server_url + - name: CDE_API_RABBITMQ__HOST + secretName: + _default: rabbitmq + secretKey: + _default: host + - name: CDE_API_RABBITMQ__PORT + secretName: + _default: rabbitmq + secretKey: + _default: port + - name: CDE_API_RABBITMQ__USER + secretName: + _default: rabbitmq + secretKey: + _default: username + - name: CDE_API_RABBITMQ__PASSWORD + secretName: + _default: rabbitmq + secretKey: + _default: password + - name: CDE_API_RABBITMQ__VHOST + secretName: + _default: rabbitmq + secretKey: + _default: vhost + - name: CDE_API_S3_BUCKET_NAME + secretName: + _default: cde-api-s3-secret + secretKey: + _default: bucket + volumes: + _default: + - name: tasks-execution-config + mountPath: + _default: /etc/app/tasks_execution_config.json + subPath: + _default: tasks_execution_config.json + readOnly: + _default: true + configMap: + name: + _default: tasks-execution-config-documentation-v2 + items: + - key: tasks-execution-config-documentation-v2.json + path: + _default: tasks_execution_config.json + defaultMode: + _default: '0644' + dependsOn: + - name: cde-api + namespace: documentations diff --git a/apps/documentations/wb/cde-api/cde-api-worker-s32d-create-upload.yaml b/apps/documentations/wb/cde-api/cde-api-worker-s32d-create-upload.yaml new file mode 100644 index 0000000..9f5329c --- /dev/null +++ b/apps/documentations/wb/cde-api/cde-api-worker-s32d-create-upload.yaml @@ -0,0 +1,252 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-api-worker-s32d-create-upload + namespace: documentations +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: 0.1.7 + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + worker-s32d-create-upload: + enabled: true + deployment: + enabled: true + name: + _default: worker-s32d-create-upload + replicaCount: + _default: 1 + revisionHistoryLimit: + _default: 5 + resources: + requests: + cpu: + _default: 200m + memory: + _default: 256Mi + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-create-upload:production_19194531 + pullPolicy: + _default: IfNotPresent + service: + enabled: false + imagePullSecrets: + enabled: + _default: true + name: + _default: dockerhub + envs: + - name: CDE_API_EAV_HOST + value: + _default: http://eav-service.eav.svc.cluster.local:8000 + - name: CDE_API_APP_NAME + value: + _default: worker-s32d-create-upload + - name: CDE_API_LOG_LEVEL + value: + _default: info + - name: CDE_API_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE + value: + _default: '5368709120' + - name: CDE_API_S3_MAX_PART_SIZE + value: + _default: '524288000' + - name: CDE_API_S3_UPLOAD_STALL_TIMEOUT + value: + _default: 10m + - name: CDE_API_DATABASE__SSLMODE + value: + _default: disable + - name: CDE_API_DATABASE__INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_DATABASE_MAX_CONN_LIFETIME + value: + _default: 30m + - name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME + value: + _default: 10m + - name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD + value: + _default: 30s + - name: CDE_API_DATABASE_POOL_SIZE + value: + _default: '3' + - name: CDE_API_REDIS__SSL + value: + _default: 'false' + - name: CDE_API_REDIS__POOL_SIZE + value: + _default: '5' + - name: CDE_API_REDIS__MIN_IDLE_CONNS + value: + _default: '1' + - name: CDE_API_REDIS__DIAL_TIMEOUT_MS + value: + _default: '5000' + - name: CDE_API_REDIS__READ_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__WRITE_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__DEFAULT_TTL_MINUTES + value: + _default: '10' + - name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED + value: + _default: 'false' + - name: CDE_API_S3_USE_SSL + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_LOOKUP + value: + _default: auto + - name: CDE_API_S3_INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_S3_CHECK_BUCKET + value: + _default: 'false' + - name: CDE_API_ZEEBE_USE_PLAINTEXT + value: + _default: 'true' + - name: CDE_API_S32D_READERAT_BLOCK_SIZE_MB + value: + _default: '8' + - name: CDE_API_S32D_READERAT_CACHE_BLOCKS + value: + _default: '8' + - name: CDE_API_S32D_WORKER_CREATE_UPLOAD_TIMEOUT_MIN + value: + _default: '240' + - name: CDE_API_S32D_WORKER_CREATE_UPLOAD_MAX_JOBS + value: + _default: '2' + - name: CDE_API_MAILER_BASE_URL + value: + _default: http://mailer-service.mailer:8000 + - name: CDE_API_MAILER_FROM_EMAIL + value: + _default: noreply@sarex.io + - name: CDE_API_FLOWS_URL + value: + _default: http://backend-service.flows.svc.cluster.local:8000 + - name: CDE_API_TRANSMITTALS_URL + value: + _default: http://transmittal-service.transmittal.svc.cluster.local:80 + - name: CDE_API_WORKFLOWS_CONFIG_FILEPATH + value: + _default: /etc/app/tasks_execution_config.json + - name: CDE_API_REDIS__HOST + value: + _default: redis + - name: CDE_API_REDIS__PORT + value: + _default: '6379' + - name: CDE_API_DATABASE__HOST + value: + _default: sarex-vpsql-01.xc.wb.ru + - name: CDE_API_DATABASE__PORT + value: + _default: '5432' + - name: CDE_API_DATABASE__NAME + value: + _default: documentations_db + secretEnvs: + - name: CDE_API_DATABASE__USER + secretName: + _default: postgres-secret + secretKey: + _default: username + - name: CDE_API_DATABASE__PASSWORD + secretName: + _default: postgres-secret + secretKey: + _default: password + - name: CDE_API_S3_ENDPOINT + secretName: + _default: cde-api-s3-secret + secretKey: + _default: endpoint + - name: CDE_API_S3_ACCESS_KEY + secretName: + _default: cde-api-s3-secret + secretKey: + _default: access_key + - name: CDE_API_S3_SECRET_KEY + secretName: + _default: cde-api-s3-secret + secretKey: + _default: secret_key + - name: CDE_API_ZEEBE_GATEWAY_ADDRESS + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: gateway_address + - name: CDE_API_ZEEBE_CLIENT_ID + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: client_id + - name: CDE_API_ZEEBE_CLIENT_SECRET + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: client_secret + - name: CDE_API_ZEEBE_AUTH_SERVER_URL + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: auth_server_url + - name: CDE_API_S3_BUCKET_NAME + secretName: + _default: cde-api-s3-secret + secretKey: + _default: bucket + volumes: + _default: + - name: tasks-execution-config + mountPath: + _default: /etc/app/tasks_execution_config.json + subPath: + _default: tasks_execution_config.json + readOnly: + _default: true + configMap: + name: + _default: tasks-execution-config-documentation-v2 + items: + - key: tasks-execution-config-documentation-v2.json + path: + _default: tasks_execution_config.json + defaultMode: + _default: '0644' + dependsOn: + - name: cde-api + namespace: documentations diff --git a/apps/documentations/wb/cde-api/cde-api-worker-s32d-handle-error.yaml b/apps/documentations/wb/cde-api/cde-api-worker-s32d-handle-error.yaml new file mode 100644 index 0000000..aac5851 --- /dev/null +++ b/apps/documentations/wb/cde-api/cde-api-worker-s32d-handle-error.yaml @@ -0,0 +1,246 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-api-worker-s32d-handle-error + namespace: documentations +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: 0.1.7 + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + worker-s32d-handle-error: + enabled: true + deployment: + enabled: true + name: + _default: worker-s32d-handle-error + replicaCount: + _default: 1 + revisionHistoryLimit: + _default: 5 + resources: + requests: + cpu: + _default: 50m + memory: + _default: 64Mi + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-handle-error:production_19194531 + pullPolicy: + _default: IfNotPresent + service: + enabled: false + imagePullSecrets: + enabled: + _default: true + name: + _default: dockerhub + envs: + - name: CDE_API_EAV_HOST + value: + _default: http://eav-service.eav.svc.cluster.local:8000 + - name: CDE_API_APP_NAME + value: + _default: worker-s32d-handle-error + - name: CDE_API_LOG_LEVEL + value: + _default: info + - name: CDE_API_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE + value: + _default: '5368709120' + - name: CDE_API_S3_MAX_PART_SIZE + value: + _default: '524288000' + - name: CDE_API_S3_UPLOAD_STALL_TIMEOUT + value: + _default: 10m + - name: CDE_API_DATABASE__SSLMODE + value: + _default: disable + - name: CDE_API_DATABASE__INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_DATABASE_MAX_CONN_LIFETIME + value: + _default: 30m + - name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME + value: + _default: 10m + - name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD + value: + _default: 30s + - name: CDE_API_DATABASE_POOL_SIZE + value: + _default: '2' + - name: CDE_API_REDIS__SSL + value: + _default: 'false' + - name: CDE_API_REDIS__POOL_SIZE + value: + _default: '3' + - name: CDE_API_REDIS__MIN_IDLE_CONNS + value: + _default: '1' + - name: CDE_API_REDIS__DIAL_TIMEOUT_MS + value: + _default: '5000' + - name: CDE_API_REDIS__READ_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__WRITE_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__DEFAULT_TTL_MINUTES + value: + _default: '10' + - name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED + value: + _default: 'false' + - name: CDE_API_S3_USE_SSL + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_LOOKUP + value: + _default: auto + - name: CDE_API_S3_INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_S3_CHECK_BUCKET + value: + _default: 'false' + - name: CDE_API_ZEEBE_USE_PLAINTEXT + value: + _default: 'true' + - name: CDE_API_S32D_WORKER_HANDLE_ERROR_TIMEOUT_MIN + value: + _default: '10' + - name: CDE_API_S32D_WORKER_HANDLE_ERROR_MAX_JOBS + value: + _default: '4' + - name: CDE_API_MAILER_BASE_URL + value: + _default: http://mailer-service.mailer:8000 + - name: CDE_API_MAILER_FROM_EMAIL + value: + _default: noreply@sarex.io + - name: CDE_API_FLOWS_URL + value: + _default: http://backend-service.flows.svc.cluster.local:8000 + - name: CDE_API_TRANSMITTALS_URL + value: + _default: http://transmittal-service.transmittal.svc.cluster.local:80 + - name: CDE_API_WORKFLOWS_CONFIG_FILEPATH + value: + _default: /etc/app/tasks_execution_config.json + - name: CDE_API_REDIS__HOST + value: + _default: redis + - name: CDE_API_REDIS__PORT + value: + _default: '6379' + - name: CDE_API_DATABASE__HOST + value: + _default: sarex-vpsql-01.xc.wb.ru + - name: CDE_API_DATABASE__PORT + value: + _default: '5432' + - name: CDE_API_DATABASE__NAME + value: + _default: documentations_db + secretEnvs: + - name: CDE_API_DATABASE__USER + secretName: + _default: postgres-secret + secretKey: + _default: username + - name: CDE_API_DATABASE__PASSWORD + secretName: + _default: postgres-secret + secretKey: + _default: password + - name: CDE_API_S3_ENDPOINT + secretName: + _default: cde-api-s3-secret + secretKey: + _default: endpoint + - name: CDE_API_S3_ACCESS_KEY + secretName: + _default: cde-api-s3-secret + secretKey: + _default: access_key + - name: CDE_API_S3_SECRET_KEY + secretName: + _default: cde-api-s3-secret + secretKey: + _default: secret_key + - name: CDE_API_ZEEBE_GATEWAY_ADDRESS + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: gateway_address + - name: CDE_API_ZEEBE_CLIENT_ID + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: client_id + - name: CDE_API_ZEEBE_CLIENT_SECRET + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: client_secret + - name: CDE_API_ZEEBE_AUTH_SERVER_URL + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: auth_server_url + - name: CDE_API_S3_BUCKET_NAME + secretName: + _default: cde-api-s3-secret + secretKey: + _default: bucket + volumes: + _default: + - name: tasks-execution-config + mountPath: + _default: /etc/app/tasks_execution_config.json + subPath: + _default: tasks_execution_config.json + readOnly: + _default: true + configMap: + name: + _default: tasks-execution-config-documentation-v2 + items: + - key: tasks-execution-config-documentation-v2.json + path: + _default: tasks_execution_config.json + defaultMode: + _default: '0644' + dependsOn: + - name: cde-api + namespace: documentations diff --git a/apps/documentations/wb/cde-api/cde-api-worker-s32d-process-workflows.yaml b/apps/documentations/wb/cde-api/cde-api-worker-s32d-process-workflows.yaml new file mode 100644 index 0000000..d5ebb93 --- /dev/null +++ b/apps/documentations/wb/cde-api/cde-api-worker-s32d-process-workflows.yaml @@ -0,0 +1,315 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-api-worker-s32d-process-workflows + namespace: documentations +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: 0.1.7 + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + worker-s32d-process-workflows: + enabled: true + deployment: + enabled: true + name: + _default: worker-s32d-process-workflows + replicaCount: + _default: 1 + revisionHistoryLimit: + _default: 5 + resources: + requests: + cpu: + _default: 200m + memory: + _default: 256Mi + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-process-workflows:production_19194531 + pullPolicy: + _default: IfNotPresent + service: + enabled: false + imagePullSecrets: + enabled: + _default: true + name: + _default: dockerhub + envs: + - name: CDE_API_EAV_HOST + value: + _default: http://eav-service.eav.svc.cluster.local:8000 + - name: CDE_API_APP_NAME + value: + _default: worker-s32d-process-workflows + - name: CDE_API_LOG_LEVEL + value: + _default: info + - name: CDE_API_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE + value: + _default: '5368709120' + - name: CDE_API_S3_MAX_PART_SIZE + value: + _default: '524288000' + - name: CDE_API_S3_UPLOAD_STALL_TIMEOUT + value: + _default: 10m + - name: CDE_API_DATABASE__SSLMODE + value: + _default: disable + - name: CDE_API_DATABASE__INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_DATABASE_MAX_CONN_LIFETIME + value: + _default: 30m + - name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME + value: + _default: 10m + - name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD + value: + _default: 30s + - name: CDE_API_DATABASE_POOL_SIZE + value: + _default: '3' + - name: CDE_API_REDIS__SSL + value: + _default: 'false' + - name: CDE_API_REDIS__POOL_SIZE + value: + _default: '5' + - name: CDE_API_REDIS__MIN_IDLE_CONNS + value: + _default: '1' + - name: CDE_API_REDIS__DIAL_TIMEOUT_MS + value: + _default: '5000' + - name: CDE_API_REDIS__READ_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__WRITE_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__DEFAULT_TTL_MINUTES + value: + _default: '10' + - name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED + value: + _default: 'false' + - name: CDE_API_S3_USE_SSL + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_LOOKUP + value: + _default: auto + - name: CDE_API_S3_INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_S3_CHECK_BUCKET + value: + _default: 'false' + - name: CDE_API_ZEEBE_USE_PLAINTEXT + value: + _default: 'true' + - name: CDE_API_S32D_WORKER_PROCESS_WORKFLOWS_TIMEOUT_MIN + value: + _default: '480' + - name: CDE_API_S32D_WORKER_PROCESS_WORKFLOWS_MAX_JOBS + value: + _default: '1' + - name: CDE_API_MAILER_BASE_URL + value: + _default: http://mailer-service.mailer:8000 + - name: CDE_API_MAILER_FROM_EMAIL + value: + _default: noreply@sarex.io + - name: CDE_API_WORKFLOW_BASE_URL + value: + _default: http://workflows-api-service.workflow.svc.cluster.local:8000 + - name: CDE_API_WORKFLOW_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKFLOW_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_URL + value: + _default: http://backend-service.bim.svc.cluster.local:8000 + - name: CDE_API_BIMAPI_V2_URL + value: + _default: http://bim-backend-v2-service.bim-api.svc.cluster.local:8080 + - name: CDE_API_BIMAPI_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_BIMAPI_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_TIMEOUT_V2_MS + value: + _default: '300000' + - name: CDE_API_CONTAINER_REGISTRY + value: + _default: cr.yandex/crp3ccidau046kdj8g9q + - name: CDE_API_WORKFLOWS_IMAGES_VERSION + value: + _default: master + - name: CDE_API_DJANGO_HOST + value: + _default: http://backend.django.svc.cluster.local:8000 + - name: CDE_API_ENVIRONMENT + value: + _default: wb + - name: CDE_API_CONVERTED_PDF_TO_S3 + value: + _default: 'true' + - name: CDE_API_CONVERT_DXF_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_CONVERT_DWG_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_USE_BIMV1_FOR_BIMV2 + value: + _default: 'false' + - name: CDE_API_LAST_MASTER_BIM + value: + _default: '2000' + - name: CDE_API_LAST_SLAVE_1_BIM + value: + _default: '2250' + - name: CDE_API_LAST_SLAVE_2_BIM + value: + _default: '15000' + - name: CDE_API_USE_BIM_INSERTER + value: + _default: 'true' + - name: CDE_API_USE_LEGACY_BIM_FLOW + value: + _default: 'true' + - name: CDE_API_DOCUMENTATION_V2_URL + value: + _default: http://documentations-api.documentations.svc.cluster.local:8080 + - name: CDE_API_INTERNAL_URL + value: + _default: http://cde-api.documentations:8000 + - name: CDE_API_FLOWS_URL + value: + _default: http://backend-service.flows.svc.cluster.local:8000 + - name: CDE_API_TRANSMITTALS_URL + value: + _default: http://transmittal-service.transmittal.svc.cluster.local:80 + - name: CDE_API_WORKFLOWS_CONFIG_FILEPATH + value: + _default: /etc/app/tasks_execution_config.json + - name: CDE_API_REDIS__HOST + value: + _default: redis + - name: CDE_API_REDIS__PORT + value: + _default: '6379' + - name: CDE_API_DATABASE__HOST + value: + _default: sarex-vpsql-01.xc.wb.ru + - name: CDE_API_DATABASE__PORT + value: + _default: '5432' + - name: CDE_API_DATABASE__NAME + value: + _default: documentations_db + secretEnvs: + - name: CDE_API_DATABASE__USER + secretName: + _default: postgres-secret + secretKey: + _default: username + - name: CDE_API_DATABASE__PASSWORD + secretName: + _default: postgres-secret + secretKey: + _default: password + - name: CDE_API_S3_ENDPOINT + secretName: + _default: cde-api-s3-secret + secretKey: + _default: endpoint + - name: CDE_API_S3_ACCESS_KEY + secretName: + _default: cde-api-s3-secret + secretKey: + _default: access_key + - name: CDE_API_S3_SECRET_KEY + secretName: + _default: cde-api-s3-secret + secretKey: + _default: secret_key + - name: CDE_API_ZEEBE_GATEWAY_ADDRESS + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: gateway_address + - name: CDE_API_ZEEBE_CLIENT_ID + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: client_id + - name: CDE_API_ZEEBE_CLIENT_SECRET + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: client_secret + - name: CDE_API_ZEEBE_AUTH_SERVER_URL + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: auth_server_url + - name: CDE_API_S3_BUCKET_NAME + secretName: + _default: cde-api-s3-secret + secretKey: + _default: bucket + volumes: + _default: + - name: tasks-execution-config + mountPath: + _default: /etc/app/tasks_execution_config.json + subPath: + _default: tasks_execution_config.json + readOnly: + _default: true + configMap: + name: + _default: tasks-execution-config-documentation-v2 + items: + - key: tasks-execution-config-documentation-v2.json + path: + _default: tasks_execution_config.json + defaultMode: + _default: '0644' + dependsOn: + - name: cde-api + namespace: documentations diff --git a/apps/documentations/wb/cde-api/cde-api-worker-s32d-publish-documents.yaml b/apps/documentations/wb/cde-api/cde-api-worker-s32d-publish-documents.yaml new file mode 100644 index 0000000..d739ad4 --- /dev/null +++ b/apps/documentations/wb/cde-api/cde-api-worker-s32d-publish-documents.yaml @@ -0,0 +1,261 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-api-worker-s32d-publish-documents + namespace: documentations +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: 0.1.7 + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + worker-s32d-publish-documents: + enabled: true + deployment: + enabled: true + name: + _default: worker-s32d-publish-documents + replicaCount: + _default: 1 + revisionHistoryLimit: + _default: 5 + resources: + requests: + cpu: + _default: 100m + memory: + _default: 64Mi + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/cde-api-worker-s32d-publish-documents:production_19194531 + pullPolicy: + _default: IfNotPresent + service: + enabled: false + imagePullSecrets: + enabled: + _default: true + name: + _default: dockerhub + envs: + - name: CDE_API_EAV_HOST + value: + _default: http://eav-service.eav.svc.cluster.local:8000 + - name: CDE_API_APP_NAME + value: + _default: worker-s32d-publish-documents + - name: CDE_API_LOG_LEVEL + value: + _default: info + - name: CDE_API_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE + value: + _default: '5368709120' + - name: CDE_API_S3_MAX_PART_SIZE + value: + _default: '524288000' + - name: CDE_API_S3_UPLOAD_STALL_TIMEOUT + value: + _default: 10m + - name: CDE_API_DATABASE__SSLMODE + value: + _default: disable + - name: CDE_API_DATABASE__INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_DATABASE_MAX_CONN_LIFETIME + value: + _default: 30m + - name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME + value: + _default: 10m + - name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD + value: + _default: 30s + - name: CDE_API_DATABASE_POOL_SIZE + value: + _default: '3' + - name: CDE_API_REDIS__SSL + value: + _default: 'false' + - name: CDE_API_REDIS__POOL_SIZE + value: + _default: '5' + - name: CDE_API_REDIS__MIN_IDLE_CONNS + value: + _default: '1' + - name: CDE_API_REDIS__DIAL_TIMEOUT_MS + value: + _default: '5000' + - name: CDE_API_REDIS__READ_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__WRITE_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__DEFAULT_TTL_MINUTES + value: + _default: '10' + - name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED + value: + _default: 'false' + - name: CDE_API_S3_USE_SSL + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_LOOKUP + value: + _default: auto + - name: CDE_API_S3_INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_S3_CHECK_BUCKET + value: + _default: 'false' + - name: CDE_API_ZEEBE_USE_PLAINTEXT + value: + _default: 'true' + - name: CDE_API_S32D_WORKER_PUBLISH_DOCUMENTS_TIMEOUT_MIN + value: + _default: '10' + - name: CDE_API_S32D_WORKER_PUBLISH_DOCUMENTS_MAX_JOBS + value: + _default: '2' + - name: CDE_API_MAILER_BASE_URL + value: + _default: http://mailer-service.mailer:8000 + - name: CDE_API_MAILER_FROM_EMAIL + value: + _default: noreply@sarex.io + - name: CDE_API_SYSTEMLOG_BASE_URL + value: + _default: http://api-service.system-log.svc.cluster.local:8000 + - name: CDE_API_SYSTEMLOG_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_FLOWS_URL + value: + _default: http://backend-service.flows.svc.cluster.local:8000 + - name: CDE_API_TRANSMITTALS_URL + value: + _default: http://transmittal-service.transmittal.svc.cluster.local:80 + - name: CDE_API_WORKSPACE_BASE_URL + value: + _default: http://workspaces-service.workspaces.svc.cluster.local:8000 + - name: CDE_API_WORKSPACE_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKSPACE_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_WORKFLOWS_CONFIG_FILEPATH + value: + _default: /etc/app/tasks_execution_config.json + - name: CDE_API_REDIS__HOST + value: + _default: redis + - name: CDE_API_REDIS__PORT + value: + _default: '6379' + - name: CDE_API_DATABASE__HOST + value: + _default: sarex-vpsql-01.xc.wb.ru + - name: CDE_API_DATABASE__PORT + value: + _default: '5432' + - name: CDE_API_DATABASE__NAME + value: + _default: documentations_db + secretEnvs: + - name: CDE_API_DATABASE__USER + secretName: + _default: postgres-secret + secretKey: + _default: username + - name: CDE_API_DATABASE__PASSWORD + secretName: + _default: postgres-secret + secretKey: + _default: password + - name: CDE_API_S3_ENDPOINT + secretName: + _default: cde-api-s3-secret + secretKey: + _default: endpoint + - name: CDE_API_S3_ACCESS_KEY + secretName: + _default: cde-api-s3-secret + secretKey: + _default: access_key + - name: CDE_API_S3_SECRET_KEY + secretName: + _default: cde-api-s3-secret + secretKey: + _default: secret_key + - name: CDE_API_ZEEBE_GATEWAY_ADDRESS + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: gateway_address + - name: CDE_API_ZEEBE_CLIENT_ID + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: client_id + - name: CDE_API_ZEEBE_CLIENT_SECRET + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: client_secret + - name: CDE_API_ZEEBE_AUTH_SERVER_URL + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: auth_server_url + - name: CDE_API_S3_BUCKET_NAME + secretName: + _default: cde-api-s3-secret + secretKey: + _default: bucket + volumes: + _default: + - name: tasks-execution-config + mountPath: + _default: /etc/app/tasks_execution_config.json + subPath: + _default: tasks_execution_config.json + readOnly: + _default: true + configMap: + name: + _default: tasks-execution-config-documentation-v2 + items: + - key: tasks-execution-config-documentation-v2.json + path: + _default: tasks_execution_config.json + defaultMode: + _default: '0644' + dependsOn: + - name: cde-api + namespace: documentations diff --git a/apps/documentations/wb/cde-api/cde-api.yaml b/apps/documentations/wb/cde-api/cde-api.yaml new file mode 100644 index 0000000..8881c32 --- /dev/null +++ b/apps/documentations/wb/cde-api/cde-api.yaml @@ -0,0 +1,462 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-api + namespace: documentations +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: 0.1.7 + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + cde-api: + enabled: true + deployment: + enabled: true + name: + _default: cde-api + replicaCount: + _default: 1 + revisionHistoryLimit: + _default: 5 + port: + _default: 8000 + resources: + requests: + cpu: + _default: 200m + memory: + _default: 256Mi + probes: + readiness: + enabled: true + type: + _default: tcpSocket + tcpSocket: + port: + _default: 8000 + periodSeconds: + _default: 5 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/cde-api:production_19194531 + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: cde-api + type: + _default: ClusterIP + port: + _default: 8000 + targetPort: + _default: 8000 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: dockerhub + envs: + - name: CDE_API_RESOURCES_BASE_URL + value: + _default: http://iams.iam.svc.cluster.local:8080 + - name: CDE_API_RESOURCES_TIMEOUT + value: + _default: 10s + - name: CDE_API_APP_NAME + value: + _default: cde-api + - name: CDE_API_LOG_LEVEL + value: + _default: debug + - name: CDE_API_HTTP_PORT + value: + _default: '8000' + - name: CDE_API_HTTP_READ_TIMEOUT + value: + _default: 0s + - name: CDE_API_HTTP_WRITE_TIMEOUT + value: + _default: 0s + - name: CDE_API_HTTP_IDLE_TIMEOUT + value: + _default: 120s + - name: CDE_API_HTTP_READ_BUFFER_SIZE + value: + _default: '96' + - name: CDE_API_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_S3_MAX_SINGLE_UPLOAD_SIZE + value: + _default: '5368709120' + - name: CDE_API_S3_MAX_PART_SIZE + value: + _default: '524288000' + - name: CDE_API_S3_UPLOAD_STALL_TIMEOUT + value: + _default: 10m + - name: CDE_API_PUBLIC_LINK_HOST + value: + _default: https://document-link-srx.wb.ru + - name: CDE_API_WORKFLOW_BASE_URL + value: + _default: http://workflows-api-service.workflow.svc.cluster.local:8000 + - name: CDE_API_WORKFLOW_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKFLOW_RETRY_WAIT_MS + value: + _default: '500' + - name: CDE_API_WORKFLOW_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_URL + value: + _default: http://backend-service.bim.svc.cluster.local:8000 + - name: CDE_API_BIMAPI_V2_URL + value: + _default: http://bim-backend-v2-service.bim-api.svc.cluster.local:8080 + - name: CDE_API_BIMAPI_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_BIMAPI_RETRY_WAIT_MS + value: + _default: '1000' + - name: CDE_API_BIMAPI_TIMEOUT_MS + value: + _default: '30000' + - name: CDE_API_BIMAPI_TIMEOUT_V2_MS + value: + _default: '300000' + - name: CDE_API_WORKSPACE_BASE_URL + value: + _default: http://workspaces-service.workspaces.svc.cluster.local:8000 + - name: CDE_API_WORKSPACE_RETRY_COUNT + value: + _default: '3' + - name: CDE_API_WORKSPACE_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_SYSTEMLOG_BASE_URL + value: + _default: http://api-service.system-log.svc.cluster.local:8000 + - name: CDE_API_SYSTEMLOG_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_CONTAINER_REGISTRY + value: + _default: cr.yandex/crp3ccidau046kdj8g9q + - name: CDE_API_WORKFLOWS_IMAGES_VERSION + value: + _default: master + - name: CDE_API_DJANGO_HOST + value: + _default: http://backend.django.svc.cluster.local:8000 + - name: CDE_API_ENVIRONMENT + value: + _default: wb + - name: CDE_API_CONVERTED_PDF_TO_S3 + value: + _default: 'true' + - name: CDE_API_CONVERT_DXF_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_CONVERT_DWG_TO_GEOJSON + value: + _default: 'true' + - name: CDE_API_USE_BIMV1_FOR_BIMV2 + value: + _default: 'false' + - name: CDE_API_EAV_HOST + value: + _default: http://eav-service.eav.svc.cluster.local:8000 + - name: CDE_API_EAV_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_DOCUMENTATION_V2_URL + value: + _default: http://documentations-api.documentations.svc.cluster.local:8080 + - name: CDE_API_INTERNAL_URL + value: + _default: http://cde-api.documentations:8000 + - name: CDE_API_COPY_MAX_SYNC_WAIT_MS + value: + _default: '300000' + - name: CDE_API_LAST_MASTER_BIM + value: + _default: '2000' + - name: CDE_API_LAST_SLAVE_1_BIM + value: + _default: '2250' + - name: CDE_API_LAST_SLAVE_2_BIM + value: + _default: '15000' + - name: CDE_API_USE_BIM_INSERTER + value: + _default: 'true' + - name: CDE_API_USE_LEGACY_BIM_FLOW + value: + _default: 'true' + - name: CDE_API_DATABASE_MAX_CONN_LIFETIME + value: + _default: 30m + - name: CDE_API_DATABASE_MAX_CONN_IDLE_TIME + value: + _default: 10m + - name: CDE_API_DATABASE_HEALTH_CHECK_PERIOD + value: + _default: 30s + - name: CDE_API_DATABASE_POOL_SIZE + value: + _default: '2' + - name: CDE_API_DIAGNOSTICS_SLOW_OPERATION_THRESHOLD + value: + _default: 30s + - name: CDE_API_DATABASE__SSLMODE + value: + _default: disable + - name: CDE_API_DATABASE__INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_DATABASE_OBSERVABILITY_ENABLE + value: + _default: 'false' + - name: CDE_API_REDIS__DB + value: + _default: '5' + - name: CDE_API_REDIS__SSL + value: + _default: 'false' + - name: CDE_API_REDIS__POOL_SIZE + value: + _default: '10' + - name: CDE_API_REDIS__MIN_IDLE_CONNS + value: + _default: '2' + - name: CDE_API_REDIS__DIAL_TIMEOUT_MS + value: + _default: '5000' + - name: CDE_API_REDIS__READ_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__WRITE_TIMEOUT_MS + value: + _default: '3000' + - name: CDE_API_REDIS__DEFAULT_TTL_MINUTES + value: + _default: '10' + - name: CDE_API_REDIS__PERMISSION_CACHE_ENABLED + value: + _default: 'false' + - name: CDE_API_S3_USE_SSL + value: + _default: 'false' + - name: CDE_API_S3_BUCKET_LOOKUP + value: + _default: auto + - name: CDE_API_S3_INSECURE_SKIP_TLS + value: + _default: 'false' + - name: CDE_API_S3_CHECK_BUCKET + value: + _default: 'false' + - name: CDE_API_S3_CONNECT_TIMEOUT + value: + _default: 10s + - name: CDE_API_S3_TLS_HANDSHAKE_TIMEOUT + value: + _default: 10s + - name: CDE_API_S32D_MAX_ARCHIVE_SIZE_BYTES + value: + _default: '1099511627776' + - name: CDE_API_S32D_MAX_FILES_COUNT + value: + _default: '500' + - name: CDE_API_ZEEBE_USE_PLAINTEXT + value: + _default: 'true' + - name: CDE_API_USERS_BASE_URL + value: + _default: http://backend.django.svc.cluster.local:8000 + - name: CDE_API_DISK_BUCKET_NAMESPACE + value: + _default: documentations + - name: CDE_API_USERS_ORIGINATOR + value: + _default: docs_prod + - name: CDE_API_USERS_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_MAILER_BASE_URL + value: + _default: http://mailer-service.mailer:8000 + - name: CDE_API_MAILER_FROM_EMAIL + value: + _default: noreply@sarex.io + - name: CDE_API_MAILER_RETRY_COUNT + value: + _default: '2' + - name: CDE_API_MAILER_TIMEOUT_MS + value: + _default: '10000' + - name: CDE_API_FLOWS_URL + value: + _default: http://backend-service.flows.svc.cluster.local:8000 + - name: CDE_API_TRANSMITTALS_URL + value: + _default: http://transmittal-service.transmittal.svc.cluster.local:80 + - name: CDE_API_WORKFLOWS_CONFIG_FILEPATH + value: + _default: /etc/app/tasks_execution_config.json + - name: CDE_API_RABBITMQ__MARKS_ROUTING_KEY + value: + _default: pdf_markings_input + - name: CDE_API_RABBITMQ__HASHER_ROUTING_KEY + value: + _default: hash.compute.normal + - name: CDE_API_RABBITMQ__HASHER_EXCHANGE + value: + _default: hash.compute + - name: CDE_API_REDIS__HOST + value: + _default: redis + - name: CDE_API_REDIS__PORT + value: + _default: '6379' + - name: CDE_API_DATABASE__HOST + value: + _default: sarex-vpsql-01.xc.wb.ru + - name: CDE_API_DATABASE__PORT + value: + _default: '5432' + - name: CDE_API_DATABASE__NAME + value: + _default: documentations_db + secretEnvs: + - name: CDE_API_PUBLIC_KEY + secretName: + _default: public-key + secretKey: + _default: key + - name: CDE_API_DATABASE__USER + secretName: + _default: postgres-secret + secretKey: + _default: username + - name: CDE_API_DATABASE__PASSWORD + secretName: + _default: postgres-secret + secretKey: + _default: password + - name: CDE_API_S3_ENDPOINT + secretName: + _default: cde-api-s3-secret + secretKey: + _default: endpoint + - name: CDE_API_S3_ACCESS_KEY + secretName: + _default: cde-api-s3-secret + secretKey: + _default: access_key + - name: CDE_API_S3_SECRET_KEY + secretName: + _default: cde-api-s3-secret + secretKey: + _default: secret_key + - name: CDE_API_ZEEBE_GATEWAY_ADDRESS + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: gateway_address + - name: CDE_API_ZEEBE_CLIENT_ID + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: client_id + - name: CDE_API_ZEEBE_CLIENT_SECRET + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: client_secret + - name: CDE_API_ZEEBE_AUTH_SERVER_URL + secretName: + _default: cde-api-zeebe-secret + secretKey: + _default: auth_server_url + - name: CDE_API_USERS_AUTH_TOKEN + secretName: + _default: django-auth + secretKey: + _default: key + - name: CDE_API_RABBITMQ__HOST + secretName: + _default: rabbitmq + secretKey: + _default: host + - name: CDE_API_RABBITMQ__PORT + secretName: + _default: rabbitmq + secretKey: + _default: port + - name: CDE_API_RABBITMQ__USER + secretName: + _default: rabbitmq + secretKey: + _default: username + - name: CDE_API_RABBITMQ__PASSWORD + secretName: + _default: rabbitmq + secretKey: + _default: password + - name: CDE_API_RABBITMQ__VHOST + secretName: + _default: rabbitmq + secretKey: + _default: vhost + - name: CDE_API_S3_BUCKET_NAME + secretName: + _default: cde-api-s3-secret + secretKey: + _default: bucket + volumes: + _default: + - name: tasks-execution-config + mountPath: + _default: /etc/app/tasks_execution_config.json + subPath: + _default: tasks_execution_config.json + readOnly: + _default: true + configMap: + name: + _default: tasks-execution-config-documentation-v2 + items: + - key: tasks-execution-config-documentation-v2.json + path: + _default: tasks_execution_config.json + defaultMode: + _default: '0644' diff --git a/apps/documentations/wb/cde-api/kustomization.yaml b/apps/documentations/wb/cde-api/kustomization.yaml new file mode 100644 index 0000000..7192441 --- /dev/null +++ b/apps/documentations/wb/cde-api/kustomization.yaml @@ -0,0 +1,14 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: documentations +resources: +- cde-api.yaml +- cde-api-worker-copy.yaml +- cde-api-worker-move.yaml +- cde-api-worker-s32d-create-upload.yaml +- cde-api-worker-s32d-handle-error.yaml +- cde-api-worker-s32d-process-workflows.yaml +- cde-api-worker-s32d-publish-documents.yaml +- outbox-relay.yaml +- tasks-execution-config.yaml +- virtualservice.yaml diff --git a/apps/documentations/wb/cde-api/outbox-relay.yaml b/apps/documentations/wb/cde-api/outbox-relay.yaml new file mode 100644 index 0000000..4ae2396 --- /dev/null +++ b/apps/documentations/wb/cde-api/outbox-relay.yaml @@ -0,0 +1,137 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: outbox-relay + namespace: documentations +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: 0.1.7 + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + outbox-relay: + enabled: true + deployment: + enabled: true + name: + _default: outbox-relay + replicaCount: + _default: 1 + revisionHistoryLimit: + _default: 5 + resources: + requests: + cpu: + _default: 100m + memory: + _default: 128Mi + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/outbox-relay:production_3e895e8a + pullPolicy: + _default: IfNotPresent + service: + enabled: false + imagePullSecrets: + enabled: + _default: true + name: + _default: dockerhub + envs: + - name: OUTBOX_RELAY_APP_NAME + value: + _default: cde-api-outbox-relay + - name: OUTBOX_RELAY_APP_VERSION + value: + _default: 0.1.0 + - name: OUTBOX_RELAY_LOG_LEVEL + value: + _default: info + - name: OUTBOX_RELAY_SOURCE_SERVICE + value: + _default: cde-api + - name: OUTBOX_RELAY_SOURCE_VERSION + value: + _default: 0.1.0 + - name: OUTBOX_RELAY_PG__SSLMODE + value: + _default: disable + - name: OUTBOX_RELAY_PG__POOL_MIN + value: + _default: '1' + - name: OUTBOX_RELAY_PG__POOL_MAX + value: + _default: '3' + - name: OUTBOX_RELAY_PG__TABLE + value: + _default: outbox + - name: OUTBOX_RELAY_PG__HOST + value: + _default: sarex-vpsql-01.xc.wb.ru + - name: OUTBOX_RELAY_PG__PORT + value: + _default: '5432' + - name: OUTBOX_RELAY_PG__NAME + value: + _default: documentations_db + - name: OUTBOX_RELAY_POLL_INTERVAL + value: + _default: 500ms + - name: OUTBOX_RELAY_BATCH_SIZE + value: + _default: '100' + - name: OUTBOX_RELAY_MAX_ATTEMPTS + value: + _default: '8' + - name: OUTBOX_RELAY_INITIAL_BACKOFF + value: + _default: 1s + - name: OUTBOX_RELAY_MAX_BACKOFF + value: + _default: 5m + - name: OUTBOX_RELAY_SHUTDOWN_TIMEOUT + value: + _default: 30s + - name: OUTBOX_RELAY_KAFKA__BROKERS + value: + _default: wb-prod-kafka-bootstrap.kafka.svc.cluster.local:9093 + - name: OUTBOX_RELAY_KAFKA__SECURITY_PROTOCOL + value: + _default: SSL + - name: OUTBOX_RELAY_KAFKA__INSECURE_SKIP_VERIFY + value: + _default: 'true' + secretEnvs: + - name: OUTBOX_RELAY_PG__USER + secretName: + _default: postgres-secret + secretKey: + _default: username + - name: OUTBOX_RELAY_PG__PASSWORD + secretName: + _default: postgres-secret + secretKey: + _default: password + dependsOn: + - name: cde-api + namespace: documentations diff --git a/apps/documentations/wb/cde-api/tasks-execution-config.yaml b/apps/documentations/wb/cde-api/tasks-execution-config.yaml new file mode 100644 index 0000000..9c4d9b2 --- /dev/null +++ b/apps/documentations/wb/cde-api/tasks-execution-config.yaml @@ -0,0 +1,66 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: tasks-execution-config-documentation-v2 + namespace: documentations +data: + tasks-execution-config-documentation-v2.json: "{\n \"bim_api_metadata_inserter\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"bim_api_metadata_inserter_v2\": {\n \"executor\": \"\ + k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \ + \ \"memory_requests\": \"64Mi\"\n }\n },\n \"bim_api_metadata_inserter_v4\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"bim_differ\": {\n \"executor\": \"k8s\",\n \"\ + resources\": {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\ + : \"64Mi\"\n }\n },\n \"bim_updater\": {\n \"executor\": \"\ + k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \ + \ \"memory_requests\": \"64Mi\"\n }\n },\n \"convert_to_potree\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"docx_to_pdf\": {\n \"executor\": \"k8s\",\n \"\ + resources\": {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\ + : \"64Mi\"\n }\n },\n \"dwg_to_geojson\": {\n \"executor\"\ + : \"k8s\",\n \"resources\": {\n \"cpu_limits\": \"4\",\n \ + \ \"cpu_requests\": \"100m\",\n \"memory_limits\": \"40Gi\"\ + ,\n \"memory_requests\": \"64Mi\"\n }\n },\n \"e57_to_las\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"ifc_converter_job\": {\n \"executor\": \"k8s\",\n \ + \ \"resources\": {\n \"cpu_requests\": \"100m\",\n \ + \ \"memory_requests\": \"64Mi\"\n }\n },\n \"las_merge\": {\n \ + \ \"executor\": \"k8s\",\n \"resources\": {\n \"cpu_requests\"\ + : \"100m\",\n \"memory_requests\": \"64Mi\"\n }\n },\n \ + \ \"mesh_optimizer\": {\n \"executor\": \"k8s\",\n \"resources\"\ + : {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\ + : \"64Mi\"\n }\n },\n \"mesh_optimizer_v2\": {\n \"executor\"\ + : \"k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n\ + \ \"memory_requests\": \"64Mi\"\n }\n },\n \"parsing_template\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"processing_converter_to_tiles\": {\n \"executor\": \"\ + k8s\",\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \ + \ \"memory_requests\": \"64Mi\"\n }\n },\n \"processing_create_colored_surface_from_geotiff\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"rendering_template\": {\n \"executor\": \"k8s\",\n \ + \ \"resources\": {\n \"cpu_requests\": \"100m\",\n \ + \ \"memory_requests\": \"64Mi\"\n }\n },\n \"split_pdf_document\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"split_pdf_document_legacy\": {\n \"executor\": \"k8s\"\ + ,\n \"resources\": {\n \"cpu_requests\": \"100m\",\n \ + \ \"memory_requests\": \"64Mi\"\n }\n },\n \"update_orthomosaic_data\"\ + : {\n \"executor\": \"k8s\",\n \"resources\": {\n \"\ + cpu_requests\": \"100m\",\n \"memory_requests\": \"64Mi\"\n \ + \ }\n },\n \"web_hook_caller\": {\n \"executor\": \"k8s\",\n \ + \ \"resources\": {\n \"cpu_requests\": \"100m\",\n \"\ + memory_requests\": \"64Mi\"\n }\n },\n \"xml_to_glb\": {\n \ + \ \"executor\": \"k8s\",\n \"resources\": {\n \"cpu_requests\"\ + : \"100m\",\n \"memory_requests\": \"64Mi\"\n }\n },\n \ + \ \"document_converter\": {\n \"executor\": \"k8s\",\n \"resources\"\ + : {\n \"cpu_requests\": \"100m\",\n \"memory_requests\"\ + : \"64Mi\"\n }\n },\n \"sparkjs_converter_wrapper\": {\n \"\ + executor\": \"k8s\",\n \"resources\": {\n \"cpu_requests\":\ + \ \"100m\",\n \"memory_requests\": \"64Mi\"\n }\n }\n}\n" diff --git a/apps/documentations/wb/cde-api/virtualservice.yaml b/apps/documentations/wb/cde-api/virtualservice.yaml new file mode 100644 index 0000000..f4e87a5 --- /dev/null +++ b/apps/documentations/wb/cde-api/virtualservice.yaml @@ -0,0 +1,54 @@ +apiVersion: networking.istio.io/v1 +kind: VirtualService +metadata: + name: vs-cde-api + namespace: documentations +spec: + hosts: + - srx.wb.ru + - lk.srx.wb.ru + gateways: + - istio-system/main-gateway + http: + - match: + - uri: + prefix: /documentations/v2/ + rewrite: + uri: /external/v2/ + corsPolicy: &id001 + allowOrigins: + - exact: https://srx.wb.ru + - exact: https://lk.srx.wb.ru + - exact: https://document-link-srx.wb.ru + allowMethods: + - GET + - POST + - PUT + - DELETE + - PATCH + - OPTIONS + - HEAD + allowHeaders: + - Authorization + - Content-Type + - Identity + - Range + - Cache-control + allowCredentials: true + maxAge: 24h + route: + - destination: + host: cde-api.documentations.svc.cluster.local + port: + number: 8000 + - match: + - uri: + prefix: /cde/app/ + rewrite: + uri: /app/ + corsPolicy: *id001 + route: + - destination: + host: cde-api.documentations.svc.cluster.local + port: + number: 8000 diff --git a/apps/documentations/wb/kustomization.yaml b/apps/documentations/wb/kustomization.yaml index e8899c2..ad2499f 100644 --- a/apps/documentations/wb/kustomization.yaml +++ b/apps/documentations/wb/kustomization.yaml @@ -12,3 +12,4 @@ resources: - frontend-static.yaml - redis.yaml - stamp-verification.yaml + - cde-api diff --git a/apps/premises/wb/backend.yaml b/apps/premises/wb/backend.yaml new file mode 100644 index 0000000..213f3a7 --- /dev/null +++ b/apps/premises/wb/backend.yaml @@ -0,0 +1,141 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: premises-backend + namespace: premises +spec: + replicas: 1 + selector: + matchLabels: + app: premises-backend + template: + metadata: + labels: + app: premises-backend + annotations: + checksum/kafka-compat: 1cf33f659ec921de79cb8adb7b50901f2dab4748e3c5c871c867f0ca08ec706a + spec: + imagePullSecrets: + - name: regcred + initContainers: + - name: wait-postgres + image: postgres:16 + command: + - sh + - -ec + - until pg_isready -h "$DATABASE_HOST" -p "$DATABASE_PORT"; do sleep 2; done + env: + - name: DATABASE_HOST + valueFrom: + secretKeyRef: + name: premises-config + key: DATABASE_HOST + - name: DATABASE_PORT + valueFrom: + secretKeyRef: + name: premises-config + key: DATABASE_PORT + - name: prepare-kafka-compat + image: cr.yandex/crp3ccidau046kdj8g9q/premises-backend:production_216148a9 + command: + - python + - /compat/patch.py + volumeMounts: + - name: kafka-compat + mountPath: /compat + readOnly: true + - name: patched-code + mountPath: /patched + containers: + - name: backend + image: cr.yandex/crp3ccidau046kdj8g9q/premises-backend:production_216148a9 + ports: + - name: http + containerPort: 8000 + env: + - name: DEBUG + value: 'false' + - name: HTTP_ROOT_PATH + value: /premises + - name: JWT_AUTH_ENABLE + value: 'true' + - name: GUNICORN_WORKERS + value: '2' + - name: FASTSTREAM_WORKERS + value: '3' + - name: DATABASE_POOL_SIZE + value: '5' + - name: KAFKA_EAV_ASSET_TOPIC_NAME + value: assets_broadcast + - name: KAFKA_SSL_CERT + value: '' + - name: S3_BUCKET + value: premises + - name: EXPORT_TTL_MINUTES + value: '30' + - name: EXPORT_MAX_WORKERS + value: '4' + - name: EXPORT_S3_KEY_PREFIX + value: premise-export + - name: ATTACHMENT_MAX_SIZE_BYTES + value: '314572800' + - name: ATTACHMENT_S3_KEY_PREFIX + value: attachment/ + - name: OTEL_ENABLE + value: 'false' + - name: OTEL_URL + value: http://signoz-otel-collector-external.signoz.svc.cluster.local:4317 + - name: OTEL_SERVICE_NAME + value: premises-backend + - name: OTEL_INSECURE + value: 'true' + - name: SRX_SDK_IAM_ENVIRONMENT + value: stage + - name: WORKFLOWS_HOST + value: http://workflows-api-service.workflow.svc.cluster.local:8000 + - name: WORKFLOWS_GENERATION_IMAGE + value: cr.yandex/crp3ccidau046kdj8g9q/rendering-template:master + - name: WORKFLOWS_DOCX_TO_PDF_IMAGE + value: cr.yandex/crp3ccidau046kdj8g9q/docx-to-pdf:latest + - name: WORKFLOWS_CALLBACK_IMAGE + value: cr.yandex/crp3ccidau046kdj8g9q/webhook-caller:master + - name: WORKFLOWS_CALLBACK_HOST + value: http://backend-svc.premises.svc.cluster.local:80 + - name: WORKFLOWS_RESULT_PATH + value: premises-wb + - name: SRX_SDK_IAM_ROUTE + value: http://iams.iam.svc.cluster.local:8080 + envFrom: + - secretRef: + name: premises-config + resources: + requests: + cpu: 100m + memory: 256Mi + readinessProbe: + httpGet: + path: /internal/healthz/ready/ + port: http + initialDelaySeconds: 10 + periodSeconds: 10 + livenessProbe: + httpGet: + path: /internal/healthz/live/ + port: http + initialDelaySeconds: 60 + periodSeconds: 30 + volumeMounts: + - name: patched-code + mountPath: /premises/src/app/api.py + subPath: api.py + readOnly: true + - name: patched-code + mountPath: /premises/src/service/premise/permission.py + subPath: permission.py + readOnly: true + volumes: + - name: kafka-compat + configMap: + name: premises-kafka-compat + - name: patched-code + emptyDir: {} diff --git a/apps/premises/wb/kafka-compat-configmap.yaml b/apps/premises/wb/kafka-compat-configmap.yaml new file mode 100644 index 0000000..1f5cda3 --- /dev/null +++ b/apps/premises/wb/kafka-compat-configmap.yaml @@ -0,0 +1,40 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: premises-kafka-compat + namespace: premises +data: + patch.py: | + from pathlib import Path + + source = Path("/premises/src/app/api.py").read_text() + old = " else:\n security = SASLScram512(" + new = " elif config.kafka.username or config.kafka.password:\n security = SASLScram512(" + if source.count(old) != 1: + raise RuntimeError("Unexpected Kafka security configuration in premises image") + patched = source.replace(old, new, 1) + compile(patched, "api.py", "exec") + Path("/patched/api.py").write_text(patched) + + source = Path("/premises/src/service/premise/permission.py").read_text() + old = " config=IAMConfig.from_environment(config.srx_sdk.iam_environment)," + new = " config=iam_config," + if source.count(old) != 1: + raise RuntimeError("Unexpected IAM configuration in premises image") + imports = "from urllib.parse import urlsplit\nfrom srx_sdk.iam.config import IAMHttpConfig\n" + configuration = """ + iam_config = IAMConfig.from_environment(config.srx_sdk.iam_environment) + if config.srx_sdk.iam_route: + iam_url = urlsplit(config.srx_sdk.iam_route) + iam_config.http_config = IAMHttpConfig( + host=iam_url.hostname, + port=iam_url.port or 80, + protocol=iam_url.scheme, + ) + + + """ + patched = imports + source.replace(old, new, 1) + patched = patched.replace("class PremisePermissionService:", configuration + "class PremisePermissionService:", 1) + compile(patched, "permission.py", "exec") + Path("/patched/permission.py").write_text(patched) diff --git a/apps/premises/wb/kustomization.yaml b/apps/premises/wb/kustomization.yaml new file mode 100644 index 0000000..76e1abf --- /dev/null +++ b/apps/premises/wb/kustomization.yaml @@ -0,0 +1,9 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: premises +resources: +- namespace.yaml +- backend.yaml +- service.yaml +- kafka-compat-configmap.yaml +- virtualservice.yaml diff --git a/apps/premises/wb/namespace.yaml b/apps/premises/wb/namespace.yaml new file mode 100644 index 0000000..520b2cc --- /dev/null +++ b/apps/premises/wb/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: premises + labels: + istio-injection: disabled diff --git a/apps/premises/wb/service.yaml b/apps/premises/wb/service.yaml new file mode 100644 index 0000000..b9a8fa5 --- /dev/null +++ b/apps/premises/wb/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: backend-svc + namespace: premises +spec: + selector: + app: premises-backend + ports: + - name: http + port: 80 + targetPort: http diff --git a/apps/premises/wb/virtualservice.yaml b/apps/premises/wb/virtualservice.yaml new file mode 100644 index 0000000..2a12ee9 --- /dev/null +++ b/apps/premises/wb/virtualservice.yaml @@ -0,0 +1,22 @@ +apiVersion: networking.istio.io/v1 +kind: VirtualService +metadata: + name: vs-premises-api + namespace: premises +spec: + hosts: + - srx.wb.ru + - lk.srx.wb.ru + gateways: + - istio-system/main-gateway + http: + - match: + - uri: + prefix: /premises/api/ + rewrite: + uri: /api/ + route: + - destination: + host: backend-svc.premises.svc.cluster.local + port: + number: 80 diff --git a/clusters/wb/kustomization.yaml b/clusters/wb/kustomization.yaml index ecff1fb..9757ff0 100644 --- a/clusters/wb/kustomization.yaml +++ b/clusters/wb/kustomization.yaml @@ -32,4 +32,5 @@ resources: - ../../apps/subscriptions/wb - ../../apps/system-log/wb - ../../apps/transmittal/wb - - ../../apps/bi/wb \ No newline at end of file + - ../../apps/bi/wb + - ../../apps/premises/wb From a12566f5a8086f1eb6eb2cc2d9111964ddaae8c5 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 27 Nov 2026 16:58:17 +0500 Subject: [PATCH 31/32] wb: deploy SpiceDB with external PostgreSQL datastore --- clusters/wb/infrastructure/kustomization.yaml | 1 + infrastructure/spicedb/wb/kustomization.yaml | 5 ++ infrastructure/spicedb/wb/namespace.yaml | 6 +++ infrastructure/spicedb/wb/spicedb.yaml | 51 +++++++++++++++++++ 4 files changed, 63 insertions(+) create mode 100644 infrastructure/spicedb/wb/kustomization.yaml create mode 100644 infrastructure/spicedb/wb/namespace.yaml create mode 100644 infrastructure/spicedb/wb/spicedb.yaml diff --git a/clusters/wb/infrastructure/kustomization.yaml b/clusters/wb/infrastructure/kustomization.yaml index 7138fdf..18fd9cd 100644 --- a/clusters/wb/infrastructure/kustomization.yaml +++ b/clusters/wb/infrastructure/kustomization.yaml @@ -1,6 +1,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: + - ../../../infrastructure/spicedb/wb - ../../../infrastructure/istio-config - ../../../infrastructure/vault - ../../../infrastructure/openobserve diff --git a/infrastructure/spicedb/wb/kustomization.yaml b/infrastructure/spicedb/wb/kustomization.yaml new file mode 100644 index 0000000..bea562c --- /dev/null +++ b/infrastructure/spicedb/wb/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - namespace.yaml + - spicedb.yaml diff --git a/infrastructure/spicedb/wb/namespace.yaml b/infrastructure/spicedb/wb/namespace.yaml new file mode 100644 index 0000000..7a7af0f --- /dev/null +++ b/infrastructure/spicedb/wb/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: spicedb + labels: + istio-injection: disabled diff --git a/infrastructure/spicedb/wb/spicedb.yaml b/infrastructure/spicedb/wb/spicedb.yaml new file mode 100644 index 0000000..f1f5fc1 --- /dev/null +++ b/infrastructure/spicedb/wb/spicedb.yaml @@ -0,0 +1,51 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: spicedb + namespace: spicedb +spec: + interval: 5m + timeout: 10m + chart: + spec: + chart: spicedb + version: 0.1.4-prod + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 0 + remediateLastFailure: false + values: + replicas: 1 + image: + repository: cr.yandex/crp3ccidau046kdj8g9q/spicedb-prod + tag: v1.54.0 + imagePullSecrets: + - name: regcred + datastore: + mode: external + database: spicedb + username: spicedb + auth: + existingSecret: spicedb-secret + istio: + enabled: false + deploymentName: spicedb + resources: + requests: + cpu: 100m + memory: 256Mi + migration: + hook: + enabled: true + resources: + requests: + cpu: 100m + memory: 128Mi From 0f761e6607c1cad122b13efae181b9bf0b5eb509 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 28 Nov 2026 12:34:48 +0500 Subject: [PATCH 32/32] stand: restrict JWT signing to Django backend and verify consumers --- apps/checklists/stand/jwt-access.yaml | 33 + apps/checklists/stand/kustomization.yaml | 2 + apps/contracts/stand/jwt-access.yaml | 39 + apps/contracts/stand/kustomization.yaml | 2 + apps/django/stand/jwt-access.yaml | 265 ++ apps/django/stand/jwt-serviceaccount.yaml | 11 + apps/django/stand/jwt/client.py | 31 + apps/django/stand/jwt/patch.py | 15 + apps/django/stand/jwt/production.py | 14 + apps/django/stand/jwt/urls.py | 64 + apps/django/stand/kustomization.yaml | 12 +- apps/django/stand/service-user-job.yaml | 9 +- apps/documentations/stand/jwt-access.yaml | 150 ++ apps/documentations/stand/kustomization.yaml | 1 + apps/eav/stand/jwt-access.yaml | 68 + apps/eav/stand/jwt/production.py | 13 + apps/eav/stand/kustomization.yaml | 9 + apps/flows/stand/jwt-access.yaml | 81 + apps/flows/stand/kustomization.yaml | 1 + apps/issues/stand/jwt-access.yaml | 173 ++ apps/issues/stand/jwt/legacy_auth.py | 13 + apps/issues/stand/jwt/production.py | 27 + apps/issues/stand/kustomization.yaml | 8 + apps/processing/stand/jwt-access.yaml | 33 + apps/processing/stand/kustomization.yaml | 1 + apps/transmittal/stand/jwt-access.yaml | 84 + apps/transmittal/stand/kustomization.yaml | 1 + ci/security/verify-jwt-vault-access.py | 141 + .../evidence/stand-jwt-celery-2026-11-28.json | 10 + .../stand-jwt-functional-2026-11-28.json | 24 + .../evidence/stand-jwt-rbac-2026-11-28.json | 2343 +++++++++++++++++ .../stand-jwt-signer-edges-2026-11-28.json | 12 + .../stand-jwt-vault-access-2026-11-28.json | 450 ++++ .../stand-jwt-vault-auth-2026-11-28.json | 42 + docs/security/jwt-vault-stand.md | 148 ++ 35 files changed, 4322 insertions(+), 8 deletions(-) create mode 100644 apps/checklists/stand/jwt-access.yaml create mode 100644 apps/contracts/stand/jwt-access.yaml create mode 100644 apps/django/stand/jwt-access.yaml create mode 100644 apps/django/stand/jwt-serviceaccount.yaml create mode 100644 apps/django/stand/jwt/client.py create mode 100644 apps/django/stand/jwt/patch.py create mode 100644 apps/django/stand/jwt/production.py create mode 100644 apps/django/stand/jwt/urls.py create mode 100644 apps/documentations/stand/jwt-access.yaml create mode 100644 apps/eav/stand/jwt-access.yaml create mode 100644 apps/eav/stand/jwt/production.py create mode 100644 apps/flows/stand/jwt-access.yaml create mode 100644 apps/issues/stand/jwt-access.yaml create mode 100644 apps/issues/stand/jwt/legacy_auth.py create mode 100644 apps/issues/stand/jwt/production.py create mode 100644 apps/processing/stand/jwt-access.yaml create mode 100644 apps/transmittal/stand/jwt-access.yaml create mode 100644 ci/security/verify-jwt-vault-access.py create mode 100644 docs/security/evidence/stand-jwt-celery-2026-11-28.json create mode 100644 docs/security/evidence/stand-jwt-functional-2026-11-28.json create mode 100644 docs/security/evidence/stand-jwt-rbac-2026-11-28.json create mode 100644 docs/security/evidence/stand-jwt-signer-edges-2026-11-28.json create mode 100644 docs/security/evidence/stand-jwt-vault-access-2026-11-28.json create mode 100644 docs/security/evidence/stand-jwt-vault-auth-2026-11-28.json create mode 100644 docs/security/jwt-vault-stand.md diff --git a/apps/checklists/stand/jwt-access.yaml b/apps/checklists/stand/jwt-access.yaml new file mode 100644 index 0000000..4cbdb00 --- /dev/null +++ b/apps/checklists/stand/jwt-access.yaml @@ -0,0 +1,33 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: checklists + namespace: checklists +spec: + values: + services: + checklists: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-checklists-jwt-public: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-checklists-jwt-public: '{{- + with secret "secrets/data/vault/common/jwt_public" -}} + + {{ index .Data.data "public_key" }} + + {{- end -}}' + deployment: + args: + _default: + - 'set -a + + [ -f /vault/secrets/checklists-db ] && . /vault/secrets/checklists-db + + [ -f /vault/secrets/checklists-jwt-public ] && export JWT_AUTH_PUBLIC_KEY="$(cat + /vault/secrets/checklists-jwt-public)" + + set +a + + exec ./entrypoint.sh + + ' diff --git a/apps/checklists/stand/kustomization.yaml b/apps/checklists/stand/kustomization.yaml index 27bb5cb..96b3229 100644 --- a/apps/checklists/stand/kustomization.yaml +++ b/apps/checklists/stand/kustomization.yaml @@ -2,3 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../base +patches: + - path: jwt-access.yaml diff --git a/apps/contracts/stand/jwt-access.yaml b/apps/contracts/stand/jwt-access.yaml new file mode 100644 index 0000000..ac61b92 --- /dev/null +++ b/apps/contracts/stand/jwt-access.yaml @@ -0,0 +1,39 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: contracts + namespace: contracts +spec: + values: + services: + contracts: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-contracts-jwt-public: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-contracts-jwt-public: '{{- with + secret "secrets/data/vault/common/jwt_public" -}} + + {{ index .Data.data "public_key" }} + + {{- end -}}' + deployment: + args: + _default: + - 'set -a + + [ -f /vault/secrets/contracts-db ] && . /vault/secrets/contracts-db + + [ -f /vault/secrets/contracts-jwt-public ] && export PUBLIC_KEY="$(cat + /vault/secrets/contracts-jwt-public)" + + [ -f /vault/secrets/contracts-rabbitmq ] && . /vault/secrets/contracts-rabbitmq + + [ -f /vault/secrets/contracts-s3 ] && . /vault/secrets/contracts-s3 + + [ -f /vault/secrets/contracts-kafka ] && . /vault/secrets/contracts-kafka + + set +a + + exec /usr/local/bin/http + + ' diff --git a/apps/contracts/stand/kustomization.yaml b/apps/contracts/stand/kustomization.yaml index 27bb5cb..96b3229 100644 --- a/apps/contracts/stand/kustomization.yaml +++ b/apps/contracts/stand/kustomization.yaml @@ -2,3 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../base +patches: + - path: jwt-access.yaml diff --git a/apps/django/stand/jwt-access.yaml b/apps/django/stand/jwt-access.yaml new file mode 100644 index 0000000..8db5eda --- /dev/null +++ b/apps/django/stand/jwt-access.yaml @@ -0,0 +1,265 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: django +spec: + values: + services: + backend: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-django-jwt-private: secrets/data/vault/apps/django/jwt_private + vault.hashicorp.com/agent-inject-secret-django-jwt-public: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-django-jwt-private: '{{- with + secret "secrets/data/vault/apps/django/jwt_private" -}} + + {{ index .Data.data "private_key" }} + + {{- end -}}' + vault.hashicorp.com/agent-inject-template-django-jwt-public: '{{- with + secret "secrets/data/vault/common/jwt_public" -}} + + {{ index .Data.data "public_key" }} + + {{- end -}}' + checksum/jwt-runtime: 58bae88d1d81ac414b2cac6ff81e0f441dc9a8f05a42d9d3d11bdfa97d38772b + vault.hashicorp.com/agent-inject-secret-jwt-signer-client: secrets/data/vault/apps/django/jwt_signer_client + vault.hashicorp.com/agent-inject-template-jwt-signer-client: '{{- with + secret "secrets/data/vault/apps/django/jwt_signer_client" -}} + + JWT_SIGNER_CLIENT_TOKEN={{ index .Data.data "token" }} + + {{- end -}}' + vault.hashicorp.com/role: django-backend + deployment: + args: + _default: + - 'set -a + + [ -f /vault/secrets/django-postgresql ] && . /vault/secrets/django-postgresql + + [ -f /vault/secrets/django-rabbitmq ] && . /vault/secrets/django-rabbitmq + + [ -f /vault/secrets/django-s3 ] && . /vault/secrets/django-s3 + + [ -f /vault/secrets/django-kafka ] && . /vault/secrets/django-kafka + + [ -f /vault/secrets/django-jwt-private ] && export JWT_PRIVATE_KEY="$(cat + /vault/secrets/django-jwt-private)" + + [ -f /vault/secrets/django-jwt-public ] && export JWT_PUBLIC_KEY="$(cat + /vault/secrets/django-jwt-public)" + + [ -f /vault/secrets/jwt-signer-client ] && . /vault/secrets/jwt-signer-client + + set +a + + exec /opt/sarex/entrypoint.sh + + ' + volumes: + _default: + - configMap: + items: + - key: production.py + path: + _default: production.py + name: + _default: django-configmap + mountPath: + _default: /jwt-config/original-production.py + name: django-configmap + readOnly: + _default: true + subPath: + _default: production.py + - configMap: + items: + - key: uwsgi.ini + path: + _default: uwsgi.ini + name: + _default: uwsgi-configmap + mountPath: + _default: /opt/sarex/uwsgi.ini + name: uwsgi-configmap + readOnly: + _default: true + subPath: + _default: uwsgi.ini + - name: jwt-runtime-production + mountPath: + _default: /opt/sarex/config/settings/production.py + subPath: + _default: production.py + readOnly: + _default: true + configMap: + name: + _default: jwt-runtime + items: + - key: production.py + path: + _default: production.py + - name: jwt-runtime-client + mountPath: + _default: /opt/sarex/config/jwt_signer_client.py + subPath: + _default: client.py + readOnly: + _default: true + configMap: + name: + _default: jwt-runtime + items: + - key: client.py + path: + _default: client.py + - name: jwt-runtime-urls + mountPath: + _default: /opt/sarex/config/jwt_signer_urls.py + subPath: + _default: urls.py + readOnly: + _default: true + configMap: + name: + _default: jwt-runtime + items: + - key: urls.py + path: + _default: urls.py + postRenderers: + - kustomize: + patches: + - target: + group: apps + version: v1 + kind: Deployment + name: backend + patch: "- op: add\n path: /spec/template/spec/serviceAccountName\n value:\ + \ django-backend-vault\n- op: add\n path: /spec/template/spec/containers/0/env/-\n\ + \ value:\n name: JWT_SIGNER_MODE\n value: server\n" +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: django +spec: + values: + services: + celery: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-django-jwt-private: null + vault.hashicorp.com/agent-inject-secret-django-jwt-public: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-django-jwt-private: null + vault.hashicorp.com/agent-inject-template-django-jwt-public: '{{- with + secret "secrets/data/vault/common/jwt_public" -}} + + {{ index .Data.data "public_key" }} + + {{- end -}}' + checksum/jwt-runtime: 58bae88d1d81ac414b2cac6ff81e0f441dc9a8f05a42d9d3d11bdfa97d38772b + vault.hashicorp.com/agent-inject-secret-jwt-signer-client: secrets/data/vault/apps/django/jwt_signer_client + vault.hashicorp.com/agent-inject-template-jwt-signer-client: '{{- with + secret "secrets/data/vault/apps/django/jwt_signer_client" -}} + + JWT_SIGNER_CLIENT_TOKEN={{ index .Data.data "token" }} + + {{- end -}}' + vault.hashicorp.com/role: django-celery + deployment: + args: + _default: + - 'set -a + + [ -f /vault/secrets/django-postgresql ] && . /vault/secrets/django-postgresql + + [ -f /vault/secrets/django-rabbitmq ] && . /vault/secrets/django-rabbitmq + + [ -f /vault/secrets/django-s3 ] && . /vault/secrets/django-s3 + + [ -f /vault/secrets/django-kafka ] && . /vault/secrets/django-kafka + + [ -f /vault/secrets/django-jwt-public ] && export JWT_PUBLIC_KEY="$(cat + /vault/secrets/django-jwt-public)" + + [ -f /vault/secrets/jwt-signer-client ] && . /vault/secrets/jwt-signer-client + + set +a + + exec celery -A config worker -B -l info -E -Q default -n default_worker.%h + --concurrency=2 + + ' + volumes: + _default: + - configMap: + items: + - key: production.py + path: + _default: production.py + name: + _default: django-configmap + mountPath: + _default: /jwt-config/original-production.py + name: django-configmap + readOnly: + _default: true + subPath: + _default: production.py + - name: jwt-runtime-production + mountPath: + _default: /opt/sarex/config/settings/production.py + subPath: + _default: production.py + readOnly: + _default: true + configMap: + name: + _default: jwt-runtime + items: + - key: production.py + path: + _default: production.py + - name: jwt-runtime-client + mountPath: + _default: /opt/sarex/config/jwt_signer_client.py + subPath: + _default: client.py + readOnly: + _default: true + configMap: + name: + _default: jwt-runtime + items: + - key: client.py + path: + _default: client.py + postRenderers: + - kustomize: + patches: + - target: + group: apps + version: v1 + kind: Deployment + name: celery + patch: "- op: add\n path: /spec/template/spec/volumes/-\n value:\n name:\ + \ jwt-runtime-patch\n configMap:\n name: jwt-runtime\n- op: add\n\ + \ path: /spec/template/spec/initContainers\n value:\n - name: jwt-delegation-code\n\ + \ image: cr.yandex/crp3ccidau046kdj8g9q/backend:production_18e5ac1e\n\ + \ command:\n - python\n - /jwt-source/patch.py\n volumeMounts:\n\ + \ - name: jwt-runtime-patch\n mountPath: /jwt-source\n readOnly:\ + \ true\n - name: jwt-patched\n mountPath: /jwt-patched\n resources:\n\ + \ requests:\n cpu: 25m\n memory: 64Mi\n- op: add\n path:\ + \ /spec/template/spec/volumes/-\n value:\n name: jwt-patched\n emptyDir:\ + \ {}\n- op: add\n path: /spec/template/spec/containers/0/volumeMounts/-\n\ + \ value:\n name: jwt-patched\n mountPath: /opt/sarex/sarex/base/tasks.py\n\ + \ subPath: tasks.py\n readOnly: true\n- op: add\n path: /spec/template/spec/containers/0/volumeMounts/-\n\ + \ value:\n name: jwt-patched\n mountPath: /opt/sarex/sarex/services/mixin.py\n\ + \ subPath: mixin.py\n readOnly: true\n- op: add\n path: /spec/template/spec/containers/0/env/-\n\ + \ value:\n name: JWT_SIGNER_URL\n value: http://backend-svc.django.svc.cluster.local:80/internal/jwt/access-token/\n\ + - op: add\n path: /spec/template/spec/serviceAccountName\n value: django-celery-vault\n" diff --git a/apps/django/stand/jwt-serviceaccount.yaml b/apps/django/stand/jwt-serviceaccount.yaml new file mode 100644 index 0000000..413d815 --- /dev/null +++ b/apps/django/stand/jwt-serviceaccount.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: django-backend-vault + namespace: django +--- +apiVersion: v1 +kind: ServiceAccount +metadata: + name: django-celery-vault + namespace: django diff --git a/apps/django/stand/jwt/client.py b/apps/django/stand/jwt/client.py new file mode 100644 index 0000000..54d04ef --- /dev/null +++ b/apps/django/stand/jwt/client.py @@ -0,0 +1,31 @@ +import json +import os +import time +from urllib.error import HTTPError, URLError +from urllib.request import Request, urlopen + + +def issue_access_token(user_id): + endpoint = os.environ["JWT_SIGNER_URL"] + credential = os.environ["JWT_SIGNER_CLIENT_TOKEN"] + request = Request( + endpoint, + data=json.dumps({"user_id": int(user_id)}).encode(), + headers={"Authorization": "Bearer " + credential, "Content-Type": "application/json"}, + method="POST", + ) + for attempt in range(3): + try: + with urlopen(request, timeout=5) as response: + payload = json.load(response) + token = payload.get("access") + if not isinstance(token, str) or not token: + raise RuntimeError("JWT signer returned an invalid response") + return token + except HTTPError as error: + if error.code < 500 or attempt == 2: + raise RuntimeError("JWT signer rejected the request: HTTP %d" % error.code) from None + except URLError: + if attempt == 2: + raise RuntimeError("JWT signer is unavailable") from None + time.sleep(attempt + 1) diff --git a/apps/django/stand/jwt/patch.py b/apps/django/stand/jwt/patch.py new file mode 100644 index 0000000..1699d32 --- /dev/null +++ b/apps/django/stand/jwt/patch.py @@ -0,0 +1,15 @@ +from pathlib import Path + +cases = [ + ("/opt/sarex/sarex/base/tasks.py", "tasks.py", "str(TokenObtainPairSerializer.get_token(user).access_token)", 2), + ("/opt/sarex/sarex/services/mixin.py", "mixin.py", "str(CustomRefreshToken.for_user(user).access_token)", 1), +] +for source, destination, expression, expected in cases: + original = Path(source).read_text() + if original.count(expression) != expected: + raise RuntimeError("JWT delegation patch does not match the application image: " + source) + modified = "from config.jwt_signer_client import issue_access_token\n" + original.replace( + expression, "issue_access_token(user.id)" + ) + compile(modified, source, "exec") + Path("/jwt-patched", destination).write_text(modified) diff --git a/apps/django/stand/jwt/production.py b/apps/django/stand/jwt/production.py new file mode 100644 index 0000000..f11821f --- /dev/null +++ b/apps/django/stand/jwt/production.py @@ -0,0 +1,14 @@ +import os as _jwt_os + +_jwt_has_private = bool(_jwt_os.environ.get("JWT_PRIVATE_KEY")) +if not _jwt_has_private: + _jwt_os.environ["JWT_PRIVATE_KEY"] = "" +with open("/jwt-config/original-production.py") as _jwt_source: + exec(compile(_jwt_source.read(), "/jwt-config/original-production.py", "exec"), globals()) +if not _jwt_has_private: + _jwt_os.environ.pop("JWT_PRIVATE_KEY", None) + SIMPLE_JWT["SIGNING_KEY"] = "" +if _jwt_os.environ.get("JWT_SIGNER_MODE") == "server": + ROOT_URLCONF = "config.jwt_signer_urls" + DEBUG = False +del _jwt_has_private, _jwt_source diff --git a/apps/django/stand/jwt/urls.py b/apps/django/stand/jwt/urls.py new file mode 100644 index 0000000..006cece --- /dev/null +++ b/apps/django/stand/jwt/urls.py @@ -0,0 +1,64 @@ +import hmac +import json +import os + +from django.contrib.auth import get_user_model +from django.http import JsonResponse +from django.urls import path +from django.views.decorators.csrf import csrf_exempt +from django.views.decorators.debug import sensitive_variables + +from config import urls as original_urls +from sarex.core.serializers.token import CustomTokenSerializer + + +@csrf_exempt +@sensitive_variables("credential", "supplied", "token") +def issue_access_token(request): + if request.method != "POST": + return JsonResponse({"detail": "Method not allowed"}, status=405) + credential = os.environ.get("JWT_SIGNER_CLIENT_TOKEN", "") + supplied = request.headers.get("Authorization", "") + if not credential or not hmac.compare_digest(supplied.encode(), ("Bearer " + credential).encode()): + return JsonResponse({"detail": "Unauthorized"}, status=401) + if len(request.body) > 1024: + return JsonResponse({"detail": "Invalid request"}, status=400) + try: + value = json.loads(request.body) + user_id = value["user_id"] + if isinstance(user_id, bool) or not isinstance(user_id, int) or not 0 < user_id <= 9223372036854775807: + raise ValueError() + except (ValueError, TypeError, KeyError): + return JsonResponse({"detail": "Invalid request"}, status=400) + user = get_user_model().objects.filter(pk=user_id, is_active=True).first() + if user is None: + return JsonResponse({"detail": "User not found"}, status=404) + token = str(CustomTokenSerializer.get_token(user).access_token) + return JsonResponse({"access": token}, headers={"Cache-Control": "no-store"}) + + +@sensitive_variables("credential", "token") +def issue_legacy_access_token(request, pk): + credential = os.environ.get("JWT_SIGNER_CLIENT_TOKEN", "") + if not credential or not hmac.compare_digest( + request.headers.get("Authorization", "").encode(), ("Bearer " + credential).encode() + ): + return JsonResponse({"detail": "Unauthorized"}, status=401) + if request.method != "GET": + return JsonResponse({"detail": "Method not allowed"}, status=405) + if not 0 < pk <= 9223372036854775807: + return JsonResponse({"detail": "Invalid request"}, status=400) + user = get_user_model().objects.filter(pk=pk, is_active=True).first() + if user is None: + return JsonResponse({"detail": "User not found"}, status=404) + token = str(CustomTokenSerializer.get_token(user).access_token) + return JsonResponse(token, safe=False, headers={"Cache-Control": "no-store"}) + + +urlpatterns = [ + path("internal/jwt/access-token/", issue_access_token), + path("internal/client/token//", issue_legacy_access_token), +] + original_urls.urlpatterns +for name in ("handler400", "handler403", "handler404", "handler500"): + if hasattr(original_urls, name): + globals()[name] = getattr(original_urls, name) diff --git a/apps/django/stand/kustomization.yaml b/apps/django/stand/kustomization.yaml index 93a3fe2..4909381 100644 --- a/apps/django/stand/kustomization.yaml +++ b/apps/django/stand/kustomization.yaml @@ -2,9 +2,10 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../base + - jwt-serviceaccount.yaml - export-project.yaml - - service-user-job.yaml patches: + - path: jwt-access.yaml - path: backend.yaml - path: celery.yaml - path: s3-proxy.yaml @@ -27,6 +28,15 @@ patches: value: _default: https://sarex.${CONTOUR_DOMAIN} configMapGenerator: + - name: jwt-runtime + namespace: django + files: + - production.py=jwt/production.py + - client.py=jwt/client.py + - urls.py=jwt/urls.py + - patch.py=jwt/patch.py + options: + disableNameSuffixHash: true - name: django-contour-env literals: - SAREX_HOST=https://sarex.${CONTOUR_DOMAIN} diff --git a/apps/django/stand/service-user-job.yaml b/apps/django/stand/service-user-job.yaml index 10fc86d..94dca70 100644 --- a/apps/django/stand/service-user-job.yaml +++ b/apps/django/stand/service-user-job.yaml @@ -25,14 +25,9 @@ spec: DJANGO_POSTGRES_USER={{ index .Data.data "username" }} DJANGO_POSTGRES_PASSWORD={{ index .Data.data "password" }} {{- end -}} - vault.hashicorp.com/agent-inject-secret-django-jwt-private: secrets/data/vault/common/rsa_keys - vault.hashicorp.com/agent-inject-template-django-jwt-private: |- - {{- with secret "secrets/data/vault/common/rsa_keys" -}} - {{ index .Data.data "private_key" }} - {{- end -}} - vault.hashicorp.com/agent-inject-secret-django-jwt-public: secrets/data/vault/common/rsa_keys + vault.hashicorp.com/agent-inject-secret-django-jwt-public: secrets/data/vault/common/jwt_public vault.hashicorp.com/agent-inject-template-django-jwt-public: |- - {{- with secret "secrets/data/vault/common/rsa_keys" -}} + {{- with secret "secrets/data/vault/common/jwt_public" -}} {{ index .Data.data "public_key" }} {{- end -}} vault.hashicorp.com/agent-inject-secret-service-user: secrets/data/vault/common/django_auth diff --git a/apps/documentations/stand/jwt-access.yaml b/apps/documentations/stand/jwt-access.yaml new file mode 100644 index 0000000..118ef08 --- /dev/null +++ b/apps/documentations/stand/jwt-access.yaml @@ -0,0 +1,150 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cde-api + namespace: documentations +spec: + values: + services: + cde-api: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-cde-api-public-key: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-cde-api-public-key: '{{- with + secret "secrets/data/vault/common/jwt_public" -}} + + {{ index .Data.data "public_key" }} + + {{- end -}}' + deployment: + args: + _default: + - 'set -a + + . /vault/secrets/cde-api-db + + . /vault/secrets/cde-api-s3 + + . /vault/secrets/cde-api-zeebe + + . /vault/secrets/cde-api-rabbitmq + + . /vault/secrets/cde-api-users + + CDE_API_PUBLIC_KEY="$(cat /vault/secrets/cde-api-public-key)" + + set +a + + exec /opt/main + + ' +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: documentations-api + namespace: documentations +spec: + values: + services: + backend: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-documentations-rsa-public: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-documentations-rsa-public: '{{- + with secret "secrets/data/vault/common/jwt_public" -}} + + {{ index .Data.data "public_key" }} + + {{- end -}}' + deployment: + args: + _default: + - 'set -a + + [ -f /vault/secrets/documentations-postgresql ] && . /vault/secrets/documentations-postgresql + + [ -f /vault/secrets/documentations-common ] && . /vault/secrets/documentations-common + + [ -f /vault/secrets/documentations-marks-rabbitmq ] && . /vault/secrets/documentations-marks-rabbitmq + + [ -f /vault/secrets/documentations-rsa-public ] && export PUBLIC_KEY="$(cat + /vault/secrets/documentations-rsa-public)" + + set +a + + exec /app/entrypoint.sh + + ' +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: documentations-filestream + namespace: documentations +spec: + values: + services: + backend: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-documentations-rsa-public: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-documentations-rsa-public: '{{- + with secret "secrets/data/vault/common/jwt_public" -}} + + {{ index .Data.data "public_key" }} + + {{- end -}}' + deployment: + args: + _default: + - 'set -a + + [ -f /vault/secrets/documentations-postgresql ] && . /vault/secrets/documentations-postgresql + + [ -f /vault/secrets/documentations-common ] && . /vault/secrets/documentations-common + + [ -f /vault/secrets/documentations-rsa-public ] && export PUBLIC_KEY="$(cat + /vault/secrets/documentations-rsa-public)" + + set +a + + exec /app/file_entrypoint.sh + + ' +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: pdm-api + namespace: documentations +spec: + values: + services: + backend: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-documentations-rsa-public: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-documentations-rsa-public: '{{- + with secret "secrets/data/vault/common/jwt_public" -}} + + {{ index .Data.data "public_key" }} + + {{- end -}}' + deployment: + args: + _default: + - 'set -a + + [ -f /vault/secrets/documentations-postgresql ] && . /vault/secrets/documentations-postgresql + + [ -f /vault/secrets/documentations-common ] && . /vault/secrets/documentations-common + + [ -f /vault/secrets/documentations-rsa-public ] && export PUBLIC_KEY="$(cat + /vault/secrets/documentations-rsa-public)" + + set +a + + exec ./httpserver + + ' diff --git a/apps/documentations/stand/kustomization.yaml b/apps/documentations/stand/kustomization.yaml index 7edd956..94040b1 100644 --- a/apps/documentations/stand/kustomization.yaml +++ b/apps/documentations/stand/kustomization.yaml @@ -4,6 +4,7 @@ resources: - ../base - cde-api patches: + - path: jwt-access.yaml - path: api.yaml - path: cde-api-integration.yaml - path: filestream.yaml diff --git a/apps/eav/stand/jwt-access.yaml b/apps/eav/stand/jwt-access.yaml new file mode 100644 index 0000000..8bce6a0 --- /dev/null +++ b/apps/eav/stand/jwt-access.yaml @@ -0,0 +1,68 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: eav +spec: + values: + services: + backend: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-eav-jwt-private: null + vault.hashicorp.com/agent-inject-secret-eav-jwt-public: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-eav-jwt-private: null + vault.hashicorp.com/agent-inject-template-eav-jwt-public: '{{- with secret + "secrets/data/vault/common/jwt_public" -}} + + {{ index .Data.data "public_key" }} + + {{- end -}}' + checksum/jwt-runtime: e0960a7201af6acef03562faf53a36d9880a2724c954a752b416b886bb249e79 + deployment: + args: + _default: + - 'set -a + + [ -f /vault/secrets/eav-db ] && . /vault/secrets/eav-db + + [ -f /vault/secrets/eav-s3 ] && . /vault/secrets/eav-s3 + + [ -f /vault/secrets/eav-jwt-public ] && export JWT_PUBLIC_KEY="$(cat + /vault/secrets/eav-jwt-public)" + + set +a + + exec /server/entrypoint.sh + + ' + volumes: + _default: + - configMap: + items: + - key: production.py + path: + _default: production.py + name: + _default: django-configmap + mountPath: + _default: /jwt-config/original-production.py + name: django-configmap + readOnly: + _default: true + subPath: + _default: production.py + - name: jwt-runtime-production + mountPath: + _default: /server/config/settings/production.py + subPath: + _default: production.py + readOnly: + _default: true + configMap: + name: + _default: jwt-runtime + items: + - key: production.py + path: + _default: production.py diff --git a/apps/eav/stand/jwt/production.py b/apps/eav/stand/jwt/production.py new file mode 100644 index 0000000..aa43274 --- /dev/null +++ b/apps/eav/stand/jwt/production.py @@ -0,0 +1,13 @@ +import os as _jwt_os + +_jwt_has_private = bool(_jwt_os.environ.get("JWT_PRIVATE_KEY")) +if not _jwt_has_private: + _jwt_os.environ["JWT_PRIVATE_KEY"] = "" +with open("/jwt-config/original-production.py") as _jwt_source: + exec(compile(_jwt_source.read(), "/jwt-config/original-production.py", "exec"), globals()) +if not _jwt_has_private: + _jwt_os.environ.pop("JWT_PRIVATE_KEY", None) + SIMPLE_JWT["SIGNING_KEY"] = "" +if _jwt_os.environ.get("JWT_SIGNER_MODE") == "server": + ROOT_URLCONF = "config.jwt_signer_urls" +del _jwt_has_private, _jwt_source diff --git a/apps/eav/stand/kustomization.yaml b/apps/eav/stand/kustomization.yaml index 27bb5cb..79a227b 100644 --- a/apps/eav/stand/kustomization.yaml +++ b/apps/eav/stand/kustomization.yaml @@ -2,3 +2,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../base +patches: + - path: jwt-access.yaml +configMapGenerator: + - name: jwt-runtime + namespace: eav + files: + - production.py=jwt/production.py + options: + disableNameSuffixHash: true diff --git a/apps/flows/stand/jwt-access.yaml b/apps/flows/stand/jwt-access.yaml new file mode 100644 index 0000000..87c9d6c --- /dev/null +++ b/apps/flows/stand/jwt-access.yaml @@ -0,0 +1,81 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: flows +spec: + values: + services: + backend: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-flows-jwt-public: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-flows-jwt-public: '{{- with + secret "secrets/data/vault/common/jwt_public" -}} + + {{ index .Data.data "public_key" }} + + {{- end -}}' + deployment: + args: + _default: + - 'set -a + + [ -f /vault/secrets/flows-postgresql ] && . /vault/secrets/flows-postgresql + + [ -f /vault/secrets/flows-documentations-db ] && . /vault/secrets/flows-documentations-db + + [ -f /vault/secrets/flows-rabbitmq ] && . /vault/secrets/flows-rabbitmq + + [ -f /vault/secrets/flows-django-auth ] && . /vault/secrets/flows-django-auth + + [ -f /vault/secrets/flows-kafka ] && . /vault/secrets/flows-kafka + + [ -f /vault/secrets/flows-jwt-public ] && export JWT_PUBLIC_KEY="$(cat + /vault/secrets/flows-jwt-public)" + + set +a + + exec /opt/entrypoint.sh + + ' +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: flows +spec: + values: + services: + celery: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-flows-jwt-public: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-flows-jwt-public: '{{- with + secret "secrets/data/vault/common/jwt_public" -}} + + {{ index .Data.data "public_key" }} + + {{- end -}}' + deployment: + args: + _default: + - 'set -a + + [ -f /vault/secrets/flows-postgresql ] && . /vault/secrets/flows-postgresql + + [ -f /vault/secrets/flows-documentations-db ] && . /vault/secrets/flows-documentations-db + + [ -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 + + ' diff --git a/apps/flows/stand/kustomization.yaml b/apps/flows/stand/kustomization.yaml index bdda41c..90ff30b 100644 --- a/apps/flows/stand/kustomization.yaml +++ b/apps/flows/stand/kustomization.yaml @@ -3,6 +3,7 @@ kind: Kustomization resources: - ../base patches: + - path: jwt-access.yaml - path: backend.yaml configMapGenerator: - name: flows-contour-env diff --git a/apps/issues/stand/jwt-access.yaml b/apps/issues/stand/jwt-access.yaml new file mode 100644 index 0000000..ace5b69 --- /dev/null +++ b/apps/issues/stand/jwt-access.yaml @@ -0,0 +1,173 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: issues +spec: + values: + services: + backend: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-issues-jwt-private: null + vault.hashicorp.com/agent-inject-secret-issues-jwt-public: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-issues-jwt-private: null + vault.hashicorp.com/agent-inject-template-issues-jwt-public: '{{- with + secret "secrets/data/vault/common/jwt_public" -}} + + {{ index .Data.data "public_key" }} + + {{- end -}}' + checksum/jwt-runtime: bcaa607c06a7f91528e766be4817c96a51a1175ec862fd7b43ee0a4e96f90e6d + deployment: + 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-public ] && export JWT_PUBLIC_KEY="$(cat + /vault/secrets/issues-jwt-public)" + + set +a + + exec /src/entrypoint.sh + + ' + volumes: + _default: + - configMap: + items: + - key: production.py + path: + _default: production.py + name: + _default: production-configmap + mountPath: + _default: /jwt-config/original-production.py + name: production-configmap + readOnly: + _default: true + subPath: + _default: production.py + - name: jwt-runtime-production + mountPath: + _default: /src/config/settings/production.py + subPath: + _default: production.py + readOnly: + _default: true + configMap: + name: + _default: jwt-runtime + items: + - key: production.py + path: + _default: production.py + - name: jwt-runtime-auth + mountPath: + _default: /src/config/jwt_legacy_auth.py + subPath: + _default: legacy_auth.py + readOnly: + _default: true + configMap: + name: + _default: jwt-runtime + items: + - key: legacy_auth.py + path: + _default: legacy_auth.py +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: celery + namespace: issues +spec: + values: + services: + celery: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-issues-jwt-private: null + vault.hashicorp.com/agent-inject-secret-issues-jwt-public: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-issues-jwt-private: null + vault.hashicorp.com/agent-inject-template-issues-jwt-public: '{{- with + secret "secrets/data/vault/common/jwt_public" -}} + + {{ index .Data.data "public_key" }} + + {{- end -}}' + checksum/jwt-runtime: bcaa607c06a7f91528e766be4817c96a51a1175ec862fd7b43ee0a4e96f90e6d + deployment: + 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-public ] && export JWT_PUBLIC_KEY="$(cat + /vault/secrets/issues-jwt-public)" + + set +a + + exec celery -A config worker -l info -E + + ' + volumes: + _default: + - configMap: + items: + - key: production.py + path: + _default: production.py + name: + _default: production-configmap + mountPath: + _default: /jwt-config/original-production.py + name: production-configmap + readOnly: + _default: true + subPath: + _default: production.py + - name: jwt-runtime-production + mountPath: + _default: /src/config/settings/production.py + subPath: + _default: production.py + readOnly: + _default: true + configMap: + name: + _default: jwt-runtime + items: + - key: production.py + path: + _default: production.py + - name: jwt-runtime-auth + mountPath: + _default: /src/config/jwt_legacy_auth.py + subPath: + _default: legacy_auth.py + readOnly: + _default: true + configMap: + name: + _default: jwt-runtime + items: + - key: legacy_auth.py + path: + _default: legacy_auth.py diff --git a/apps/issues/stand/jwt/legacy_auth.py b/apps/issues/stand/jwt/legacy_auth.py new file mode 100644 index 0000000..7ba6355 --- /dev/null +++ b/apps/issues/stand/jwt/legacy_auth.py @@ -0,0 +1,13 @@ +from rest_framework_simplejwt.exceptions import InvalidToken, TokenError +from rest_framework_simplejwt.tokens import AccessToken + +from core.auth import JWTStatelessUserAuthentication as OriginalAuthentication + + +class VerifiedJWTStatelessUserAuthentication(OriginalAuthentication): + def get_validated_token(self, raw_token): + try: + AccessToken(raw_token, verify=True) + except TokenError: + raise InvalidToken("Invalid or expired access token") from None + return super().get_validated_token(raw_token) diff --git a/apps/issues/stand/jwt/production.py b/apps/issues/stand/jwt/production.py new file mode 100644 index 0000000..9157f96 --- /dev/null +++ b/apps/issues/stand/jwt/production.py @@ -0,0 +1,27 @@ +import os as _jwt_os +from pathlib import Path as _JwtPath + + +def _read_secret_file(path): + try: + return _JwtPath(path).read_text().strip() + except FileNotFoundError: + return "" + +_jwt_has_private = bool(_jwt_os.environ.get("JWT_PRIVATE_KEY")) +if not _jwt_has_private: + _jwt_os.environ["JWT_PRIVATE_KEY"] = "" +with open("/jwt-config/original-production.py") as _jwt_source: + exec(compile(_jwt_source.read(), "/jwt-config/original-production.py", "exec"), globals()) +if not _jwt_has_private: + _jwt_os.environ.pop("JWT_PRIVATE_KEY", None) + SIMPLE_JWT["SIGNING_KEY"] = "" +if _jwt_os.environ.get("JWT_SIGNER_MODE") == "server": + ROOT_URLCONF = "config.jwt_signer_urls" +del _jwt_has_private, _jwt_source + +REST_FRAMEWORK["DEFAULT_AUTHENTICATION_CLASSES"] = [ + "config.jwt_legacy_auth.VerifiedJWTStatelessUserAuthentication" + if name == "core.auth.JWTStatelessUserAuthentication" else name + for name in REST_FRAMEWORK["DEFAULT_AUTHENTICATION_CLASSES"] +] diff --git a/apps/issues/stand/kustomization.yaml b/apps/issues/stand/kustomization.yaml index 60f4a2f..b0a859e 100644 --- a/apps/issues/stand/kustomization.yaml +++ b/apps/issues/stand/kustomization.yaml @@ -3,9 +3,17 @@ kind: Kustomization resources: - ../base patches: + - path: jwt-access.yaml - path: backend.yaml - path: celery.yaml configMapGenerator: + - name: jwt-runtime + namespace: issues + files: + - production.py=jwt/production.py + - legacy_auth.py=jwt/legacy_auth.py + options: + disableNameSuffixHash: true - name: issues-contour-env literals: - AERO_PUBLIC_HOST=https://sarex.${CONTOUR_DOMAIN} diff --git a/apps/processing/stand/jwt-access.yaml b/apps/processing/stand/jwt-access.yaml new file mode 100644 index 0000000..fd5a47a --- /dev/null +++ b/apps/processing/stand/jwt-access.yaml @@ -0,0 +1,33 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: workflows-api + namespace: processing +spec: + values: + services: + backend: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-processing-jwt-public: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-processing-jwt-public: '{{- + with secret "secrets/data/vault/common/jwt_public" -}} + + {{ index .Data.data "public_key" }} + + {{- end -}}' + deployment: + args: + _default: + - 'set -a + + [ -f /vault/secrets/processing-postgresql ] && . /vault/secrets/processing-postgresql + + [ -f /vault/secrets/processing-jwt-public ] && export PUBLIC_KEY="$(cat + /vault/secrets/processing-jwt-public)" + + set +a + + exec /httpserver migrate + + ' diff --git a/apps/processing/stand/kustomization.yaml b/apps/processing/stand/kustomization.yaml index 3807c08..0eecf56 100644 --- a/apps/processing/stand/kustomization.yaml +++ b/apps/processing/stand/kustomization.yaml @@ -3,6 +3,7 @@ kind: Kustomization resources: - ../base patches: + - path: jwt-access.yaml - path: engine.yaml - path: engine-low.yaml configMapGenerator: diff --git a/apps/transmittal/stand/jwt-access.yaml b/apps/transmittal/stand/jwt-access.yaml new file mode 100644 index 0000000..ad41a7d --- /dev/null +++ b/apps/transmittal/stand/jwt-access.yaml @@ -0,0 +1,84 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: transmittal +spec: + values: + services: + backend: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-transmittal-public-key: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-transmittal-public-key: '{{- + with secret "secrets/data/vault/common/jwt_public" -}} + + TRANSMITTAL_SERVICE_AUTH__PUBLIC_KEY={{ printf "%q" (index .Data.data + "public_key") }} + + {{- end -}}' + deployment: + args: + _default: + - 'set -a + + [ -f /vault/secrets/transmittal-db ] && . /vault/secrets/transmittal-db + + [ -f /vault/secrets/transmittal-rabbitmq ] && . /vault/secrets/transmittal-rabbitmq + + [ -f /vault/secrets/transmittal-s3 ] && . /vault/secrets/transmittal-s3 + + [ -f /vault/secrets/transmittal-django-auth ] && . /vault/secrets/transmittal-django-auth + + [ -f /vault/secrets/transmittal-public-key ] && . /vault/secrets/transmittal-public-key + + [ -f /vault/secrets/transmittal-mailgun ] && . /vault/secrets/transmittal-mailgun + + set +a + + exec scripts/entrypoint.sh + + ' +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: worker + namespace: transmittal +spec: + values: + services: + worker: + podAnnotations: + _default: + vault.hashicorp.com/agent-inject-secret-transmittal-public-key: secrets/data/vault/common/jwt_public + vault.hashicorp.com/agent-inject-template-transmittal-public-key: '{{- + with secret "secrets/data/vault/common/jwt_public" -}} + + TRANSMITTAL_SERVICE_AUTH__PUBLIC_KEY={{ printf "%q" (index .Data.data + "public_key") }} + + {{- end -}}' + deployment: + args: + _default: + - 'set -a + + [ -f /vault/secrets/transmittal-db ] && . /vault/secrets/transmittal-db + + [ -f /vault/secrets/transmittal-rabbitmq ] && . /vault/secrets/transmittal-rabbitmq + + [ -f /vault/secrets/transmittal-s3 ] && . /vault/secrets/transmittal-s3 + + [ -f /vault/secrets/transmittal-django-auth ] && . /vault/secrets/transmittal-django-auth + + [ -f /vault/secrets/transmittal-public-key ] && . /vault/secrets/transmittal-public-key + + [ -f /vault/secrets/transmittal-mailgun ] && . /vault/secrets/transmittal-mailgun + + set +a + + exec taskiq worker --no-parse transmittal_service.tasks.broker:broker + transmittal_service.tasks.transmittal.tasks transmittal_service.tasks.email.tasks + + ' diff --git a/apps/transmittal/stand/kustomization.yaml b/apps/transmittal/stand/kustomization.yaml index 7492b81..1a5c025 100644 --- a/apps/transmittal/stand/kustomization.yaml +++ b/apps/transmittal/stand/kustomization.yaml @@ -3,6 +3,7 @@ kind: Kustomization resources: - ../base patches: + - path: jwt-access.yaml - target: kind: HelmRelease name: worker diff --git a/ci/security/verify-jwt-vault-access.py b/ci/security/verify-jwt-vault-access.py new file mode 100644 index 0000000..c2159d6 --- /dev/null +++ b/ci/security/verify-jwt-vault-access.py @@ -0,0 +1,141 @@ +#!/usr/bin/env python3 +"""Verify application JWT key isolation using real Kubernetes and Vault identities. + +Creates short-lived ServiceAccount tokens and revokes every test Vault token. +Never prints credentials, secret values, or JWTs. Requires kubectl and the Vault +CLI in the selected Vault pod; it does not apply or modify application manifests. +""" +import argparse +import concurrent.futures +import json +import subprocess +from pathlib import Path + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--kubeconfig", required=True) + parser.add_argument("--context") + parser.add_argument("--vault-namespace", default="vault") + parser.add_argument("--vault-pod", default="vault-vault-contour-0") + parser.add_argument("--vault-container", default="vault") + parser.add_argument("--backend-role", default="django-backend") + parser.add_argument("--backend-namespace", default="django") + parser.add_argument("--backend-service-account", default="django-backend-vault") + parser.add_argument("--celery-role", default="django-celery") + parser.add_argument("--output", type=Path) + args = parser.parse_args() + kube = ["kubectl", "--kubeconfig", args.kubeconfig, "--request-timeout=30s"] + if args.context: + kube += ["--context", args.context] + vault = kube + ["-n", args.vault_namespace, "exec", "-i", args.vault_pod, + "-c", args.vault_container, "--", "sh", "-ec"] + + def execute(command, payload=None): + return subprocess.run(command, input=payload, capture_output=True, text=True, timeout=90) + + def login(jwt, role): + result = execute(vault + [ + "export VAULT_ADDR=http://127.0.0.1:8200; " + "exec vault write -format=json auth/kubernetes/login -" + ], json.dumps({"role": role, "jwt": jwt})) + if result.returncode: + return None, 403 if "Code: 403" in result.stderr else "error" + return json.loads(result.stdout)["auth"]["client_token"], 200 + + def authorized(token, command): + return execute(vault + [ + "IFS= read -r VAULT_TOKEN; export VAULT_TOKEN; " + "export VAULT_ADDR=http://127.0.0.1:8200; " + command + ], token + "\n") + + def read_status(token, command): + result = authorized(token, command) + return 200 if result.returncode == 0 else 403 if "Code: 403" in result.stderr else "error" + + def check(identity): + namespace, account, role = identity + row = {"namespace": namespace, "service_account": account, "role": role} + token = None + try: + result = execute(kube + ["-n", namespace, "create", "token", account, "--duration=10m"]) + if result.returncode: + row["error"] = "TokenRequest failed" + return row + service_jwt = result.stdout.strip() + token, row["login"] = login(service_jwt, role) + if not token: + return row + paths = { + "public": "vault/common/jwt_public", + "private": "vault/apps/django/jwt_private", + "legacy": "vault/common/rsa_keys", + "signer_client": "vault/apps/django/jwt_signer_client", + } + for label, path in paths.items(): + row[label] = read_status(token, "exec vault read -format=json secrets/data/" + path) + row["legacy_version_1"] = read_status( + token, "exec vault kv get -mount=secrets -version=1 -format=json vault/common/rsa_keys") + expected_backend = (namespace, account, role) == ( + args.backend_namespace, args.backend_service_account, args.backend_role) + if not expected_backend: + other, row["backend_role_impersonation"] = login(service_jwt, args.backend_role) + if other: + authorized(other, "exec vault token revoke -self") + except Exception as error: + # Exception messages can include credentials or server responses. + row["error"] = type(error).__name__ + finally: + if token: + authorized(token, "exec vault token revoke -self") + return row + + result = execute(kube + ["get", "deployments", "-A", "-o", "json"]) + if result.returncode: + raise SystemExit("Cannot list deployments in the selected cluster") + identities = set() + public_identities = set() + for deployment in json.loads(result.stdout)["items"]: + template = deployment["spec"]["template"] + role = template["metadata"].get("annotations", {}).get("vault.hashicorp.com/role") + if role: + identity = (deployment["metadata"]["namespace"], + template["spec"].get("serviceAccountName", "default"), role) + identities.add(identity) + if any("vault/common/jwt_public" in str(value) for key, value in + template["metadata"].get("annotations", {}).items() + if "agent-inject-secret" in key): + public_identities.add(identity) + with concurrent.futures.ThreadPoolExecutor(max_workers=4) as executor: + rows = list(executor.map(check, sorted(identities))) + failures = [] + for row in rows: + backend = (row["namespace"], row["service_account"], row["role"]) == ( + args.backend_namespace, args.backend_service_account, args.backend_role) + signer = row["namespace"] == args.backend_namespace and row["role"] in ( + args.backend_role, args.celery_role) + passed = ( + not row.get("error") and row.get("login") == 200 + and (row.get("public") == 200 if (row["namespace"], row["service_account"], row["role"]) + in public_identities else row.get("public") in (200, 403)) + and row.get("private") == (200 if backend else 403) + and row.get("signer_client") == (200 if signer else 403) + and row.get("legacy") == 403 and row.get("legacy_version_1") == 403 + and (backend or row.get("backend_role_impersonation") == 403) + ) + if not passed: + failures.append(row) + backend_found = any((r["namespace"], r["service_account"], r["role"]) == ( + args.backend_namespace, args.backend_service_account, args.backend_role) for r in rows) + report = {"service_accounts": len(rows), "backend_found": backend_found, + "unexpected_results": len(failures), "results": rows} + content = json.dumps(report, ensure_ascii=False, indent=2) + "\n" + if args.output: + args.output.write_text(content) + else: + print(content) + raise SystemExit(0 if rows and backend_found and not failures else 1) + + +if __name__ == "__main__": + main() diff --git a/docs/security/evidence/stand-jwt-celery-2026-11-28.json b/docs/security/evidence/stand-jwt-celery-2026-11-28.json new file mode 100644 index 0000000..2813069 --- /dev/null +++ b/docs/security/evidence/stand-jwt-celery-2026-11-28.json @@ -0,0 +1,10 @@ +{ + "diagnostic_task_id": "50cf2ed4-a83e-42f0-ab37-f7076e33316c", + "name": "update_c2s_comparison_status", + "business_rows": 0, + "service_account": "django-celery-vault", + "role": "django-celery", + "status": "SUCCESS", + "local_signing_without_private_key_rejected": true, + "service_mixin_production_branch_verified": true +} diff --git a/docs/security/evidence/stand-jwt-functional-2026-11-28.json b/docs/security/evidence/stand-jwt-functional-2026-11-28.json new file mode 100644 index 0000000..b15c9a5 --- /dev/null +++ b/docs/security/evidence/stand-jwt-functional-2026-11-28.json @@ -0,0 +1,24 @@ +{ + "eav": { + "valid": true, + "expired_rejected": true, + "issuer_rejected": true, + "tampered_rejected": true, + "refresh_rejected": true + }, + "issues": { + "valid": true, + "expired_rejected": true, + "issuer_rejected": true, + "tampered_rejected": true, + "refresh_rejected": true + }, + "signer_http": { + "anonymous_new": 401, + "anonymous_legacy": 401, + "invalid_credential": 401, + "invalid_user_id": 400, + "missing_user": 404, + "legacy_authenticated": 200 + } +} \ No newline at end of file diff --git a/docs/security/evidence/stand-jwt-rbac-2026-11-28.json b/docs/security/evidence/stand-jwt-rbac-2026-11-28.json new file mode 100644 index 0000000..4ee36ce --- /dev/null +++ b/docs/security/evidence/stand-jwt-rbac-2026-11-28.json @@ -0,0 +1,2343 @@ +{ + "service_accounts": 37, + "checks_performed": 259, + "groups_included": [ + "system:authenticated", + "system:serviceaccounts", + "system:serviceaccounts:" + ], + "allowed_checks": 0, + "results": [ + { + "namespace": "ams-sync", + "service_account": "ams-sync-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "ams-sync", + "service_account": "ams-sync-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "ams-sync", + "service_account": "ams-sync-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "ams-sync", + "service_account": "ams-sync-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "ams-sync", + "service_account": "ams-sync-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "ams-sync", + "service_account": "ams-sync-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "ams-sync", + "service_account": "ams-sync-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "attachments", + "service_account": "attachments-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "attachments", + "service_account": "attachments-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "attachments", + "service_account": "attachments-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "attachments", + "service_account": "attachments-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "attachments", + "service_account": "attachments-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "attachments", + "service_account": "attachments-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "attachments", + "service_account": "attachments-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "bi", + "service_account": "bi-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "bi", + "service_account": "bi-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "bi", + "service_account": "bi-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "bi", + "service_account": "bi-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "bi", + "service_account": "bi-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "bi", + "service_account": "bi-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "bi", + "service_account": "bi-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "bim", + "service_account": "bim-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "bim", + "service_account": "bim-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "bim", + "service_account": "bim-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "bim", + "service_account": "bim-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "bim", + "service_account": "bim-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "bim", + "service_account": "bim-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "bim", + "service_account": "bim-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-connectors", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-connectors", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-connectors", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-connectors", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-connectors", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-connectors", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-connectors", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-identity", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-identity", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-identity", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-identity", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-identity", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-identity", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-identity", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-operate", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-operate", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-operate", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-operate", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-operate", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-operate", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-operate", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-optimize", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-optimize", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-optimize", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-optimize", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-optimize", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-optimize", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-optimize", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-tasklist", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-tasklist", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-tasklist", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-tasklist", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-tasklist", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-tasklist", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "camunda", + "service_account": "camunda-tasklist", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "cde", + "service_account": "cde-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "cde", + "service_account": "cde-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "cde", + "service_account": "cde-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "cde", + "service_account": "cde-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "cde", + "service_account": "cde-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "cde", + "service_account": "cde-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "cde", + "service_account": "cde-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "checklists", + "service_account": "checklists-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "checklists", + "service_account": "checklists-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "checklists", + "service_account": "checklists-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "checklists", + "service_account": "checklists-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "checklists", + "service_account": "checklists-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "checklists", + "service_account": "checklists-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "checklists", + "service_account": "checklists-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "contracts", + "service_account": "contracts-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "contracts", + "service_account": "contracts-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "contracts", + "service_account": "contracts-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "contracts", + "service_account": "contracts-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "contracts", + "service_account": "contracts-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "contracts", + "service_account": "contracts-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "contracts", + "service_account": "contracts-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-backend-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-backend-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-backend-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-backend-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-backend-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-backend-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-backend-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-celery-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-celery-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-celery-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-celery-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-celery-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-celery-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-celery-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "django", + "service_account": "django-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "documentations", + "service_account": "documentations-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "documentations", + "service_account": "documentations-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "documentations", + "service_account": "documentations-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "documentations", + "service_account": "documentations-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "documentations", + "service_account": "documentations-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "documentations", + "service_account": "documentations-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "documentations", + "service_account": "documentations-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "drawings", + "service_account": "drawings-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "drawings", + "service_account": "drawings-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "drawings", + "service_account": "drawings-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "drawings", + "service_account": "drawings-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "drawings", + "service_account": "drawings-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "drawings", + "service_account": "drawings-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "drawings", + "service_account": "drawings-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "eav", + "service_account": "eav-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "eav", + "service_account": "eav-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "eav", + "service_account": "eav-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "eav", + "service_account": "eav-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "eav", + "service_account": "eav-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "eav", + "service_account": "eav-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "eav", + "service_account": "eav-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "flows", + "service_account": "flows-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "flows", + "service_account": "flows-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "flows", + "service_account": "flows-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "flows", + "service_account": "flows-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "flows", + "service_account": "flows-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "flows", + "service_account": "flows-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "flows", + "service_account": "flows-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "iam", + "service_account": "iam-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "iam", + "service_account": "iam-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "iam", + "service_account": "iam-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "iam", + "service_account": "iam-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "iam", + "service_account": "iam-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "iam", + "service_account": "iam-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "iam", + "service_account": "iam-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "inspections", + "service_account": "inspections-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "inspections", + "service_account": "inspections-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "inspections", + "service_account": "inspections-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "inspections", + "service_account": "inspections-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "inspections", + "service_account": "inspections-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "inspections", + "service_account": "inspections-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "inspections", + "service_account": "inspections-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "issues", + "service_account": "issues-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "issues", + "service_account": "issues-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "issues", + "service_account": "issues-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "issues", + "service_account": "issues-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "issues", + "service_account": "issues-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "issues", + "service_account": "issues-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "issues", + "service_account": "issues-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "mapper", + "service_account": "mapper-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "mapper", + "service_account": "mapper-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "mapper", + "service_account": "mapper-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "mapper", + "service_account": "mapper-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "mapper", + "service_account": "mapper-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "mapper", + "service_account": "mapper-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "mapper", + "service_account": "mapper-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "measurements", + "service_account": "measurements-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "measurements", + "service_account": "measurements-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "measurements", + "service_account": "measurements-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "measurements", + "service_account": "measurements-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "measurements", + "service_account": "measurements-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "measurements", + "service_account": "measurements-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "measurements", + "service_account": "measurements-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "message-hub", + "service_account": "message-hub-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "message-hub", + "service_account": "message-hub-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "message-hub", + "service_account": "message-hub-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "message-hub", + "service_account": "message-hub-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "message-hub", + "service_account": "message-hub-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "message-hub", + "service_account": "message-hub-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "message-hub", + "service_account": "message-hub-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "notes", + "service_account": "notes-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "notes", + "service_account": "notes-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "notes", + "service_account": "notes-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "notes", + "service_account": "notes-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "notes", + "service_account": "notes-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "notes", + "service_account": "notes-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "notes", + "service_account": "notes-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "pm", + "service_account": "pm-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "pm", + "service_account": "pm-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "pm", + "service_account": "pm-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "pm", + "service_account": "pm-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "pm", + "service_account": "pm-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "pm", + "service_account": "pm-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "pm", + "service_account": "pm-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "premises", + "service_account": "premises-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "premises", + "service_account": "premises-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "premises", + "service_account": "premises-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "premises", + "service_account": "premises-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "premises", + "service_account": "premises-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "premises", + "service_account": "premises-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "premises", + "service_account": "premises-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "processing", + "service_account": "processing-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "processing", + "service_account": "processing-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "processing", + "service_account": "processing-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "processing", + "service_account": "processing-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "processing", + "service_account": "processing-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "processing", + "service_account": "processing-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "processing", + "service_account": "processing-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "resources", + "service_account": "resources-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "resources", + "service_account": "resources-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "resources", + "service_account": "resources-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "resources", + "service_account": "resources-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "resources", + "service_account": "resources-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "resources", + "service_account": "resources-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "resources", + "service_account": "resources-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "rfi", + "service_account": "rfi-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "rfi", + "service_account": "rfi-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "rfi", + "service_account": "rfi-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "rfi", + "service_account": "rfi-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "rfi", + "service_account": "rfi-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "rfi", + "service_account": "rfi-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "rfi", + "service_account": "rfi-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "spicedb", + "service_account": "spicedb-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "spicedb", + "service_account": "spicedb-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "spicedb", + "service_account": "spicedb-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "spicedb", + "service_account": "spicedb-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "spicedb", + "service_account": "spicedb-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "spicedb", + "service_account": "spicedb-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "spicedb", + "service_account": "spicedb-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "subscriptions", + "service_account": "subscriptions-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "subscriptions", + "service_account": "subscriptions-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "subscriptions", + "service_account": "subscriptions-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "subscriptions", + "service_account": "subscriptions-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "subscriptions", + "service_account": "subscriptions-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "subscriptions", + "service_account": "subscriptions-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "subscriptions", + "service_account": "subscriptions-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "system-log", + "service_account": "system-log-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "system-log", + "service_account": "system-log-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "system-log", + "service_account": "system-log-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "system-log", + "service_account": "system-log-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "system-log", + "service_account": "system-log-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "system-log", + "service_account": "system-log-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "system-log", + "service_account": "system-log-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "transmittal", + "service_account": "transmittal-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "transmittal", + "service_account": "transmittal-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "transmittal", + "service_account": "transmittal-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "transmittal", + "service_account": "transmittal-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "transmittal", + "service_account": "transmittal-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "transmittal", + "service_account": "transmittal-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "transmittal", + "service_account": "transmittal-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "workspaces", + "service_account": "workspaces-vault", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "workspaces", + "service_account": "workspaces-vault", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "workspaces", + "service_account": "workspaces-vault", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "workspaces", + "service_account": "workspaces-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "workspaces", + "service_account": "workspaces-vault", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "workspaces", + "service_account": "workspaces-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "workspaces", + "service_account": "workspaces-vault", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + }, + { + "namespace": "zitadel", + "service_account": "zitadel-idp-contour", + "verb": "create", + "resource": "pods", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "zitadel", + "service_account": "zitadel-idp-contour", + "verb": "create", + "resource": "serviceaccounts/token", + "target_namespace": "django", + "resource_name": "django-backend-vault", + "allowed": false + }, + { + "namespace": "zitadel", + "service_account": "zitadel-idp-contour", + "verb": "create", + "resource": "pods/exec", + "target_namespace": "django", + "resource_name": "backend-9fc544b67-pbfdf", + "allowed": false + }, + { + "namespace": "zitadel", + "service_account": "zitadel-idp-contour", + "verb": "get", + "resource": "secrets", + "target_namespace": "django", + "resource_name": null, + "allowed": false + }, + { + "namespace": "zitadel", + "service_account": "zitadel-idp-contour", + "verb": "patch", + "resource": "deployments.apps", + "target_namespace": "django", + "resource_name": "backend", + "allowed": false + }, + { + "namespace": "zitadel", + "service_account": "zitadel-idp-contour", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-secret", + "allowed": false + }, + { + "namespace": "zitadel", + "service_account": "zitadel-idp-contour", + "verb": "get", + "resource": "secrets", + "target_namespace": "vault", + "resource_name": "vault-terraform", + "allowed": false + } + ] +} diff --git a/docs/security/evidence/stand-jwt-signer-edges-2026-11-28.json b/docs/security/evidence/stand-jwt-signer-edges-2026-11-28.json new file mode 100644 index 0000000..55c1ed1 --- /dev/null +++ b/docs/security/evidence/stand-jwt-signer-edges-2026-11-28.json @@ -0,0 +1,12 @@ +{ + "anonymous_new": 401, + "anonymous_legacy": 401, + "invalid_credential": 401, + "non_ascii_credential": 401, + "oversized_user_id": 400, + "oversized_legacy_user_id": 400, + "wrong_method": 405, + "invalid_user_id": 400, + "missing_user": 404, + "legacy_authenticated": 200 +} \ No newline at end of file diff --git a/docs/security/evidence/stand-jwt-vault-access-2026-11-28.json b/docs/security/evidence/stand-jwt-vault-access-2026-11-28.json new file mode 100644 index 0000000..bde3224 --- /dev/null +++ b/docs/security/evidence/stand-jwt-vault-access-2026-11-28.json @@ -0,0 +1,450 @@ +{ + "service_accounts": 37, + "backend_found": true, + "unexpected_results": 0, + "results": [ + { + "namespace": "ams-sync", + "service_account": "ams-sync-vault", + "role": "ams-sync", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "attachments", + "service_account": "attachments-vault", + "role": "attachments", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "bi", + "service_account": "bi-vault", + "role": "bi", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "bim", + "service_account": "bim-vault", + "role": "bim", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "camunda", + "service_account": "camunda-connectors", + "role": "camunda-contour", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "camunda", + "service_account": "camunda-identity", + "role": "camunda-contour", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "camunda", + "service_account": "camunda-operate", + "role": "camunda-contour", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "camunda", + "service_account": "camunda-optimize", + "role": "camunda-contour", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "camunda", + "service_account": "camunda-tasklist", + "role": "camunda-contour", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "cde", + "service_account": "cde-vault", + "role": "cde", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "checklists", + "service_account": "checklists-vault", + "role": "checklists", + "login": 200, + "public": 200, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "contracts", + "service_account": "contracts-vault", + "role": "contracts", + "login": 200, + "public": 200, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "django", + "service_account": "django-backend-vault", + "role": "django-backend", + "login": 200, + "public": 200, + "private": 200, + "legacy": 403, + "signer_client": 200, + "legacy_version_1": 403 + }, + { + "namespace": "django", + "service_account": "django-celery-vault", + "role": "django-celery", + "login": 200, + "public": 200, + "private": 403, + "legacy": 403, + "signer_client": 200, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "django", + "service_account": "django-vault", + "role": "django", + "login": 200, + "public": 200, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "documentations", + "service_account": "documentations-vault", + "role": "documentations", + "login": 200, + "public": 200, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "drawings", + "service_account": "drawings-vault", + "role": "drawings", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "eav", + "service_account": "eav-vault", + "role": "eav", + "login": 200, + "public": 200, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "flows", + "service_account": "flows-vault", + "role": "flows", + "login": 200, + "public": 200, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "iam", + "service_account": "iam-vault", + "role": "iam", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "inspections", + "service_account": "inspections-vault", + "role": "inspections", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "issues", + "service_account": "issues-vault", + "role": "issues", + "login": 200, + "public": 200, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "mapper", + "service_account": "mapper-vault", + "role": "mapper", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "measurements", + "service_account": "measurements-vault", + "role": "measurements", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "message-hub", + "service_account": "message-hub-vault", + "role": "message-hub", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "notes", + "service_account": "notes-vault", + "role": "notes", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "pm", + "service_account": "pm-vault", + "role": "pm", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "premises", + "service_account": "premises-vault", + "role": "premises", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "processing", + "service_account": "processing-vault", + "role": "processing", + "login": 200, + "public": 200, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "resources", + "service_account": "resources-vault", + "role": "resources", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "rfi", + "service_account": "rfi-vault", + "role": "rfi", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "spicedb", + "service_account": "spicedb-vault", + "role": "spicedb", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "subscriptions", + "service_account": "subscriptions-vault", + "role": "subscriptions", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "system-log", + "service_account": "system-log-vault", + "role": "system-log", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "transmittal", + "service_account": "transmittal-vault", + "role": "transmittal", + "login": 200, + "public": 200, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "workspaces", + "service_account": "workspaces-vault", + "role": "workspaces", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + }, + { + "namespace": "zitadel", + "service_account": "zitadel-idp-contour", + "role": "zitadel", + "login": 200, + "public": 403, + "private": 403, + "legacy": 403, + "signer_client": 403, + "legacy_version_1": 403, + "backend_role_impersonation": 403 + } + ] +} diff --git a/docs/security/evidence/stand-jwt-vault-auth-2026-11-28.json b/docs/security/evidence/stand-jwt-vault-auth-2026-11-28.json new file mode 100644 index 0000000..02bff6b --- /dev/null +++ b/docs/security/evidence/stand-jwt-vault-auth-2026-11-28.json @@ -0,0 +1,42 @@ +{ + "kubernetes_jwt": { + "iss": "https://kubernetes.default.svc.cluster.local", + "aud": [ + "https://kubernetes.default.svc.cluster.local" + ], + "sub": "system:serviceaccount:django:django-backend-vault" + }, + "auth_config": { + "kubernetes_host": "https://kubernetes.default.svc:443", + "disable_iss_validation": true, + "issuer": "", + "disable_local_ca_jwt": false + }, + "backend_role": { + "bound_service_account_names": [ + "django-backend-vault" + ], + "bound_service_account_namespaces": [ + "django" + ], + "audience": null, + "token_policies": [ + "django-backend" + ], + "token_ttl": 86400 + }, + "celery_role": { + "bound_service_account_names": [ + "django-celery-vault" + ], + "bound_service_account_namespaces": [ + "django" + ], + "audience": null, + "token_policies": [ + "django-celery" + ], + "token_ttl": 86400 + }, + "s3_proxy_celery_role_impersonation": 403 +} \ No newline at end of file diff --git a/docs/security/jwt-vault-stand.md b/docs/security/jwt-vault-stand.md new file mode 100644 index 0000000..95c4337 --- /dev/null +++ b/docs/security/jwt-vault-stand.md @@ -0,0 +1,148 @@ +# JWT Sarex и аутентификация в Vault: разделение доступа + +Дата проверки: 2026-11-28. Проверено на `stand`. Другие контуры не изменялись. + +## Назначение credentials + +| Credential | Кто выдаёт | Кто проверяет | Назначение | +|---|---|---|---| +| Прикладной JWT Sarex | Django backend, RS512 | Сервисы платформы, публичный RSA-ключ | Пользовательские claims и аутентификация запросов | +| JWT Kubernetes ServiceAccount | Kubernetes API | Kubernetes TokenReview при входе в Vault | Подтверждение namespace/ServiceAccount приложения | +| Vault token | Vault после успешного Kubernetes login | Vault | Доступ к разрешённым путям секретов | +| Credential внутреннего signer | Terraform, хранится в Vault | Django backend, constant-time сравнение | Аутентификация запросов Django Celery на выпуск прикладного JWT | + +Эти credentials не взаимозаменяемы. RSA-ключ Sarex не подписывает ServiceAccount JWT и не является ключом Vault. Публичный ключ позволяет проверить подпись, но не подписать токен. JWT Sarex не шифрует payload: данные claims доступны получателю токена. + +JWT Zitadel и JWT других интеграций, например Superset, имеют собственных issuer и ключи. В этой работе их конфигурация не менялась. + +## Прикладной JWT Sarex + +На stand проверен `CustomTokenSerializer`: `alg=RS512`, `iss=default_issuer`, пользовательский идентификатор в `user_id`. Backend формирует access token с установленными приложением сроком действия и claims. Потребители проверяют подпись публичным ключом, срок действия и настроенные issuer/audience. Авторизация по claims/правам остаётся отдельной проверкой после аутентификации. + +Текущая RSA-пара сохранена: fingerprints до и после совпали. Изменение расположения секретов не является ротацией. При переносе на РМК надо отдельно решить вопрос ротации ранее широко выданного ключа и переходного периода для уже выпущенных JWT. + +## Пути Vault KV v2 + +| API-путь | Содержимое | Получатели | +|---|---|---| +| `secrets/data/vault/common/jwt_public` | Только `public_key` | Потребители JWT согласно их app policy, включая Django | +| `secrets/data/vault/apps/django/jwt_private` | Только `private_key` | Только role `django-backend` | +| `secrets/data/vault/apps/django/jwt_signer_client` | Только `token` | Roles `django-backend` и `django-celery` для backend/Celery | +| `secrets/data/vault/common/rsa_keys` | Существующий архивный общий секрет | Доступ app policies отозван; доступен административному обслуживанию | + +Старый общий секрет не удалён и не перезаписан. Его прежние версии тоже закрыты для приложений, поскольку отсутствует разрешение на весь API-путь. Нельзя оставлять потребителям доступ к общему секрету, даже если шаблон монтирует из него только `public_key`: Vault ACL действует на путь, а не на отдельное поле JSON. + +Пример разрешения для потребителя: + +```hcl +path "secrets/data/vault/common/jwt_public" { + capabilities = ["read"] +} +``` + +Дополнительное разрешение только для backend: + +```hcl +path "secrets/data/vault/apps/django/jwt_private" { + capabilities = ["read"] +} +``` + +Те же ограничения применены к metadata-путям. Публичный read выдан ролям потребителей JWT. У унаследованной role `django` публичный read сохранён для совместимости bootstrap-конфигурации; S3 proxy не монтирует JWT и не имеет доступа к private/signer credential. + +## Разделение Django backend и Celery + +У них раньше были общие `django-vault` и role `django`. Теперь: + +| Процесс | Kubernetes ServiceAccount | Vault role | Приватный ключ | +|---|---|---|---| +| Django backend | `django-backend-vault`, namespace `django` | `django-backend` | Да | +| Django Celery | `django-celery-vault`, namespace `django` | `django-celery` | Нет | +| Django S3 proxy | `django-vault`, namespace `django` | `django` | Нет; signer credential тоже недоступен | +| EAV backend | `eav-vault`, namespace `eav` | `eav` | Нет | +| Issues backend/Celery | `issues-vault`, namespace `issues` | `issues` | Нет | +| Остальные потребители | Собственные SA/role | Собственные app policies | Нет | + +Фактический ServiceAccount backend задаётся Helm post-renderer. Старый объект `django-vault`, которым управляет Helm, сохранён для S3 proxy и bootstrap-сценария. Для Celery также создан отдельный SA: иначе общий credential signer оказался бы доступен S3 proxy через ту же Vault role. Фактические SA backend/Celery задаются post-renderer, старый chart-ресурс SA не удаляется. + +Были найдены реальные фоновые вызовы подписи в `sarex/base/tasks.py` и `sarex/services/mixin.py`. Их нельзя исправить простым удалением env: они переведены на вызов Django backend: + +- `POST /internal/jwt/access-token/`, тело `{"user_id": }`; +- сервисный credential из Vault в `Authorization: Bearer …`; +- без credential — 401; невалидный запрос — 400; отсутствующий/неактивный пользователь — 404; +- debug-страницы backend signer выключены, чувствительные локальные переменные помечены для фильтрации отчётов об ошибках; +- ответ содержит короткоживущий access token, `Cache-Control: no-store`; +- приватный ключ и операция RSA-подписи остаются в backend; +- у Celery остаётся доверенное право запросить токен пользователя. Это право выпуска токенов, а не роль обычного verifier; credential нельзя выдавать другим сервисам. + +Старый `GET /internal/client/token//` в исходном коде использовал `AllowAny`. В stand он также требует сервисный credential. Для авторизованного клиента сохранён прежний JSON-формат ответа. В проверенных локальных исходниках EAV, Issues, AMS Sync, PDM и CDE API обращений к этому legacy endpoint не найдено; перед переносом на РМК нужен аудит остальных клиентов. + +## Проверка подписи в Issues + +Использовавшийся `core.auth.JWTStatelessUserAuthentication` разбирал `NonVerifyingAccessToken` с `verify=False`. Функциональный отрицательный тест показал принятие поддельной подписи. + +В stand активирован `config.jwt_legacy_auth.VerifiedJWTStatelessUserAuthentication`: сначала штатный `AccessToken(verify=True)` проверяет RSA-подпись, exp, тип access token и настроенные issuer/audience, затем выполняется существующая обработка claims. Basic/Session и отдельный Identity/Zitadel путь не заменялись. Повторный тест настоящего и поддельного JWT проходит и для EAV, и для Issues. + +## Kubernetes JWT для входа в Vault + +1. Kubernetes предоставляет pod токен его ServiceAccount. Приватный ключ Kubernetes, подписывающий этот JWT, приложению не передаётся. +2. Vault Agent обращается в `auth/kubernetes/login` с этим JWT и именем role. +3. Vault проверяет действительность credentials через Kubernetes TokenReview и сопоставляет ServiceAccount/namespace с ограничениями role. +4. Vault возвращает отдельный Vault token с app policies. JWT Kubernetes не превращается в RSA-ключ Sarex и не используется для подписи прикладных токенов. +5. Agent читает только разрешённые KV-пути и рендерит файлы в `/vault/secrets/`. В stand используется pre-populate-only, поэтому для удаления уже смонтированного приватного файла нужен новый pod. +6. Запросы к private/legacy пути от остальных app roles получают 403. Запрос login в `django-backend` с JWT другого SA тоже получает 403. + +Фактические параметры stand: ServiceAccount JWT имеет `iss=https://kubernetes.default.svc.cluster.local` и тот же API audience. Отдельный Vault audience в role не задан. В auth config установлено `disable_iss_validation=true`: дополнительная локальная проверка issuer самим Vault выключена, проверка Kubernetes credentials выполняется через TokenReview. Это описание текущего механизма, а не утверждение о настроенном отдельном audience `vault`. Несекретный снимок auth config приложен в `evidence/`. + +Role `django-backend` ограничена `bound_service_account_names=["django-backend-vault"]` и `bound_service_account_namespaces=["django"]`. Аналогично `django-celery` допускает только `django-celery-vault` из `django`; S3 proxy не может войти в эту role. Нельзя объединять backend и worker общей role, имеющей read приватного секрета. + +Граница доверия: администраторы Vault/Terraform и Kubernetes control plane остаются привилегированными. Проверка app ServiceAccounts не означает отзыва прав у административных учётных записей. + +## Как реализован stand + +- Terraform, ветка `contour`: stand app policies и генерация раздельных секретов/credential в `live-contract/stand/vault-secrets/terragrunt.hcl`. +- IaC: изменения только в `apps/*/stand`, отдельные `jwt-access.yaml`, runtime ConfigMap и ServiceAccount. +- Базовые конфигурации и другие контуры не изменены. +- Runtime ConfigMap адаптирует текущие образы без их пересборки: переносит старый production config в отдельную точку монтирования и выполняет его из wrapper, не выдавая приватный ключ verifier-процессам. +- InitContainer Celery проверяет ожидаемые места подписи в текущем образе и заменяет их обращениями к signer; при несовпадении исходника rollout останавливается, а не молча пропускает изменение. +- Одноразовый завершённый `service-user-job` исключён из автоматического применения, чтобы изменение JWT mount не пересоздавало bootstrap Job и не переустанавливало пароль сервисного пользователя. Его пример сохранён с public-only конфигурацией. + +Для постоянной поставки РМК изменения клиента Celery, защищённого signer endpoint и проверки подписи Issues желательно перенести в исходники приложений и собрать версионированные образы. Проверенные stand ConfigMap остаются воспроизводимым вариантом для текущих закреплённых образов; при смене образа требуется повторная проверка совместимости. + +## Порядок переноса на РМК + +1. Установить целевой contour, namespace, закреплённые образы, issuer/audience и фактические подписывающие процессы. Не переносить credentials stand. +2. Создать раздельные public/private секреты в Vault целевого контура и отдельную backend role/SA. Сначала добавить новые разрешения, сохранив старый путь для перехода. +3. Обновить backend и делегирование Celery; проверить защищённый выпуск токена и реальную фоновую задачу. +4. Перевести всех verifier-потребителей на public-only путь, убрать private env/annotations/файлы, проверить запуск и криптографическую проверку JWT. +5. Убедиться, что больше нет активных pod со старым путём, затем отозвать старый read у всех app policies. +6. Выполнить login/read негативные проверки от реальных SA и проверить запрет чужого backend role, включая старые KV-версии. +7. Перезапуском удалить старые смонтированные ключи, проверить RBAC против обхода через создание pod/token/чтение Secrets. При откате не возвращать общие private grants без отдельного решения. + +## Результаты испытаний + +Машиночитаемая матрица Vault и результаты RBAC находятся в `evidence/` рядом с этим документом. Значения ключей, JWT, Vault tokens и signer credential в отчётах отсутствуют. + +- Исходная RSA-пара сохранена; новые секреты содержат строго отдельные поля. +- Все активные pod ушли со старого общего пути; private injection остался только у Django backend. +- В Kubernetes Secrets копий текущего приватного JWT ключа не найдено. +- 37 ServiceAccount: успешный login в свою role; private read разрешён только backend, legacy read запрещён всем приложениям; чужой backend role запрещён. +- Signer credential доступен только backend/Celery; остальные app роли получают 403. Проверены запросы к версии 1 старого RSA секрета. +- 259 адресных RBAC-проверок с реальными группами SA: app SA не могут создавать pod/токены, читать Secrets или менять Deployment в namespace Django. +- Celery получил и проверил JWT через backend, локальная подпись без private key завершилась ошибкой. Оба signer endpoint без credential и с неверным credential отклоняют запросы; проверены 400/404 для некорректного/отсутствующего пользователя. +- EAV и Issues принимают настоящий JWT и отклоняют изменённую подпись, истёкший токен, неверный issuer и refresh token вместо access token. +- Реальная задача `update_c2s_comparison_status` успешно исполнена worker после делегирования. Предварительно подтверждено отсутствие записей C2S, чтобы тест не менял бизнес-данные. +- Проверка production-ветки `ServiceMixin._get_token` прошла с `DEBUG=False`; существующее поведение debug-ветки не менялось. + +Общий health-check Flux `50-apps` на stand уже до этой работы был неуспешен из-за отложенного `cde-worker-alert`. Оценивать rollout JWT следует по затронутым HelmRelease/pod и результатам проверок, а не объявлять весь stand исправным по факту успешной JWT-проверки. + +## Повторная проверка доступа Vault + +```bash +python3 ci/security/verify-jwt-vault-access.py \ + --kubeconfig /path/to/stand-kubeconfig \ + --context kubernetes-admin@cluster.local \ + --output jwt-vault-access.json +``` + +Скрипт не применяет манифесты и не меняет бизнес-данные. Он делает TokenRequest от административного оператора для существующих ServiceAccount, входит в их Vault role, проверяет HTTP-результаты чтения и отказывает в обходе через backend role. Все созданные тестовые Vault tokens отзываются. Вывод содержит только SA/role и статусы, без содержимого секретов. Для другого контура явно задайте его kubeconfig, Vault pod и имена backend SA/role.