# ipvs-模块开启
kubectl edit cm kube-proxy -n kube-system
# 修改
mode "ipvs"
kubectl delete pod -l k8s-app=kube-proxy -n kube-system
# 查看结果
ipvsadm -Ln
# ingress-nginx安装
下载和修改配置
# 添加仓库
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm pull ingress-nginx/ingress-nginx
tar -zvxf ingress-nginx-3.35.0.tgz
rm ingress-nginx-3.35.0.tgz
vi ingress-nginx/values.yaml
# 注释掉
# digest: sha256:e9fb216ace49dfa4a5983b183067e97496e7a8b307d2093f4278cd550c303899
# 修改掉service.type
# type: LoadBalancer
type: NodePort
nodePorts:
http: 80
ht