1、部署Ingress controller
(1)下载ingress相关的yaml
[[email protected] ~]# mkdir ingress-nginx
[[email protected] ~]# cd ingress-nginx/
[[email protected] ingress-nginx]# ll
total 0
[[email protected] 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、部署后端服务
原文地址:https://www.cnblogs.com/linuxk/p/9706720.html
时间: 2024-11-06 07:13:17