diff --git a/clusters/yc-k8s-test/infrastructure/kustomization.yaml b/clusters/yc-k8s-test/infrastructure/kustomization.yaml new file mode 100644 index 0000000..4d8d06a --- /dev/null +++ b/clusters/yc-k8s-test/infrastructure/kustomization.yaml @@ -0,0 +1,33 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../../../infrastructure +patches: + - path: ./patches/cert-manager.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: cert-manager + namespace: cert-manager + - path: ./patches/istio-base.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: istio-base + namespace: istio-system + - path: ./patches/istio-pilot.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: istiod + namespace: istio-system + - path: ./patches/istio-gateway.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: ingressgateway + namespace: istio-system diff --git a/clusters/yc-k8s-test/infrastructure/patches/cert-manager.yaml b/clusters/yc-k8s-test/infrastructure/patches/cert-manager.yaml new file mode 100644 index 0000000..310f53c --- /dev/null +++ b/clusters/yc-k8s-test/infrastructure/patches/cert-manager.yaml @@ -0,0 +1,12 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cert-manager + namespace: cert-manager +spec: + interval: 5m + timeout: 10m + values: + global: + imagePullSecrets: + - regcred diff --git a/clusters/yc-k8s-test/infrastructure/patches/istio-base.yaml b/clusters/yc-k8s-test/infrastructure/patches/istio-base.yaml new file mode 100644 index 0000000..0c7f66e --- /dev/null +++ b/clusters/yc-k8s-test/infrastructure/patches/istio-base.yaml @@ -0,0 +1,8 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: istio-base + namespace: istio-system +spec: + interval: 5m + timeout: 10m diff --git a/clusters/yc-k8s-test/infrastructure/patches/istio-gateway.yaml b/clusters/yc-k8s-test/infrastructure/patches/istio-gateway.yaml new file mode 100644 index 0000000..df607ed --- /dev/null +++ b/clusters/yc-k8s-test/infrastructure/patches/istio-gateway.yaml @@ -0,0 +1,13 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: ingressgateway + namespace: istio-system +spec: + interval: 5m + timeout: 10m + dependsOn: + - name: istio-base + namespace: istio-system + - name: istiod + namespace: istio-system diff --git a/clusters/yc-k8s-test/infrastructure/patches/istio-pilot.yaml b/clusters/yc-k8s-test/infrastructure/patches/istio-pilot.yaml new file mode 100644 index 0000000..061b753 --- /dev/null +++ b/clusters/yc-k8s-test/infrastructure/patches/istio-pilot.yaml @@ -0,0 +1,11 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: istiod + namespace: istio-system +spec: + interval: 5m + timeout: 10m + dependsOn: + - name: istio-base + namespace: istio-system diff --git a/clusters/yc-k8s-test/kustomization.yaml b/clusters/yc-k8s-test/kustomization.yaml index 0a9a78c..a8384a3 100644 --- a/clusters/yc-k8s-test/kustomization.yaml +++ b/clusters/yc-k8s-test/kustomization.yaml @@ -3,4 +3,4 @@ kind: Kustomization resources: - ./flux-system - ./helm-repositories.yaml - - ../../infrastructure + - ./infrastructure