feat: add rabbitmq into common services
This commit is contained in:
parent
76db418b64
commit
f2fa481a1d
7 changed files with 88 additions and 0 deletions
|
|
@ -11,5 +11,6 @@ resources:
|
|||
- meilisearch.yaml
|
||||
- namespaces.yaml
|
||||
- prometheus-stack.yaml
|
||||
- rabbitmq.yaml
|
||||
- traefik.yaml
|
||||
- quickchart.yaml
|
||||
|
|
|
|||
26
flux/kustomizations/rabbitmq.yaml
Normal file
26
flux/kustomizations/rabbitmq.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: rabbitmq
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
path: ./infrastructure/rabbitmq
|
||||
prune: false
|
||||
healthChecks:
|
||||
- apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: HelmRepository
|
||||
name: bitnami
|
||||
namespace: common-services
|
||||
- apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
name: rabbitmq
|
||||
namespace: common-services
|
||||
dependsOn:
|
||||
- name: namespaces
|
||||
namespace: flux-system
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
timeout: 5m
|
||||
|
|
@ -12,3 +12,4 @@ resources:
|
|||
- review.yaml
|
||||
- staging.yaml
|
||||
- production.yaml
|
||||
- rabbitmq.yaml
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: rabbitmq-credentials
|
||||
namespace: common-services
|
||||
spec:
|
||||
refreshInterval: "15s"
|
||||
secretStoreRef:
|
||||
name: vault-secret-store
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
name: rabbitmq-credentials
|
||||
template:
|
||||
engineVersion: v2
|
||||
type: Opaque
|
||||
data:
|
||||
rabbitmq-password: "{{ .password }}"
|
||||
data:
|
||||
- secretKey: password
|
||||
remoteRef:
|
||||
key: secret/rabbitmq
|
||||
property: password
|
||||
24
infrastructure/rabbitmq/helm-release.yaml
Normal file
24
infrastructure/rabbitmq/helm-release.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: rabbitmq
|
||||
namespace: common-services
|
||||
spec:
|
||||
interval: 1m0s
|
||||
chart:
|
||||
spec:
|
||||
chart: rabbitmq
|
||||
version: 16.0.3
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: rabbitmq
|
||||
namespace: common-services
|
||||
values:
|
||||
global:
|
||||
defaultStorageClass: "csi-cinder-high-speed"
|
||||
image:
|
||||
tag: 4.0.1
|
||||
auth:
|
||||
username: rabbitmq
|
||||
existingPasswordSecret: rabbitmq-credentials
|
||||
9
infrastructure/rabbitmq/helm-repository.yaml
Normal file
9
infrastructure/rabbitmq/helm-repository.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: HelmRepository
|
||||
metadata:
|
||||
name: bitnami
|
||||
namespace: common-services
|
||||
spec:
|
||||
interval: 1h0m0s
|
||||
url: oci://registry-1.docker.io/bitnamicharts
|
||||
type: "oci"
|
||||
5
infrastructure/rabbitmq/kustomization.yaml
Normal file
5
infrastructure/rabbitmq/kustomization.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- helm-repository.yaml
|
||||
- helm-release.yaml
|
||||
Loading…
Add table
Reference in a new issue