1.执行命令出现Unable to connect to the server: dial tcp: lookup raw.githubusercontent.com
2.浏览器输入
https://site.ip138.com/raw.Githubusercontent.com/
进入网站后
输入raw.githubusercontent.com
3.修改hosts Ubuntu,CentOS及macOS直接在终端输入
sudo vim /etc/hosts
4. 末尾添加
5.再次执行下述命令,成功。
kubectl create -f https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v1.11/nvidia-device-plugin.yml