03-K8s部署安装配置nginx-ingress和配置外网访问

参考地址: 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自动化管理

03-K8s部署安装配置nginx-ingress和配置外网访问
03-K8s部署安装配置nginx-ingress和配置外网访问
03-K8s部署安装配置nginx-ingress和配置外网访问
03-K8s部署安装配置nginx-ingress和配置外网访问
03-K8s部署安装配置nginx-ingress和配置外网访问
点击保存

本机访问域名访问pod

在 hosts文件添加解析
    C:\Windows\System32\drivers\etc\hosts

03-K8s部署安装配置nginx-ingress和配置外网访问
03-K8s部署安装配置nginx-ingress和配置外网访问
03-K8s部署安装配置nginx-ingress和配置外网访问

上一篇:使用ingress暴露kubernetes集群内部的pod服务


下一篇:K8S部署API网关Kong