ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 11m42s
ci / test (pull_request) Successful in 12m11s
ci / build (pull_request) Successful in 16m4s
ci / image (pull_request) Successful in 3m19s
With TLS on, the console's and the status pages' ingresses now send HTTP to HTTPS: through a redirectScheme middleware the chart creates for Traefik, which is chained before any middlewares already annotated, and by annotation for ingress-nginx and HAProxy. ingress.tls.redirect and statuspage.ingress.tls.redirect turn it off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
{{- if .Values.ingress.enabled }}
|
|
{{- $ing := dict "root" . "ingress" .Values.ingress "name" (include "uptimesebi.fullname" .) }}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "uptimesebi.fullname" . }}
|
|
labels:
|
|
{{- include "uptimesebi.labels" . | nindent 4 }}
|
|
{{- with include "uptimesebi.ingressAnnotations" $ing }}
|
|
annotations:
|
|
{{- . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- with .Values.ingress.className }}
|
|
ingressClassName: {{ . }}
|
|
{{- end }}
|
|
{{- if .Values.ingress.tls.enabled }}
|
|
tls:
|
|
- hosts: [{{ include "uptimesebi.publicHost" . | quote }}]
|
|
secretName: {{ .Values.ingress.tls.secretName | default (printf "%s-tls" (include "uptimesebi.fullname" .)) }}
|
|
{{- end }}
|
|
rules:
|
|
- host: {{ include "uptimesebi.publicHost" . | quote }}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: {{ include "uptimesebi.fullname" . }}-api
|
|
port:
|
|
name: http
|
|
{{- include "uptimesebi.redirectMiddleware" $ing }}
|
|
{{- end }}
|