My packaged version of the Kubernetes HostPath provisioner
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
579 B

kind: Pod
apiVersion: v1
metadata:
name: hostpath-provisioner
spec:
containers:
- name: hostpath-provisioner
image: hostpath-provisioner:latest
imagePullPolicy: "IfNotPresent"
env:
- name: HOSTPATH_TO_USE
value: /tmp/openshift/
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: pv-volume
mountPath: /tmp/openshift
volumes:
- name: pv-volume
hostPath:
path: /tmp/openshift
serviceAccount: hostpath-provisioner