Created
June 29, 2020 08:44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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