From d98fcbce87ba77a256c0abc6fda7fd1de83de278 Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Wed, 2 Sep 2020 13:34:11 +0200 Subject: [PATCH] Update Ingress to 1.19 --- slides/k8s/ingress.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/slides/k8s/ingress.md b/slides/k8s/ingress.md index 43c6c810..d41da6c5 100644 --- a/slides/k8s/ingress.md +++ b/slides/k8s/ingress.md @@ -485,6 +485,8 @@ spec: --- +class: extra-details + ## Using multiple ingress controllers - You can have multiple ingress controllers active simultaneously @@ -495,11 +497,13 @@ spec: (e.g. one for internal, another for external traffic) -- The `kubernetes.io/ingress.class` annotation can be used to tell which one to use +- To indicate which ingress controller should be used by a given Ingress resouce: -- It's OK if multiple ingress controllers configure the same resource + - before Kubernetes 1.18, use the `kubernetes.io/ingress.class` annotation - (it just means that the service will be accessible through multiple paths) + - since Kubernetes 1.18, use the `ingressClassName` field +
+ (which should refer to an existing `IngressClass` resource) --- @@ -535,9 +539,9 @@ spec: - [ingress.kubernetes.io/rewrite-target: /](https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx/examples/rewrite) -- This should eventually stabilize +- The Ingress spec stabilized in Kubernetes 1.19 ... - (remember that ingresses are currently `apiVersion: networking.k8s.io/v1beta1`) + ... without specifying these features! 😭 ---