++ nn-dev contour
This commit is contained in:
parent
0d11e9fadf
commit
1f4a4836c1
14
clusters/nn-dev/00-vault/helm-repositories.yaml
Normal file
14
clusters/nn-dev/00-vault/helm-repositories.yaml
Normal file
@ -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
|
||||
5
clusters/nn-dev/00-vault/kustomization.yaml
Normal file
5
clusters/nn-dev/00-vault/kustomization.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./helm-repositories.yaml
|
||||
- ../../../infrastructure/vault/contour-template
|
||||
26
clusters/nn-dev/10-mesh/kustomization.yaml
Normal file
26
clusters/nn-dev/10-mesh/kustomization.yaml
Normal file
@ -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:=}"
|
||||
5
clusters/nn-dev/20-data/kustomization.yaml
Normal file
5
clusters/nn-dev/20-data/kustomization.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../../infrastructure/postgresql/contour-template
|
||||
- ../../../infrastructure/rabbitmq/contour-template
|
||||
5
clusters/nn-dev/30-platform/kustomization.yaml
Normal file
5
clusters/nn-dev/30-platform/kustomization.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../../infrastructure/zitadel/contour-template
|
||||
- ../../../infrastructure/camunda/contour-template
|
||||
12
clusters/nn-dev/40-routing/kustomization.yaml
Normal file
12
clusters/nn-dev/40-routing/kustomization.yaml
Normal file
@ -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"
|
||||
6440
clusters/nn-dev/flux-system/gotk-components.yaml
Normal file
6440
clusters/nn-dev/flux-system/gotk-components.yaml
Normal file
File diff suppressed because it is too large
Load Diff
25
clusters/nn-dev/flux-system/gotk-sync.yaml
Normal file
25
clusters/nn-dev/flux-system/gotk-sync.yaml
Normal file
@ -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
|
||||
13
clusters/nn-dev/flux-system/kustomization.yaml
Normal file
13
clusters/nn-dev/flux-system/kustomization.yaml
Normal file
@ -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
|
||||
5
clusters/nn-dev/kustomization.yaml
Normal file
5
clusters/nn-dev/kustomization.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./flux-system
|
||||
- ./layers.yaml
|
||||
93
clusters/nn-dev/layers.yaml
Normal file
93
clusters/nn-dev/layers.yaml
Normal file
@ -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
|
||||
@ -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: ""
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -99,6 +99,7 @@ spec:
|
||||
advancedConfiguration: |-
|
||||
[
|
||||
{rabbit, [
|
||||
{loopback_users, []}
|
||||
{loopback_users, []},
|
||||
{disk_free_limit, 1073741824}
|
||||
]}
|
||||
].
|
||||
|
||||
Loading…
Reference in New Issue
Block a user