From f69f73a18cc11687b23092a9e506003f5d0418d9 Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Thu, 9 Apr 2026 13:03:36 +0300 Subject: [PATCH] add lpp --- .../infrastructure/kustomization.yaml | 7 ++++++ .../patches/local-path-provisioner.yaml | 11 ++++++++ infrastructure/kustomization.yaml | 1 + .../base/helmrelease.yaml | 25 +++++++++++++++++++ .../base/kustomization.yaml | 6 +++++ .../base/namespace.yaml | 4 +++ .../local-path-provisioner/kustomization.yaml | 4 +++ 7 files changed, 58 insertions(+) create mode 100644 clusters/yc-k8s-test/infrastructure/patches/local-path-provisioner.yaml create mode 100644 infrastructure/local-path-provisioner/base/helmrelease.yaml create mode 100644 infrastructure/local-path-provisioner/base/kustomization.yaml create mode 100644 infrastructure/local-path-provisioner/base/namespace.yaml create mode 100644 infrastructure/local-path-provisioner/kustomization.yaml diff --git a/clusters/yc-k8s-test/infrastructure/kustomization.yaml b/clusters/yc-k8s-test/infrastructure/kustomization.yaml index c296976..062b2f2 100644 --- a/clusters/yc-k8s-test/infrastructure/kustomization.yaml +++ b/clusters/yc-k8s-test/infrastructure/kustomization.yaml @@ -57,3 +57,10 @@ patches: version: v1 kind: ClusterIssuer name: letsencrypt-issuer-istio + - path: ./patches/local-path-provisioner.yaml + target: + group: helm.toolkit.fluxcd.io + version: v2 + kind: HelmRelease + name: local-path-provisioner + namespace: local-path-provisioner diff --git a/clusters/yc-k8s-test/infrastructure/patches/local-path-provisioner.yaml b/clusters/yc-k8s-test/infrastructure/patches/local-path-provisioner.yaml new file mode 100644 index 0000000..c8c4467 --- /dev/null +++ b/clusters/yc-k8s-test/infrastructure/patches/local-path-provisioner.yaml @@ -0,0 +1,11 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: local-path-provisioner + namespace: local-path-provisioner +spec: + interval: 5m + timeout: 10m + values: + imagePullSecrets: + - name: regcred diff --git a/infrastructure/kustomization.yaml b/infrastructure/kustomization.yaml index 91e761d..aa67417 100644 --- a/infrastructure/kustomization.yaml +++ b/infrastructure/kustomization.yaml @@ -4,6 +4,7 @@ kind: Kustomization resources: - cert-manager - dashboard + - local-path-provisioner - istio-base - istio-pilot - istio-gateway diff --git a/infrastructure/local-path-provisioner/base/helmrelease.yaml b/infrastructure/local-path-provisioner/base/helmrelease.yaml new file mode 100644 index 0000000..b8b3bb8 --- /dev/null +++ b/infrastructure/local-path-provisioner/base/helmrelease.yaml @@ -0,0 +1,25 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: local-path-provisioner + namespace: local-path-storage +spec: + interval: 10m + chart: + spec: + chart: local-path-provisioner-contour + version: "0.0.24" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + imagePullSecrets: + - name: regcred diff --git a/infrastructure/local-path-provisioner/base/kustomization.yaml b/infrastructure/local-path-provisioner/base/kustomization.yaml new file mode 100644 index 0000000..1d5a403 --- /dev/null +++ b/infrastructure/local-path-provisioner/base/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: local-path-storage +resources: + - namespace.yaml + - helmrelease.yaml diff --git a/infrastructure/local-path-provisioner/base/namespace.yaml b/infrastructure/local-path-provisioner/base/namespace.yaml new file mode 100644 index 0000000..6b3e55d --- /dev/null +++ b/infrastructure/local-path-provisioner/base/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: local-path-provisioner diff --git a/infrastructure/local-path-provisioner/kustomization.yaml b/infrastructure/local-path-provisioner/kustomization.yaml new file mode 100644 index 0000000..3c2f51f --- /dev/null +++ b/infrastructure/local-path-provisioner/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ./base