Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0818b65fb6 | |||
|
|
218a59a539 | ||
|
|
ed0fb7a64c | ||
|
|
55bc42ecbb | ||
|
|
d533095b8f |
94
apps/control-interface/wb/admin-frontend.yaml
Normal file
94
apps/control-interface/wb/admin-frontend.yaml
Normal file
@ -0,0 +1,94 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: admin-frontend
|
||||
namespace: control-interface
|
||||
|
||||
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: 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: 100m
|
||||
memory:
|
||||
_default: 100Mi
|
||||
|
||||
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: dockerhub
|
||||
|
||||
commitSha: ""
|
||||
gitlabUri: ""
|
||||
gitlabJobUrl: ""
|
||||
owner: ""
|
||||
6
apps/control-interface/wb/kustomization.yaml
Normal file
6
apps/control-interface/wb/kustomization.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: control-interface
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- admin-frontend.yaml
|
||||
4
apps/control-interface/wb/namespace.yaml
Normal file
4
apps/control-interface/wb/namespace.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: control-interface
|
||||
@ -36,7 +36,7 @@ spec:
|
||||
|
||||
image:
|
||||
name:
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/sarex-inspections:production_1a33f6f4
|
||||
_default: cr.yandex/crp3ccidau046kdj8g9q/inspections-backend:contour_32f00e42
|
||||
pullPolicy:
|
||||
_default: IfNotPresent
|
||||
|
||||
|
||||
@ -3,3 +3,5 @@ kind: Kustomization
|
||||
resources:
|
||||
- ./helm-repositories.yaml
|
||||
- ../../../infrastructure/vault/contour-template
|
||||
patches:
|
||||
- path: nexus-images-vault.yaml
|
||||
|
||||
51
clusters/nn-dev/00-vault/nexus-images-vault.yaml
Normal file
51
clusters/nn-dev/00-vault/nexus-images-vault.yaml
Normal 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
|
||||
@ -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
|
||||
|
||||
19
clusters/nn-dev/10-mesh/nexus-images-cert-manager.yaml
Normal file
19
clusters/nn-dev/10-mesh/nexus-images-cert-manager.yaml
Normal 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
|
||||
9
clusters/nn-dev/10-mesh/nexus-images-istiod.yaml
Normal file
9
clusters/nn-dev/10-mesh/nexus-images-istiod.yaml
Normal 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
|
||||
@ -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
|
||||
|
||||
24
clusters/nn-dev/20-data/nexus-images-kafka.yaml
Normal file
24
clusters/nn-dev/20-data/nexus-images-kafka.yaml
Normal 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
|
||||
17
clusters/nn-dev/20-data/nexus-images-postgresql.yaml
Normal file
17
clusters/nn-dev/20-data/nexus-images-postgresql.yaml
Normal 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
|
||||
14
clusters/nn-dev/20-data/nexus-images-rabbitmq.yaml
Normal file
14
clusters/nn-dev/20-data/nexus-images-rabbitmq.yaml
Normal 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
|
||||
@ -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"
|
||||
|
||||
85
clusters/nn-dev/30-platform/nexus-images-camunda.yaml
Normal file
85
clusters/nn-dev/30-platform/nexus-images-camunda.yaml
Normal 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
|
||||
16
clusters/nn-dev/30-platform/nexus-images-zitadel.yaml
Normal file
16
clusters/nn-dev/30-platform/nexus-images-zitadel.yaml
Normal 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
|
||||
@ -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
|
||||
|
||||
@ -82,6 +82,20 @@ spec:
|
||||
tls:
|
||||
credentialName: istio-gateway-wildcard-cert
|
||||
virtualServices:
|
||||
admin-frontend:
|
||||
name: admin-frontend-virt-service
|
||||
namespace: control-interface
|
||||
hosts:
|
||||
- srx.wb.ru
|
||||
- lk.srx.wb.ru
|
||||
gateways:
|
||||
- istio-system/main-gateway
|
||||
routes:
|
||||
- path:
|
||||
prefix: /admin-frontend/static/
|
||||
rewrite: /
|
||||
service: admin-frontend-svc.control-interface.svc.cluster.local
|
||||
port: 8080
|
||||
gitea-vs:
|
||||
namespace: gitea
|
||||
hosts:
|
||||
|
||||
@ -34,3 +34,4 @@ resources:
|
||||
- ../../apps/transmittal/wb
|
||||
- ../../apps/bi/wb
|
||||
- ../../apps/premises/wb
|
||||
- ../../apps/control-interface/wb
|
||||
|
||||
Loading…
Reference in New Issue
Block a user