A simple Kubernetes device plugin.
267
Learning how to implement a Kubernetes device-plugin. This device-plugin will automatically maps the SATA device according to your container SATA requirement.
The list of prerequisites for running the SATA device-plugin is described below:
DevicePlugins feature gate enabled.To install the SATA device-plugin:
$ kubectl apply -f https://raw.githubusercontent.com/kubedev/device-plugin/master/artifacts/device-plugin.yml
$ kubectl -n kube-system get po -l name=device-plugin
NAME READY STATUS RESTARTS AGE
device-plugin-ds-jlj8k 1/1 Running 0 38s
device-plugin-ds-sn2ff 1/1 Running 0 38s
To run the SATA pod:
$ kubectl apply -f https://raw.githubusercontent.com/kubedev/device-plugin/master/artifacts/test-device-pod.yml
$ kubectl get po
NAME READY STATUS RESTARTS AGE
test-device-pod 1/1 Running 0 30s
$ kubectl exec -ti test-device-pod sh
/ # ls /dev/ | grep "sd[a-z]"
sdb
/ # mkfs.vfat /dev/sdb
/ # od -vAn -N4 -tu4 < /dev/sdb
1838176491
Content type
Image
Digest
Size
10.8 MB
Last updated
over 7 years ago
docker pull kubedev/simple-device-plugin