diff --git a/clusters/yc-k8s-test/infrastructure/kustomization.yaml b/clusters/yc-k8s-test/infrastructure/kustomization.yaml index 2908fbd..97d575b 100644 --- a/clusters/yc-k8s-test/infrastructure/kustomization.yaml +++ b/clusters/yc-k8s-test/infrastructure/kustomization.yaml @@ -127,3 +127,10 @@ patches: kind: HelmRelease name: keycloak namespace: keycloak + - path: ./patches/openldap.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: openldap + namespace: openldap diff --git a/clusters/yc-k8s-test/infrastructure/patches/openldap.yaml b/clusters/yc-k8s-test/infrastructure/patches/openldap.yaml new file mode 100644 index 0000000..022d77d --- /dev/null +++ b/clusters/yc-k8s-test/infrastructure/patches/openldap.yaml @@ -0,0 +1,26 @@ +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/kustomization.yaml b/infrastructure/kustomization.yaml index 3c2f7d4..bf9be00 100644 --- a/infrastructure/kustomization.yaml +++ b/infrastructure/kustomization.yaml @@ -9,6 +9,7 @@ resources: - keycloak - local-path-provisioner - minio + - openldap - postgresql - rabbitmq - redis diff --git a/infrastructure/openldap/base/helmrelease.yaml b/infrastructure/openldap/base/helmrelease.yaml new file mode 100644 index 0000000..d5082cb --- /dev/null +++ b/infrastructure/openldap/base/helmrelease.yaml @@ -0,0 +1,22 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: openldap + namespace: openldap +spec: + interval: 10m + chart: + spec: + chart: openldap-contour + version: "4.3.4" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 diff --git a/infrastructure/openldap/base/kustomization.yaml b/infrastructure/openldap/base/kustomization.yaml new file mode 100644 index 0000000..e2915ea --- /dev/null +++ b/infrastructure/openldap/base/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: openldap +resources: + - helmrelease.yaml + - namespace.yaml diff --git a/infrastructure/openldap/base/namespace.yaml b/infrastructure/openldap/base/namespace.yaml new file mode 100644 index 0000000..f404bfd --- /dev/null +++ b/infrastructure/openldap/base/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: openldap + labels: + istio-injection: enabled diff --git a/infrastructure/openldap/kustomization.yaml b/infrastructure/openldap/kustomization.yaml new file mode 100644 index 0000000..85dcd9d --- /dev/null +++ b/infrastructure/openldap/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - base