File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
22name : single-deployment
33description : A Helm chart for single deployment application
44type : application
5- version : 0.3 .0
5+ version : 0.4 .0
66appVersion : " latest"
77maintainers :
88 - name : pmint93
Original file line number Diff line number Diff line change 1+ {{- if .Values.httproute.enabled -}}
2+ apiVersion : gateway.networking.k8s.io/v1
3+ kind : HTTPRoute
4+ metadata :
5+ name : {{ template "single-deployment.fullname" . }}
6+ labels :
7+ {{- include "single-deployment.labels" . | nindent 4 }}
8+ {{- with .Values.httproute.labels }}
9+ {{- toYaml . | nindent 4 }}
10+ {{- end }}
11+ spec :
12+ parentRefs :
13+ - group : gateway.networking.k8s.io
14+ kind : Gateway
15+ name : {{ .Values.httproute.gatewayName }}
16+ namespace : {{ .Values.httproute.gatewayNamespace }}
17+ hostnames : {{ .Values.httproute.hosts }}
18+ rules :
19+ - matches :
20+ - path :
21+ type : {{ .Values.httproute.pathType }}
22+ value : {{ .Values.httproute.path }}
23+ backendRefs :
24+ - kind : Service
25+ name : {{ template "single-deployment.fullname" $ }}
26+ port : http
27+
28+ {{- end -}}
Original file line number Diff line number Diff line change @@ -166,6 +166,16 @@ ingress:
166166 # hosts:
167167 # - chart-example.local
168168
169+ httproute :
170+ enabled : false
171+ # gatewayName: ""
172+ # gatewayNamespace: ""
173+ labels : {}
174+ path : /
175+ pathType : PathPrefix
176+ hosts :
177+ - default-backend.example.io
178+
169179# # Additional environment variables to set
170180extraEnvs : {}
171181 # LOG_LEVEL: info
You can’t perform that action at this time.
0 commit comments