Added ingressClassName: nginx to Ingress example, mentioned to the necessity of it and referenced to the section describing that further

This commit is contained in:
Michelle Fernandez Bieber
2021-12-05 01:55:29 +01:00
parent 4d519daf9b
commit e21f0563f3
3 changed files with 28 additions and 0 deletions
@@ -0,0 +1,10 @@
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
labels:
app.kubernetes.io/component: controller
name: nginx-example
annotations:
ingressclass.kubernetes.io/is-default-class: "true"
spec:
controller: k8s.io/ingress-nginx
@@ -5,6 +5,7 @@ metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx-example
rules:
- http:
paths: