Compare commits
3 Commits
bfad13da2f
...
c23b51e2a5
| Author | SHA1 | Date | |
|---|---|---|---|
| c23b51e2a5 | |||
| 448a994fd4 | |||
| 1c3525fc1b |
4
clusters/stand/30-platform/kustomization.yaml
Normal file
4
clusters/stand/30-platform/kustomization.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../../../infrastructure/zitadel/contour-template
|
||||||
@ -53,3 +53,22 @@ spec:
|
|||||||
substituteFrom:
|
substituteFrom:
|
||||||
- kind: ConfigMap
|
- kind: ConfigMap
|
||||||
name: contour-vars
|
name: contour-vars
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: 30-platform
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 10m0s
|
||||||
|
timeout: 20m0s
|
||||||
|
path: ./clusters/stand/30-platform
|
||||||
|
prune: true
|
||||||
|
wait: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
||||||
|
postBuild:
|
||||||
|
substituteFrom:
|
||||||
|
- kind: ConfigMap
|
||||||
|
name: contour-vars
|
||||||
|
|||||||
@ -103,6 +103,17 @@ spec:
|
|||||||
renewBefore: 360h0m0s
|
renewBefore: 360h0m0s
|
||||||
privateKey:
|
privateKey:
|
||||||
rotationPolicy: Always
|
rotationPolicy: Always
|
||||||
|
goalert-tls:
|
||||||
|
dnsNames:
|
||||||
|
- goalert.infra.sarex.io
|
||||||
|
issuerRef:
|
||||||
|
name: letsencrypt-issuer-istio
|
||||||
|
kind: ClusterIssuer
|
||||||
|
spec:
|
||||||
|
duration: 2160h0m0s
|
||||||
|
renewBefore: 360h0m0s
|
||||||
|
privateKey:
|
||||||
|
rotationPolicy: Always
|
||||||
istio:
|
istio:
|
||||||
gateways:
|
gateways:
|
||||||
vault:
|
vault:
|
||||||
@ -172,6 +183,17 @@ spec:
|
|||||||
tls:
|
tls:
|
||||||
credentialName: wiki-tls
|
credentialName: wiki-tls
|
||||||
mode: SIMPLE
|
mode: SIMPLE
|
||||||
|
goalert:
|
||||||
|
name: goalert-gateway
|
||||||
|
namespace: istio-system
|
||||||
|
selector:
|
||||||
|
istio: ingressgateway
|
||||||
|
servers:
|
||||||
|
- hosts:
|
||||||
|
- goalert.infra.sarex.io
|
||||||
|
tls:
|
||||||
|
credentialName: goalert-tls
|
||||||
|
mode: SIMPLE
|
||||||
virtualServices:
|
virtualServices:
|
||||||
vault-virt-service:
|
vault-virt-service:
|
||||||
namespace: istio-system
|
namespace: istio-system
|
||||||
@ -250,3 +272,14 @@ spec:
|
|||||||
prefix: /
|
prefix: /
|
||||||
service: outline.outline.svc.cluster.local
|
service: outline.outline.svc.cluster.local
|
||||||
port: 80
|
port: 80
|
||||||
|
goalert-virt-service:
|
||||||
|
namespace: istio-system
|
||||||
|
hosts:
|
||||||
|
- goalert.infra.sarex.io
|
||||||
|
gateways:
|
||||||
|
- istio-system/goalert-gateway
|
||||||
|
routes:
|
||||||
|
- path:
|
||||||
|
prefix: /
|
||||||
|
service: goalert.goalert.svc.cluster.local
|
||||||
|
port: 8081
|
||||||
|
|||||||
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../base
|
||||||
|
patches:
|
||||||
|
- path: zitadel.yaml
|
||||||
157
infrastructure/zitadel/contour-template/zitadel.yaml
Normal file
157
infrastructure/zitadel/contour-template/zitadel.yaml
Normal file
@ -0,0 +1,157 @@
|
|||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: zitadel
|
||||||
|
namespace: zitadel
|
||||||
|
spec:
|
||||||
|
interval: 5m
|
||||||
|
timeout: 10m
|
||||||
|
dependsOn:
|
||||||
|
- name: postgresql
|
||||||
|
namespace: postgresql
|
||||||
|
postRenderers:
|
||||||
|
- kustomize:
|
||||||
|
patches:
|
||||||
|
- target:
|
||||||
|
group: apps
|
||||||
|
version: v1
|
||||||
|
kind: Deployment
|
||||||
|
name: zitadel-idp-contour
|
||||||
|
patch: |-
|
||||||
|
- op: add
|
||||||
|
path: /spec/template/spec/nodeSelector
|
||||||
|
value:
|
||||||
|
dedicated: generic
|
||||||
|
- 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:
|
||||||
|
dedicated: generic
|
||||||
|
- 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:
|
||||||
|
dedicated: generic
|
||||||
|
- 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: ${HOST_LOGIN}
|
||||||
|
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-idp-contour
|
||||||
|
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: "postgresql.postgresql.svc.cluster.local"
|
||||||
|
- 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"
|
||||||
Loading…
Reference in New Issue
Block a user