2

by using the helm chart of emqx operator(https://github.com/emqx/emqx-operator) and going to follow their guide (https://github.com/emqx/emqx-operator/blob/main/docs/en_US/tasks/configure-emqx-persistence.md) on how to set data persistence I get the error given in the following question.

I did exactly as described in the guide, but precisely I get the error reported in relation to emqx-core.

Moreover, By doing:

kubectl get sc

I get the following output:

NAME    PROVISIONER    RECLAIMPOLICY    VOLUMEBINDINGMODE    ALLOWVOLUMEEXPANSION
microk8s-hostpath (default)   microk8s.io/hostpath   Delete   WaitForFirstConsumer   false

Note: I use the APIVersion apps.emqx.io/v2alpha1

Andromeda
  • 1,205
  • 1
  • 14
  • 21
ADD_96
  • 25
  • 4

1 Answers1

0
apiVersion: apps.emqx.io/v2alpha1
kind: EMQX
metadata:
  name: emqx
spec:
  image: emqx:5.0
  coreTemplate:
    spec:
      volumeClaimTemplates:
        storageClassName: microk8s-hostpath
        resources:
          requests:
            storage: 20Mi
        accessModes:
        - ReadWriteOnce
      replicas: 3

You can try the above yaml configuration.

Adrian Mole
  • 49,934
  • 160
  • 51
  • 83
饶小力
  • 16
  • 1