Merge pull request #30737 from mfbieber/ingress-class-name-in-example

Added ingressClassName: nginx to Ingress example
This commit is contained in:
Kubernetes Prow Robot
2022-01-24 11:37:35 -08:00
committed by GitHub
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: