Sign inSign up

superdowell/rabbitmq-operator

By superdowell

Updated almost 4 years ago

Image
0

175

superdowell/rabbitmq-operator repository overview

build from: https://github.com/rabbitmq/cluster-operator.git

修改内容: api新增volumes、volumeMounts字段

crd.yaml:https://blog.tanyi.vip/rabbitmq/crds.yaml

集群示例:

apiVersion: rabbitmq.com/v1beta1
kind: RabbitmqCluster
metadata:
  name: rabbitmq
  namespace: rabbitmq-system
spec:
  replicas: 3
  resources:
    requests:
      cpu: 2
      memory: 10Gi
    limits:
      cpu: 4
      memory: 10Gi
  rabbitmq:
    additionalPlugins:
      - rabbitmq_management
    envConfig:
    additionalConfig: |
      log.console.level = error
      cluster_partition_handling = pause_minority
      vm_memory_high_watermark_paging_ratio = 0.99
      disk_free_limit.relative = 1.0
      collect_statistics_interval = 10000
      default_user=guest
      default_pass=guest
  persistence:
    storageClassName: nfs-csi
    storage: "20Gi"
  volumeMounts:
    - name: host-time
      mountPath: /etc/localtime
      readOnly: true
  volumes:
    - name: host-time
      hostPath: 
        path: /etc/localtime
  

Tag summary

Content type

Image

Digest

sha256:89f03ebe3

Size

20.7 MB

Last updated

almost 4 years ago

docker pull superdowell/rabbitmq-operator:v2.0.1