nginx
Kubernetes使用Ingress nginx暴露服务并配置证书
部署配置Ingress
从官网获取配置文件并执行
$ wget -O ingress.yaml https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml
$ kubectl apply -f ingress.yaml
ingress默认配置没有service-ip,重启之后ingress pod就会改变,因此我们需要通过NodePort或者service将ingress的ip固定下来,我这里使用service实现
$ cat ingress-svc.yaml <<……

- 共1篇
- 1