Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/907f04a03d95631604f2a761de3472b3 to your computer and use it in GitHub Desktop.
Save velotiotech/907f04a03d95631604f2a761de3472b3 to your computer and use it in GitHub Desktop.
kind: Pod
apiVersion: v1
metadata:
name: pod-fs
spec:
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- csi-hostpathplugin
topologyKey: kubernetes.io/hostname
containers:
- name: my-frontend
image: busybox
volumeMounts:
- mountPath: "/data"
name: my-csi-volume
command: [ "sleep", "1000000" ]
volumes:
- name: my-csi-volume
persistentVolumeClaim:
claimName: pvc-fs # defined in csi-pvc.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment