Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save j-griffith/9a182140073be6179e641c64607ed827 to your computer and use it in GitHub Desktop.
Save j-griffith/9a182140073be6179e641c64607ed827 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: kubevirt-hpp
labels:
k8s-app: kubevirt-hpp
namespace: kube-system
spec:
selector:
matchLabels:
k8s-app: kubevirt-hpp
template:
metadata:
labels:
k8s-app: kubevirt-hpp
spec:
serviceAccount: hostpath-sa
serviceAccountName: hostpath-sa
containers:
- name: kubevirt-hpp-provisioner
image: jgriffith/hpp:spec
imagePullPolicy: Always
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: PV_DIR
value: /var/hpvolumes
volumeMounts:
- name: pv-volume # root dir where your bind mounts will be on the node
mountPath: /var/hpvolumes
volumes:
- name: pv-volume
hostPath:
path: /hpvolumes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment