Created
January 21, 2022 08:26
-
-
Save moolen/733e0a04f73f8c49e48fbc9730ae7660 to your computer and use it in GitHub Desktop.
kubeedge csi usage example
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: testpod-1 | |
spec: | |
nodeSelector: | |
kubernetes.io/hostname: TEST-HOSTNAME # insert your hostname here | |
node-role.kubernetes.io/edge: "" | |
containers: | |
- name: my-frontend | |
image: docker.io/busybox | |
volumeMounts: | |
- mountPath: "/data" | |
name: my-csi-volume | |
command: [ "sleep", "1000000" ] | |
volumes: | |
- name: my-csi-volume | |
persistentVolumeClaim: | |
claimName: csi-hostpath-pvc |
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
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: csi-hostpath-pvc | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 100Mi | |
storageClassName: csi-hostpath-sc |
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
apiVersion: storage.k8s.io/v1 | |
kind: StorageClass | |
metadata: | |
name: csi-hostpath-sc | |
provisioner: csi-hostpath | |
reclaimPolicy: Retain | |
volumeBindingMode: WaitForFirstConsumer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment