服务器信息
master:192.168.201.1
node1:192.168.101.2
node2:192.168.101.3
1、查找nginx-ingresshelm search repo nginx-ingress
选择这个nginx/nginx-ingress
2、展示values.yaml文件,分析helm安装nginx ingress的命令行覆盖参数(很重要)helm show values nginx/nginx-ingress
3、安装nginx-ingresskubectl create namespace nginx-ingress
helm install gateway nginx/nginx-ingress \
--namespace nginx-ingress \
--set controller.hostNetwork=true \
--set controller.healthStatus=true \
--set controller.service.type=NodePort \
--set controller.service.httpPort.nodePort=30080 \
--set controller.service.httpsPort.nodePort=30443
使用NodePort网络访问方式,http端口为30080,https端口为30443