++ use nexus sarex images in nn-dev

This commit is contained in:
Kochetkov S 2026-12-03 11:16:41 +03:00
parent 218a59a539
commit 0818b65fb6
13 changed files with 268 additions and 0 deletions

View File

@ -3,3 +3,5 @@ kind: Kustomization
resources:
- ./helm-repositories.yaml
- ../../../infrastructure/vault/contour-template
patches:
- path: nexus-images-vault.yaml

View File

@ -0,0 +1,51 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: vault
namespace: vault
spec:
values:
backup:
image:
repository: nexus.npr.nornick.ru/sarex/contour/minio/mc
injector:
image:
repository: nexus.npr.nornick.ru/sarex/vault/vault-k8s
agentImage:
repository: nexus.npr.nornick.ru/sarex/vault/vault
server:
image:
repository: nexus.npr.nornick.ru/sarex/vault/vault
extraContainers:
- command:
- /bin/sh
- -c
- "while true; do\n if vault status >/dev/null 2>&1; then\n :\n else\n\
\ rc=$?\n if [ \"$rc\" -eq 2 ]; then\n if [ -s /vault/unseal-keys/key1\
\ ] && [ -s /vault/unseal-keys/key2 ] && [ -s /vault/unseal-keys/key3 ];\
\ then\n for k in key1 key2 key3; do\n vault operator unseal\
\ \"$(cat /vault/unseal-keys/$k)\" >/dev/null 2>&1 || echo \"unseal call\
\ failed\"\n done\n if vault status >/dev/null 2>&1; then\
\ echo \"unsealed\"; else echo \"still sealed\"; fi\n else\n \
\ echo \"sealed, keys not mounted\"\n fi\n fi\n fi\n sleep 10\n\
done\n"
env:
- name: VAULT_ADDR
value: http://127.0.0.1:8200
image: nexus.npr.nornick.ru/sarex/vault/vault:1.21.2
imagePullPolicy: IfNotPresent
name: unsealer
resources:
limits:
memory: 64Mi
requests:
cpu: 10m
memory: 16Mi
volumeMounts:
- mountPath: /vault/unseal-keys
name: unseal-keys
readOnly: true
csi:
agent:
image:
repository: nexus.npr.nornick.ru/sarex/vault/vault

View File

@ -24,3 +24,6 @@ patches:
- op: add
path: /spec/values/_internal_defaults_do_not_set/service/loadBalancerIP
value: "${BALANCER_IP:=}"
patches:
- path: nexus-images-cert-manager.yaml
- path: nexus-images-istiod.yaml

View File

@ -0,0 +1,19 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: cert-manager
namespace: cert-manager
spec:
values:
controller:
image:
registry: nexus.npr.nornick.ru/sarex/cert-manager
acmesolver:
image:
registry: nexus.npr.nornick.ru/sarex/cert-manager
webhook:
image:
registry: nexus.npr.nornick.ru/sarex/cert-manager
cainjector:
image:
registry: nexus.npr.nornick.ru/sarex/cert-manager

View File

@ -0,0 +1,9 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: istiod
namespace: istio-system
spec:
values:
global:
hub: nexus.npr.nornick.ru/sarex/contour/istio

View File

@ -4,3 +4,7 @@ resources:
- ../../../infrastructure/postgresql/contour-template
- ../../../infrastructure/kafka/contour-template
- ../../../infrastructure/rabbitmq/contour-template
patches:
- path: nexus-images-kafka.yaml
- path: nexus-images-postgresql.yaml
- path: nexus-images-rabbitmq.yaml

View File

@ -0,0 +1,24 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: kafka
namespace: kafka
spec:
values:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/kafka-nn/kafka
defaultInitContainers:
volumePermissions:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/kafka-nn/os-shell
autoDiscovery:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/kafka-nn/kubectl
metrics:
jmx:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/kafka-nn/jmx-exporter

View File

@ -0,0 +1,17 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: postgresql
namespace: postgresql
spec:
values:
image:
registry: nexus.npr.nornick.ru/sarex
volumePermissions:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/postgresql/os-shell
metrics:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/postgresql/postgres-exporter

View File

@ -0,0 +1,14 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: rabbitmq
namespace: rabbitmq
spec:
values:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/rabbitmq/rabbitmq
volumePermissions:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/rabbitmq/os-shell

View File

@ -3,3 +3,18 @@ kind: Kustomization
resources:
- ../../../infrastructure/zitadel/contour-template
- ../../../infrastructure/camunda/contour-template
patches:
- path: nexus-images-camunda.yaml
- path: nexus-images-zitadel.yaml
- target:
kind: HelmRelease
name: camunda
patch: |-
- op: add
path: /spec/postRenderers/-
value:
kustomize:
images:
- name: busybox
newName: nexus.npr.nornick.ru/sarex/kubespray/library/busybox
newTag: "1.37.0"

View File

@ -0,0 +1,85 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: camunda
namespace: camunda
spec:
values:
global:
image:
registry: nexus.npr.nornick.ru
console:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/console
zeebe:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/zeebe
zeebeGateway:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/zeebe
operate:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/operate
tasklist:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/tasklist
optimize:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/optimize
executionIdentity:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/camunda
identity:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/identity
identityPostgresql:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/postgresql
identityKeycloak:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/keycloak
postgresql:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/postgresql
webModeler:
image:
registry: nexus.npr.nornick.ru
restapi:
image:
repository: sarex/contour/camunda/web-modeler-restapi
webapp:
image:
repository: sarex/contour/camunda/web-modeler-webapp
websockets:
image:
repository: sarex/contour/camunda/web-modeler-websockets
postgresql:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/postgresql
connectors:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/connectors-bundle
elasticsearch:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/elasticsearch
sysctlImage:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/os-shell
metrics:
image:
registry: nexus.npr.nornick.ru
repository: sarex/contour/camunda/elasticsearch-exporter

View File

@ -0,0 +1,16 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: zitadel
namespace: zitadel
spec:
values:
login:
image:
repository: nexus.npr.nornick.ru/sarex/contour/zitadel/zitadel-login
image:
repository: nexus.npr.nornick.ru/sarex/contour/zitadel/zitadel
setupJob:
machinekeyWriter:
image:
repository: nexus.npr.nornick.ru/sarex/contour/zitadel/kubectl

View File

@ -11,3 +11,12 @@ patches:
- op: add
path: /spec/template/spec/containers/0/args/-
value: --feature-gates=CancelHealthCheckOnNewRevision=true
images:
- name: cr.yandex/crp3ccidau046kdj8g9q/fluxcd/source-controller
newName: nexus.npr.nornick.ru/sarex/fluxcd/source-controller
- name: cr.yandex/crp3ccidau046kdj8g9q/fluxcd/kustomize-controller
newName: nexus.npr.nornick.ru/sarex/fluxcd/kustomize-controller
- name: cr.yandex/crp3ccidau046kdj8g9q/fluxcd/helm-controller
newName: nexus.npr.nornick.ru/sarex/fluxcd/helm-controller
- name: cr.yandex/crp3ccidau046kdj8g9q/fluxcd/notification-controller
newName: nexus.npr.nornick.ru/sarex/fluxcd/notification-controller