A skeleton k8s device plugin project.
-
Build a stand-alone executable
$ go build
-
Run a stand-alone executable
$ ./deviceplugin
-
Build a Docker image
$ docker build --tag localhost:5000/deviceplugin:latest .
-
Run a Docker container
$ docker run -d localhost:5000/deviceplugin:latest
-
Push the Docker image to a local Docker registry
$ docker push localhost:5000/deviceplugin:latest
-
Create a Kubernetes pod
$ kubectl apply -f devicepluginpod.yaml
-
List advertised device plugin resources
$ kubectl describe node <node-name> $ kubectl get nodes -o json | jq '.items[].status.allocatable'