1、下载文件
wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.2.1/deploy/static/provider/cloud/deploy.yaml
2、运行文件
kubectl apply -f deploy.yaml
3、查看部署结果或者状态
kubectl get all -n ingress-nginx
查看日志
kubectl logs -f ingress-nginx-controller-6648b5dbb8-65ws4 -n ingress-nginx
liebe Ready control-plane,master,worker 3h23m v1.22.10
4、验证测试
kubectl get pods -o wide