Kubernetes学习之路(十五)之Ingress和Ingress Controller

1、部署Ingress controller

(1)下载ingress相关的yaml

[root@k8s-master ~]# mkdir ingress-nginx
[root@k8s-master ~]# cd ingress-nginx/
[root@k8s-master ingress-nginx]# ll
total 0
[root@k8s-master ingress-nginx]# for file in namespace.yaml configmap.yaml rbac.yaml tcp-services-configmap.yaml with-rbac.yaml udp-services-configmap.yaml default-backend.yaml;do wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/$file;done

2、部署后端服务

猜你喜欢

转载自www.cnblogs.com/linuxk/p/9706720.html