++ add vault, rabbitmq and istio for vad
This commit is contained in:
parent
5b3fb7d3f6
commit
83262697c0
@ -9,9 +9,7 @@ spec:
|
||||
interval: 1m0s
|
||||
ref:
|
||||
branch: master
|
||||
secretRef:
|
||||
name: flux-system
|
||||
url: http://192.168.8.141:31361/gitea-admin/iac.git
|
||||
url: http://192.168.8.141:31361/infra/iac.git
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
|
||||
@ -3,3 +3,9 @@ kind: Kustomization
|
||||
resources:
|
||||
- ./flux-system
|
||||
- ./helm-repositories.yaml
|
||||
|
||||
- ../../infrastructure/istio-base/vad
|
||||
- ../../infrastructure/istio-pilot/vad
|
||||
- ../../infrastructure/istio-gateway/vad
|
||||
- ../../infrastructure/vault/vad
|
||||
- ../../infrastructure/rabbitmq/vad
|
||||
|
||||
4
infrastructure/istio-base/vad/kustomization.yaml
Normal file
4
infrastructure/istio-base/vad/kustomization.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
4
infrastructure/istio-gateway/vad/kustomization.yaml
Normal file
4
infrastructure/istio-gateway/vad/kustomization.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
4
infrastructure/istio-pilot/vad/kustomization.yaml
Normal file
4
infrastructure/istio-pilot/vad/kustomization.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
6
infrastructure/rabbitmq/vad/kustomization.yaml
Normal file
6
infrastructure/rabbitmq/vad/kustomization.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
patches:
|
||||
- path: rabbitmq.yaml
|
||||
65
infrastructure/rabbitmq/vad/rabbitmq.yaml
Normal file
65
infrastructure/rabbitmq/vad/rabbitmq.yaml
Normal file
@ -0,0 +1,65 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: rabbitmq
|
||||
namespace: rabbitmq
|
||||
spec:
|
||||
interval: 5m
|
||||
timeout: 10m
|
||||
postRenderers:
|
||||
- kustomize:
|
||||
patches:
|
||||
- target:
|
||||
group: apps
|
||||
version: v1
|
||||
kind: StatefulSet
|
||||
namespace: rabbitmq
|
||||
patch: |-
|
||||
- op: add
|
||||
path: /spec/template/spec/nodeSelector
|
||||
value:
|
||||
dedicated: generic
|
||||
- op: add
|
||||
path: /spec/template/spec/tolerations
|
||||
value: []
|
||||
values:
|
||||
global:
|
||||
security:
|
||||
allowInsecureImages: true
|
||||
virtualService: null
|
||||
gateway: null
|
||||
certificate: null
|
||||
metrics:
|
||||
serviceMonitor:
|
||||
enabled: false
|
||||
default:
|
||||
enabled: false
|
||||
perObject:
|
||||
enabled: false
|
||||
detailed:
|
||||
enabled: false
|
||||
extraServiceMonitors: []
|
||||
replicaCount: 1
|
||||
resources:
|
||||
requests:
|
||||
memory: 1Gi
|
||||
persistence:
|
||||
storageClass: local-path
|
||||
size: 10Gi
|
||||
auth:
|
||||
securePassword: true
|
||||
enableLoopbackUser: false
|
||||
existingPasswordSecret: ""
|
||||
vault:
|
||||
enabled: true
|
||||
role: rabbitmq
|
||||
authPath: auth/kubernetes
|
||||
secretPath: secrets/data/rabbitmq/auth
|
||||
usernameKey: username
|
||||
passwordKey: password
|
||||
advancedConfiguration: |-
|
||||
[
|
||||
{rabbit, [
|
||||
{loopback_users, []}
|
||||
]}
|
||||
].
|
||||
6
infrastructure/vault/vad/kustomization.yaml
Normal file
6
infrastructure/vault/vad/kustomization.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base
|
||||
patches:
|
||||
- path: vault.yaml
|
||||
40
infrastructure/vault/vad/vault.yaml
Normal file
40
infrastructure/vault/vad/vault.yaml
Normal file
@ -0,0 +1,40 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: vault
|
||||
namespace: vault
|
||||
spec:
|
||||
interval: 5m
|
||||
timeout: 10m
|
||||
postRenderers:
|
||||
- kustomize:
|
||||
patches:
|
||||
- target:
|
||||
group: apps
|
||||
version: v1
|
||||
kind: StatefulSet
|
||||
namespace: vault
|
||||
name: vault-vault-contour
|
||||
patch: |-
|
||||
- op: replace
|
||||
path: /spec/template/spec/nodeSelector
|
||||
value:
|
||||
dedicated: generic
|
||||
- op: replace
|
||||
path: /spec/template/spec/tolerations
|
||||
value: []
|
||||
values:
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
backup:
|
||||
enabled: false
|
||||
injector:
|
||||
nodeSelector:
|
||||
dedicated: generic
|
||||
tolerations: []
|
||||
server:
|
||||
nodeSelector:
|
||||
dedicated: generic
|
||||
tolerations: []
|
||||
dataStorage:
|
||||
storageClass: local-path
|
||||
Loading…
Reference in New Issue
Block a user