add minio + vault + lpp

This commit is contained in:
Kochetkov S 2026-05-28 16:12:35 +03:00
parent a3aa4d9295
commit 9a4701771e
6 changed files with 150 additions and 0 deletions

View File

@ -0,0 +1,12 @@
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: yc-oci-charts
namespace: flux-system
spec:
type: oci
interval: 10m0s
url: oci://cr.yandex/crp3ccidau046kdj8g9q/charts
secretRef:
name: yc-cr-auth

View File

@ -0,0 +1,28 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../infrastructure/local-path-provisioner
- ../../../infrastructure/minio
- ../../../infrastructure/vault
patches:
- path: ./patches/local-path-provisioner.yaml
target:
group: helm.toolkit.fluxcd.io
version: v2
kind: HelmRelease
name: local-path-provisioner
namespace: local-path-provisioner
- path: ./patches/minio.yaml
target:
group: helm.toolkit.fluxcd.io
version: v2
kind: HelmRelease
name: minio
namespace: minio
- path: ./patches/vault.yaml
target:
group: helm.toolkit.fluxcd.io
version: v2
kind: HelmRelease
name: vault
namespace: vault

View File

@ -0,0 +1,53 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: local-path-provisioner
namespace: local-path-provisioner
spec:
interval: 5m
timeout: 10m
values:
replicaCount: 1
image:
repository: cr.yandex/crp3ccidau046kdj8g9q/contour/local-path-provisioner-nn/local-path-provisioner
tag: v0.0.24
pullPolicy: IfNotPresent
helperImage:
repository: cr.yandex/crp3ccidau046kdj8g9q/contour/local-path-provisioner-nn/busybox
tag: latest
defaultSettings:
registrySecret: null
privateRegistry:
registryUrl: null
registryUser: null
registryPasswd: null
imagePullSecrets:
- name: regcred
nameOverride: ""
fullnameOverride: ""
storageClass:
create: true
defaultClass: false
name: local-path
reclaimPolicy: Delete
nodePathMap:
- node: DEFAULT_PATH_FOR_NON_LISTED_NODES
paths:
- /opt/local-path-provisioner
resources: {}
rbac:
create: true
serviceAccount:
create: true
name: ""
nodeSelector: {}
tolerations: []
affinity: {}
configmap:
name: local-path-config
setup: |-
set -eu
mkdir -m 0777 -p "$VOL_DIR"
teardown: |-
set -eu
rm -rf "$VOL_DIR"

View File

@ -0,0 +1,39 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: minio
namespace: minio
spec:
interval: 5m
timeout: 10m
values:
nameOverride: "minio"
mode: standalone
environment:
MINIO_SERVER_URL: "https://minio.contour.infra.sarex.tech"
MINIO_BROWSER_REDIRECT_URL: "https://minio.contour.infra.sarex.tech/console/"
MINIO_API_CORS_ALLOW_ORIGIN: "https://minio.contour.infra.sarex.tech"
imagePullSecrets:
- name: regcred
vaultRoot:
enabled: true
role: minio
authPath: auth/kubernetes
secretPath: secrets/data/minio/admin
rootUserKey: rootUser
rootPasswordKey: rootPassword
drivesPerNode: 1
replicas: 1
nodeSelector:
dedicated: s3
tolerations:
- key: dedicated
operator: Equal
value: s3
effect: NoSchedule
persistence:
storageClass: local-path
size: 100Gi
resources:
requests:
memory: 1Gi

View File

@ -0,0 +1,12 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: vault
namespace: vault
spec:
interval: 5m
timeout: 10m
values:
server:
dataStorage:
storageClass: local-path

View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./flux-system
- ./helm-repositories.yaml
- ./infrastructure