infra: add vault injector
This commit is contained in:
parent
b1f9df4d83
commit
1add32e683
@ -13,3 +13,4 @@ resources:
|
|||||||
- longhorn-ui/kustomization.yaml
|
- longhorn-ui/kustomization.yaml
|
||||||
- postgres/kustomization.yaml
|
- postgres/kustomization.yaml
|
||||||
- ../platform/vault-csi/kustomization.yaml
|
- ../platform/vault-csi/kustomization.yaml
|
||||||
|
- ../platform/vault-injector/kustomization.yaml
|
||||||
|
|||||||
@ -0,0 +1,16 @@
|
|||||||
|
# clusters/atlas/flux-system/platform/vault-injector/kustomization.yaml
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: vault-injector
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
path: ./infrastructure/vault-injector
|
||||||
|
targetNamespace: vault
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
||||||
|
namespace: flux-system
|
||||||
|
wait: true
|
||||||
43
infrastructure/vault-injector/helmrelease.yaml
Normal file
43
infrastructure/vault-injector/helmrelease.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# infrastructure/vault-injector/helmrelease.yaml
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: vault-injector
|
||||||
|
namespace: vault
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: vault
|
||||||
|
version: 0.31.0
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: hashicorp
|
||||||
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
remediation: { retries: 3 }
|
||||||
|
timeout: 10m
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
remediateLastFailure: true
|
||||||
|
cleanupOnFail: true
|
||||||
|
timeout: 10m
|
||||||
|
values:
|
||||||
|
global:
|
||||||
|
externalVaultAddr: http://vault.vault.svc.cluster.local:8200
|
||||||
|
tlsDisable: true
|
||||||
|
server:
|
||||||
|
enabled: false
|
||||||
|
csi:
|
||||||
|
enabled: false
|
||||||
|
injector:
|
||||||
|
enabled: true
|
||||||
|
replicas: 1
|
||||||
|
agentImage:
|
||||||
|
repository: hashicorp/vault
|
||||||
|
tag: "1.17.6"
|
||||||
|
webhook:
|
||||||
|
failurePolicy: Ignore
|
||||||
|
nodeSelector:
|
||||||
|
node-role.kubernetes.io/worker: "true"
|
||||||
5
infrastructure/vault-injector/kustomization.yaml
Normal file
5
infrastructure/vault-injector/kustomization.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# infrastructure/vault-injector/kustomization.yaml
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- helmrelease.yaml
|
||||||
Loading…
x
Reference in New Issue
Block a user