- An ASK cluster is created. For more information, see Create an ASK cluster
- The cluster runs as expected. You can log on to the Container Service for Kubernetes (ACK) console, navigate to the Clusters page, and then check whether the cluster is in the Running state.
- create jupyter deployment & service
kubectl apply -f jupyter-gpu.yaml
- wait deployment ready
kubectl get po |grep notebook
# NAME READY STATUS RESTARTS AGE
# notebook-d68d854c9-ptvtp 1/1 Running 0 8m5s
- connect to the Jupyter Notebook
Run the following command to port-forward:
kubectl port-forward -n <namespace> service/notebook-svc 8888:8888
And then open the console using the following URL:
http://localhost:8888
Run the following command to check the gpu device:
! nvidia-smi