Helm 部署 rancher 的时候是values.yaml 没有定义 storageclass相关的存储方法吗?

貌似没有存储方案,怎么弄呢?有什么好的建议吗?

[root@rancher01 rancher]# cat values.yaml |grep -v '#' |grep -v "^$"
additionalTrustedCAs: false
antiAffinity: preferred
topologyKey: kubernetes.io/hostname
auditLog:
  destination: sidecar
  hostPath: /var/log/rancher/audit/
  level: 0
  maxAge: 1
  maxBackup: 1
  maxSize: 100
  image:
    repository: "rancher/mirrored-bci-micro"
    tag: 15.4.14.3
    pullPolicy: "IfNotPresent"
addLocal: "true"
debug: false
restrictedAdmin: false
imagePullSecrets: []
ingress:
  enabled: true
  includeDefaultExtraAnnotations: true
  extraAnnotations: {}
  ingressClassName: ""
  servicePort: 80
  tls:
    source: rancher
    secretName: tls-rancher-ingress
service:
  type: ""
  annotations: {}
letsEncrypt:
  environment: production
  ingress:
    class: ""
privateCA: false
noProxy: 127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,.svc,.cluster.local
rancherImage: rancher/rancher
replicas: 3
priorityClassName: rancher-critical
resources: {}
tls: ingress
systemDefaultRegistry: ""
useBundledSystemChart: false
certmanager:
  version: ""
customLogos:
  enabled: false
  volumeSubpaths:
    emberUi: "ember"
    vueUi: "vue"
  volumeKind: persistentVolumeClaim
  accessMode: ReadWriteOnce
  size: 1Gi
postDelete:
  enabled: true
  image:
    repository: rancher/shell
    tag: v0.1.20
  namespaceList:
    - cattle-fleet-system
    - cattle-system
    - rancher-operator-system
  timeout: 120
  ignoreTimeoutError: false
bootstrapPassword: ""
livenessProbe:
  initialDelaySeconds: 60
  periodSeconds: 30
readinessProbe:
  initialDelaySeconds: 5
  periodSeconds: 30
global:
  cattle:
    psp:
      enabled: "" 

使用 helm 安装的 rancher,数据会自动传入到 local 集群的 etcd 里,不需要你设置 storageclass 单独存储。

后续的升级或者修改,数据不会消失。