Skip to content

Commit 3529f83

Browse files
Add is-default-class and clean
Context of recent upgrade to `networking.k8s.io/v1` api NOTE this is just an example and you will need to customize for your usecase https://kubernetes.io/docs/concepts/services-networking/ingress/#default-ingress-class
1 parent 82a0026 commit 3529f83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/ingress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
namespace: {{ .Release.Namespace }}
66
annotations:
77
kubernetes.io/ingress.class: "nginx"
8+
ingressclass.kubernetes.io/is-default-class: "true"
89
nginx.ingress.kubernetes.io/use-regex: "true"
910
{{ if eq .Values.useTls false}}
1011
nginx.ingress.kubernetes.io/enable-cors: "true"
@@ -49,7 +50,6 @@ spec:
4950
- host: {{ .Values.diffgramDomain }}
5051
http:
5152
paths:
52-
# NOTE: this one should come after all other routes. To avoid hijacking requests.
5353
- path: /api/walrus(/|$)(.*)
5454
pathType: ImplementationSpecific
5555
backend:

0 commit comments

Comments
 (0)