Closed DnPlas closed 3 months ago
We need to add command
and args
section to all deployments according to the spec https://github.com/canonical/data-science-stack/compare/main...frenchwr/intel-gpu-integration#diff-e5f395a6247e35966f0a29978433e744bacd4913c9101d1ca46e364bdc249293
This commit introduces an automatic way of scheduling Notebook Servers on Nodes labeled as intel.feature.node.kubernetes.io/gpu. This commit also affects the command and args that run for the Notebook Servers containers, as these are now part of the requirements for making Intel GPUs work. They should be exactly as this.
Fixes #147
Manual testing
Assuming you have a microk8s cluster with hostpath-storage enabled
pip install .
dss initialize --kubeconfig="$(sudo microk8s config)"
kubectl label node <name of your node> intel.feature.node.kubernetes.io/gpu=true
dss create my-notebook --image=ubuntu
Deployment
of the server has the resource limits we are interested in:command
andargs
are always set:Alternatively, you can try the create command w/o labelling the Node. In that case, the
Deployment
should not have any of the resource limits.