参考地址: https://kuboard.cn/learning/k8s-intermediate/service/ingress.html#%E6%9A%B4%E9%9C%B2%E5%8D%95worker%E8%8A%82%E7%82%B9
安装 nginx-ingress
kubectl apply -f https://kuboard.cn/install-script/v1.16.2/nginx-ingress.yaml
查看
[root@test3 erp]# kubectl get pod -n nginx-ingress -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
nginx-ingress-8tb29 1/1 Running 1 14d 10.122.173.138 test1 <none> <none>
nginx-ingress-drwzk 1/1 Running 2 14d 10.122.32.150 k8s-master01 <none> <none>
kuboard 部署supg自动化管理
点击保存
本机访问域名访问pod
在 hosts文件添加解析
C:\Windows\System32\drivers\etc\hosts