0
点赞
收藏
分享

微信扫一扫

外包公司程序员的水平真的很垃圾吗?

佳简诚锄 2023-05-27 阅读 71

文章目录

参考

  • 1.24版本k8s集群配置Nginx-Ingress
  • rancher配置https域名访问图文教程

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
举报

相关推荐

0 条评论