nacos-group / nacos-k8s

This project contains a Nacos Docker image meant to facilitate the deployment of Nacos on Kubernetes using StatefulSets.
611 stars 468 forks source link

create Pod nacos-0 in StatefulSet nacos failed error: Pod "nacos-0" is invalid: spec.containers[0].env[3].valueFrom.fieldRef.fieldPath: Invalid value: "spec.replicas": error converting fieldPath: field label not supported: spec.replicas #232

Open aresa7796 opened 3 years ago

aresa7796 commented 3 years ago

I use helm install nacos; I get a error:

create Pod nacos-0 in StatefulSet nacos failed error: Pod "nacos-0" is invalid: spec.containers[0].env[3].valueFrom.fieldRef.fieldPath: Invalid value: "spec.replicas": error converting fieldPath: field label not supported: spec.replicas

@zhuifeng7000

paderlol commented 3 years ago

I get it

zerols commented 3 years ago

Has this problem been resolved? i user with1.21.1 helm install nacos . --set global.mode=cluster, --set resources.requests.memory=1Gi, --set nacos.replicaCount=3, --set nacos.health.enabled=true, --set nacos.storage.type=mysql, --set persistence.enabled=true, --set persistence.data.storageClassName=nfs-client, -n mynamespace, with the same error

paderlol commented 3 years ago

fixed