Skip to content

Commit

Permalink
chore(rabbitmq): add prod
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Jan 3, 2024
1 parent 38dfe12 commit ffec0e0
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 5 deletions.
32 changes: 32 additions & 0 deletions application.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,38 @@ resource "argocd_application" "keycloak" {
}
}

resource "argocd_application" "rabbitmq" {
metadata {
name = "rabbitmq"
namespace = "guardian"
}
spec {
project = argocd_project.guardian.metadata[0].name

source {
repo_url = var.repo_url
target_revision = "HEAD"
path = "rabbitmq/prod"
plugin {
name = "avp-kustomize"
env {
name = "APP_REPO"
value = "NaturalSelectionLabs/Hephaestus"
}
env {
name = "AVP_SECRET"
value = "guardian:avp-prod"
}
}
}

destination {
server = argocd_cluster.prod.server
namespace = "guardian"
}
}
}

resource "argocd_application" "jaeger" {
metadata {
name = "jaeger"
Expand Down
13 changes: 13 additions & 0 deletions rabbitmq/prod/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- route.yaml
- secrets.yaml

helmCharts:
- name: rabbitmq
releaseName: rabbitmq
repo: https://charts.bitnami.com/bitnami
valuesFile: values.yaml
version: 11.x.x
9 changes: 4 additions & 5 deletions rabbitmq/prod/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
apiVersion: v1
data:
rabbitmq-erlang-cookie:
rabbitmq-password:
kind: Secret
metadata:
name: rabbitmq
namespace: guardian
labels:
app.kubernetes.io/managed-by: Helm
annotations:
meta.helm.sh/release-name: rabbitmq
meta.helm.sh/release-namespace: guardian
avp.kubernetes.io/path: "kv/data/guardian/rabbitmq"
type: Opaque
stringData:
rabbitmq-erlang-cookie: "<ERLANG_COOKIE>"
rabbitmq-password: "<PASSWORD>"

0 comments on commit ffec0e0

Please sign in to comment.