Some checks failed
Release / release (push) Failing after 56s
- httproute.yaml: name=default namespace=nginx-gateway (was: itsh-gateway, no namespace) - httproute.yaml: add cert-manager.io/cluster-issuer annotation for TLS cert issuance - httproute.yaml: parameterise sectionNames and parentRefs through values - deployment.yaml: render imagePullSecrets from values (itsh-registry pull secret) - values.yaml: add parentRefs, annotations, httpRedirectSectionName, imagePullSecrets
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: {{ include "tutortool.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "tutortool.labels" . | nindent 4 }}
|
|
{{- with .Values.httpRoute.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
parentRefs:
|
|
{{- range .Values.httpRoute.parentRefs }}
|
|
- name: {{ .name }}
|
|
namespace: {{ .namespace }}
|
|
sectionName: {{ $.Values.httpRoute.sectionName }}
|
|
{{- end }}
|
|
hostnames:
|
|
{{- range .Values.httpRoute.hostnames }}
|
|
- {{ . | quote }}
|
|
{{- end }}
|
|
rules:
|
|
- matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /
|
|
backendRefs:
|
|
- name: {{ include "tutortool.fullname" . }}
|
|
port: {{ .Values.service.port }}
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: {{ include "tutortool.fullname" . }}-http-redirect
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "tutortool.labels" . | nindent 4 }}
|
|
spec:
|
|
parentRefs:
|
|
{{- range .Values.httpRoute.parentRefs }}
|
|
- name: {{ .name }}
|
|
namespace: {{ .namespace }}
|
|
sectionName: {{ $.Values.httpRoute.httpRedirectSectionName }}
|
|
{{- end }}
|
|
hostnames:
|
|
{{- range .Values.httpRoute.hostnames }}
|
|
- {{ . | quote }}
|
|
{{- end }}
|
|
rules:
|
|
- filters:
|
|
- type: RequestRedirect
|
|
requestRedirect:
|
|
scheme: https
|
|
statusCode: 301
|