参考
ingress-nginx git地址
https://github.com/kubernetes/ingress-nginx

ingress-nginx 的 deployment的地址:
https://kubernetes.github.io/ingress-nginx/deploy/
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.6.4/deploy/static/provider/cloud/deploy.yaml
可以实现下载文件内容
wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.6.4/deploy/static/provider/cloud/deploy.yaml
然后执行如下命令启动ingress-nginx-controller
kubectl apply -f deploy.yaml
- 修改文件中的image地址


替换成如下内容:
image: dyrnq/ingress-nginx-controller:v1.6.4
image: dyrnq/kube-webhook-certgen:v20220916-gd32f8c343
为防止拉取镜像失败,可以提前下载上述两个镜像到本地
参考:k8s的V1.23版本ingress-nginx的配置
- 将文件中的 type: LoadBalancer 修改为 type: NodePort
本文提供了一种在1.24版本的Kubernetes集群中配置Nginx-Ingress的步骤,包括从GitHub获取ingress-nginx的deploymentYAML文件,修改镜像源,以及将service类型从LoadBalancer改为NodePort。此外,还建议预先下载镜像以避免拉取失败。
987

被折叠的 条评论
为什么被折叠?



