helmfile.yaml 988 Bytes
environments:
  default:
    values:
      - namespace: kube-system
        storageClass:
          default: true
          name: local-path

        nodePaths:
          - node: DEFAULT_PATH_FOR_NON_LISTED_NODES
            paths:
              - /opt/local-path-provisioner
---

repositories:
  - name: local-path-provisioner
    url: git+https://github.com/rancher/local-path-provisioner.git@deploy/chart?ref=v0.0.22&sparse=0

releases:
  - name: local-path-provisioner
    namespace: {{ .Values.namespace }}
    chart: local-path-provisioner/local-path-provisioner
    values:
      - storageClass:
          defaultClass: {{ .Values.storageClass.default }}
          name: {{ .Values.storageClass.name }}
        nodePathMap:
          {{ .Values.nodePaths | toYaml | nindent 10 }}
        tolerations:
          - effect: NoSchedule
            key: node-role.kubernetes.io/master
            operator: Exists
        nodeSelector:
          node-role.kubernetes.io/master: "true"