Skip to content

Create /opt/emqx/data/config failed, looks permission denied #716

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

You must be logged in to vote

Please add PodSecurityContext in EMQX custom resource like this:

  • in apps.emqx.io/v1beta4
apiVersion: apps.emqx.io/v1beta4
kind: EmqxEnterprise
metadata:
  name: emqx-ee
spec:
  persistent:
    metadata:
      name: emqx-ee
    spec:
      storageClassName: gce-pd
      resources:
        requests:
          storage: 20Mi
      accessModes:
        - ReadWriteOnce
  template:
    spec:
      podSecurityContext:
        runAsUser: 1000
        runAsGroup: 1000
        fsGroup: 1000
        fsGroupChangePolicy: Always
        supplementalGroups:
          - 1000
      emqxContainer:
        image:
          repository: emqx/emqx-ee
          version: 4.4.15
  • in apps.emqx.io/v2alpha1
apiV…

Replies: 1 comment

Comment options

Rory-Z
Apr 14, 2023
Maintainer Author

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