Skip to content

How do modify EMQX 5.0‘s acl.conf in EMQX Operator #689

Closed Answered by Rory-Z
18434831316 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @18434831316 you can create configMap by your self, and use .spec.[coreTemplate | replicantTemplate].extraVolumes and .spec.[coreTemplate | replicantTemplate].extraVolumeMounts to mounted it. like this

apiVersion: apps.emqx.io/v2alpha1
kind: EMQX
metadata:
  name: emqx
spec:
  image: emqx:5.0
  coreTemplate:
    spec:
      extraVolumes:
      - name: my-owner-acl
        configMap:  fake-acl-conf
      extraVolumeMounts:
      - name: my-owner-acl
        mountPath: /opt/emqx/etc/acl.conf
        subPath: acl.conf
  replicantTemplate:
    spec:
      extraVolumes:
      - name: my-owner-acl
        configMap:  fake-acl-conf
      extraVolumeMounts:
      - name: my-owner-acl
        m…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@18434831316
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by 18434831316
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants