From b5aca5c897354b5a00a90b8edd23024308d6c9fa Mon Sep 17 00:00:00 2001 From: Paco Xu Date: Mon, 11 May 2020 15:53:15 +0800 Subject: [PATCH 1/2] ingress-nginx master changed, so use nginx-0.22.0 Signed-off-by: pacoxu --- docs/ingress-service-dns-with-coredns.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/ingress-service-dns-with-coredns.md b/docs/ingress-service-dns-with-coredns.md index aa59bd8a0e..94d168096f 100644 --- a/docs/ingress-service-dns-with-coredns.md +++ b/docs/ingress-service-dns-with-coredns.md @@ -163,12 +163,12 @@ EOF ### Enable the ingress controller ```bash -$ kubectl --context cluster1 apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml -$ kubectl --context cluster1 apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/provider/baremetal/service-nodeport.yaml +$ kubectl --context cluster1 apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.22.0/deploy/mandatory.yaml +$ kubectl --context cluster1 apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.22.0/deploy/provider/baremetal/service-nodeport.yaml $ kubectl --context cluster1 patch svc ingress-nginx -n ingress-nginx -p '{"spec": {"type": "LoadBalancer"}}' -$ kubectl --context cluster2 apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml -$ kubectl --context cluster2 apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/provider/baremetal/service-nodeport.yaml +$ kubectl --context cluster2 apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.22.0/deploy/mandatory.yaml +$ kubectl --context cluster2 apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.22.0/deploy/provider/baremetal/service-nodeport.yaml $ kubectl --context cluster2 patch svc ingress-nginx -n ingress-nginx -p '{"spec": {"type": "LoadBalancer"}}' ``` From 16059eebad1b4ad4d413a51fc8977b78aa495358 Mon Sep 17 00:00:00 2001 From: Paco Xu Date: Thu, 14 May 2020 17:37:23 +0800 Subject: [PATCH 2/2] upgrage ingress to 0.32 --- docs/ingress-service-dns-with-coredns.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/ingress-service-dns-with-coredns.md b/docs/ingress-service-dns-with-coredns.md index 94d168096f..3edc0d1147 100644 --- a/docs/ingress-service-dns-with-coredns.md +++ b/docs/ingress-service-dns-with-coredns.md @@ -163,12 +163,10 @@ EOF ### Enable the ingress controller ```bash -$ kubectl --context cluster1 apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.22.0/deploy/mandatory.yaml -$ kubectl --context cluster1 apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.22.0/deploy/provider/baremetal/service-nodeport.yaml +$ kubectl --context cluster1 apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-0.32.0/deploy/static/provider/cloud/deploy.yaml $ kubectl --context cluster1 patch svc ingress-nginx -n ingress-nginx -p '{"spec": {"type": "LoadBalancer"}}' -$ kubectl --context cluster2 apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.22.0/deploy/mandatory.yaml -$ kubectl --context cluster2 apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.22.0/deploy/provider/baremetal/service-nodeport.yaml +$ kubectl --context cluster2 apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-0.32.0/deploy/static/provider/cloud/deploy.yaml $ kubectl --context cluster2 patch svc ingress-nginx -n ingress-nginx -p '{"spec": {"type": "LoadBalancer"}}' ```