I would like to add labels for Statefulset and PVC, I am using latest version of CRD 0.5.0, RabbitMQ operator version 1.6.0 and RabbitMQ version is 3.8.14.
crYaml: |-
kind: RabbitmqCluster
metadata:
name: rabbitmqcluster
spec:
replicas: 3
image:
gcr.io/<path>/rabbitmq:3.8.14
service:
type: LoadBalancer
annotations:
persistence:
storageClassName: standard
storage: 10Gi
resources:
requests:
cpu: 1000m
memory: 2Gi
limits:
cpu: 1000m
memory: 2Gi
rabbitmq:
additionalPlugins:
- rabbitmq_sharding
- rabbitmq_stomp
- rabbitmq_shovel
- rabbitmq_federation
- rabbitmq_federation_management
additionalConfig: |
cluster_formation.peer_discovery_backend = rabbit_peer_discovery_k8s
log.console.level = debug
override:
statefulSet:
spec:
template:
spec:
terminationGracePeriodSeconds: 7200
containers:
- name: rabbitmq
volumeMounts:
- mountPath: /opt/rabbitmq/community-plugins
name: community-plugins
volumes:
- name: community-plugins
emptyDir: {}
initContainers:
- command:
- sh
- -c
- |
curl -H "Authorization: Bearer <token>" <link to download> --output <output path here>
image: curlimages/curl
imagePullPolicy: IfNotPresent
name: copy-community-plugins
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 500m
memory: 1Gi
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /community-plugins/
name: community-plugins