Skip to content

Instantly share code, notes, and snippets.

@moolen
Created January 21, 2022 08:26
Show Gist options
  • Save moolen/733e0a04f73f8c49e48fbc9730ae7660 to your computer and use it in GitHub Desktop.
Save moolen/733e0a04f73f8c49e48fbc9730ae7660 to your computer and use it in GitHub Desktop.
kubeedge csi usage example
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
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: csi-hostpath-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
storageClassName: csi-hostpath-sc
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