Skip to content

Commit

Permalink
Merge pull request #59 from j14s/master
Browse files Browse the repository at this point in the history
Allow for custom local hostpath on the node
  • Loading branch information
rimusz authored Oct 17, 2019
2 parents 3ec77c3 + 5308b80 commit eeed8c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions stable/hostpath-provisioner/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
appVersion: "v0.2.1"
version: 0.2.3
appVersion: "v0.2.2"
version: 0.2.4
name: hostpath-provisioner
description: hostpath-provisioner is an automatic provisioner creating Persistent Volumes from the hostpath.
home: https://github.com/rimusz/charts/tree/master/stable/hostpath-provisioner
Expand Down
4 changes: 3 additions & 1 deletion stable/hostpath-provisioner/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: NODE_HOST_PATH
value: "{{ .Values.NodeHostPath }}"
volumeMounts:
- name: pv-volume
mountPath: /mnt/hostpath
Expand All @@ -39,4 +41,4 @@ spec:
volumes:
- name: pv-volume
hostPath:
path: /mnt/hostpath
path: {{ .Values.NodeHostPath }}
3 changes: 3 additions & 0 deletions stable/hostpath-provisioner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ storageClass:
## Set a StorageClass name
name: hostpath

## Set the local HostPath to be used on the node
NodeHostPath: /mnt/hostpath

rbac:
create: true
## Ignored if rbac.create is true
Expand Down

0 comments on commit eeed8c6

Please sign in to comment.