Thank you for reading this post, don't forget to subscribe!
charts/rabbitmq/Chart.yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
annotations: category: Infrastructure apiVersion: v2 appVersion: 3.9.8 dependencies: - name: common repository: https://charts.bitnami.com/bitnami tags: - bitnami-common version: 1.x.x description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP) engine: gotpl home: https://github.com/bitnami/charts/tree/master/bitnami/rabbitmq icon: https://bitnami.com/assets/stacks/rabbitmq/img/rabbitmq-stack-220x234.png keywords: - rabbitmq - message queue - AMQP maintainers: - email: containers@bitnami.com name: Bitnami name: rabbitmq sources: - https://github.com/bitnami/bitnami-docker-rabbitmq - https://www.rabbitmq.com version: 8.24.2 dependencies: - name: rabbitmq version: 8.24.2 repository: "@bitnami" |
charts/rabbitmq/Chart.lock
1 2 3 4 5 6 7 |
dependencies: - name: rabbitmq repository: https://charts.bitnami.com/bitnami version: 8.24.2 digest: sha256:0c6e5cf6041aec21cf76a58781c03bcd091f9314dbc140cdc5461715974d0921 generated: "2021-11-03T14:05:25.044796687+06:00" |
charts/rabbitmq/templates/external-secrets.yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 |
{{- if .Values.ExternalSecrets }} apiVersion: kubernetes-client.io/v1 kind: ExternalSecret metadata: name: {{ include "rabbitmq.name" . }} labels: {{- include "rabbitmq.labels" . | nindent 4 }} spec: backendType: secretsManager dataFrom: - {{ .Values.ExternalSecrets }} {{- end }} |
charts/rabbitmq/templates/_helpers.tpl
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
{{/* Expand the name of the chart. */}} {{- define "rabbitmq.name" -}} {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} {{- end }} {{/* Create a default fully qualified app name. We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). If release name contains chart name it will be used as a full name. */}} {{- define "rabbitmq.fullname" -}} {{- if .Values.fullnameOverride }} {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} {{- else }} {{- $name := default .Chart.Name .Values.nameOverride }} {{- if contains $name .Release.Name }} {{- .Release.Name | trunc 63 | trimSuffix "-" }} {{- else }} {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} {{- end }} {{- end }} {{- end }} {{/* Create chart name and version as used by the chart label. */}} {{- define "rabbitmq.chart" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} {{- end }} {{/* Common labels */}} {{- define "rabbitmq.labels" -}} helm.sh/chart: {{ include "rabbitmq.chart" . }} {{ include "rabbitmq.selectorLabels" . }} {{- if .Chart.AppVersion }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }} {{/* Selector labels */}} {{- define "rabbitmq.selectorLabels" -}} app.kubernetes.io/name: {{ include "rabbitmq.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} {{- end }} {{/* Create the name of the service account to use */}} {{- define "rabbitmq.serviceAccountName" -}} {{- if .Values.serviceAccount.create }} {{- default (include "rabbitmq.fullname" .) .Values.serviceAccount.name }} {{- else }} {{- default "default" .Values.serviceAccount.name }} {{- end }} {{- end }} |
charts/helmfile.d/helmfile.yaml
1 2 3 4 5 6 7 8 9 10 11 |
repositories: - name: "stable" url: "https://charts.helm.sh/stable" - name: "bitnami" url: "https://charts.bitnami.com/bitnami" helmfiles: - "releases/rabbitmq.yaml" |
charts/helmfile.d/values/dev/rabbitmq.yaml.gotmpl
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
rabbitmq: image: registry: docker.io repository: bitnami/rabbitmq tag: 3.9.8-debian-10-r6 pullPolicy: IfNotPresent persistence: enabled: true storageClass: "gp2" size: 8Gi resources: limits: cpu: 500m memory: 1Gi requests: cpu: 100m memory: 128Mi ingress: enabled: true hostname: rabbitmq.test.local auth: username: user existingPasswordSecret: "rabbitmq" existingErlangSecret: "rabbitmq" metrics: enabled: true serviceMonitor: enabled: true interval: 30s path: /metrics/per-object ExternalSecrets: "/dev/external-secret-rabbitmq-server-dev" |
charts/helmfile.d/releases/rabbitmq.yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
releases: - name: "rabbitmq" createNamespace: false namespace: {{ requiredEnv "ENVIRONMENT_NAME" }} labels: chart: "bitnami/rabbitmq" component: "rabbitmq" namespace: {{ requiredEnv "ENVIRONMENT_NAME" }} chart: "../../rabbitmq" wait: true installed: {{ env "INSTALL_RABBITMQ" | default "false" }} values: - ../values/{{ requiredEnv "ENVIRONMENT_NAME" }}/rabbitmq.yaml.gotmpl - ../values/nodeSelector.yaml.gotmpl |
charts/helmfile.d/values/nodeSelector.yaml.gotmpl
1 2 3 4 |
nodeSelector: node.kubernetes.io/lifecycle: spot |
поставить
INSTALL_RABBITMQ=true ENVIRONMENT_NAME=dev helmfile -l component=rabbitmq sync