Skip to content

Commit

Permalink
Fix k8s ingress version warnings during helm install and inside the a…
Browse files Browse the repository at this point in the history
…hoy templates
  • Loading branch information
rainerschamm committed Oct 19, 2021
1 parent c187c4e commit 8c85aff
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- define "ingress.app" -}}
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
labels:
Expand All @@ -19,7 +19,11 @@ spec:
- host: {{ .app.routeHostname }}
http:
paths:
- backend:
serviceName: {{ .glob.releaseName }}-{{ .app.name }}
servicePort: {{ .app.routeTargetPort }}
- path: /
pathType: Prefix
backend:
service:
name: {{ .glob.releaseName }}-{{ .app.name }}
port:
number: {{ .app.routeTargetPort }}
{{- end -}}

0 comments on commit 8c85aff

Please sign in to comment.