先创建pvc,名称为nacos-mysql-pvc

kubectl apply -f ./nacos-mysql-pvc

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: nacos-mysql-pvc
namespace: wckj-ops
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 11Gi
storageClassName: dynamic-uat

helm install apphub/nacos —version 0.1.0 —name nacos —set image.tag=1.1.4,mysql.master.persistence.enabled=true,mysql.master.persistence.existingClaim=nacos-mysql-pvc-prod,global.mode=cluster —namespace=wckj-ops

因为持久化无法完成,先使用无pv的

helm install apphub/nacos —version 0.1.0 —name nacos —set image.tag=1.1.4,global.mode=cluster —namespace=wckj-ops

测试使用

helm install nacos-0.1.0.tgz —name nacos —set image.tag=1.1.4,mysql.master.persistence.enabled=true,mysql.master.persistence.existingClaim=nacos-mysql-pvc-prod,global.mode=cluster