Deploy Vault to yc-infra-prod

This commit is contained in:
Kochetkov S 2026-06-08 11:25:27 +03:00
parent 152ffd5fd5
commit 10b6ef51c3
5 changed files with 61 additions and 1 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,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../infrastructure/vault
patches:
- path: ./patches/vault.yaml
target:
group: helm.toolkit.fluxcd.io
version: v2
kind: HelmRelease
name: vault
namespace: vault

View File

@ -0,0 +1,30 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: vault
namespace: vault
spec:
interval: 5m
timeout: 15m
values:
global:
namespace: vault
autounseal:
transit:
address: "https://vault-unseal.infra.sarex.io"
keyName: "vault-infra-prod"
mountPath: "transit/"
tlsSkipVerify: false
secret:
name: "vault-transit-autounseal"
backup:
schedule: "0 * * * *"
secret:
name: "vault-backup-s3"
endpoint: "https://storage.yandexcloud.net"
prefix: "vault/yc-infra-prod/raft-snapshots"
server:
dataStorage:
size: 20Gi
ha:
replicas: 3

View File

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

View File

@ -8,7 +8,7 @@ spec:
chart: chart:
spec: spec:
chart: vault-contour chart: vault-contour
version: "0.1.0" version: "0.2.0"
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: yc-oci-charts name: yc-oci-charts