Files
Talks/talks-slides-dist/templates/ingress.yaml
T
Le Prévost-Corvellec Arnault 2f5065bf37 Add Docker and Gitea workflow configurations for Talks slides deployment
- Introduced .dockerignore to exclude unnecessary files from Docker builds.
- Added build-and-push.yaml workflow for automated image building and Helm chart deployment on changes to specific paths.
- Created Dockerfile for building a static site with Nginx, including configuration for serving slides.
- Established Helm chart structure in talks-slides-dist for managing deployment configurations and resources.
- Removed outdated GitHub Actions workflows to streamline CI/CD processes.
2026-04-11 16:53:09 +02:00

46 lines
1.5 KiB
YAML

{{- if .Values.slides.ingress.enabled -}}
{{- $tlsOn := or .Values.slides.ingress.tls.enabled .Values.slides.ingress.certManager.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "talks-slides.fullname" . }}
labels:
{{- include "talks-slides.labels" . | nindent 4 }}
{{- if or .Values.slides.ingress.certManager.enabled .Values.slides.ingress.annotations }}
annotations:
{{- if .Values.slides.ingress.certManager.enabled }}
cert-manager.io/cluster-issuer: {{ .Values.slides.ingress.certManager.clusterIssuer | quote }}
{{- end }}
{{- with .Values.slides.ingress.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
spec:
{{- if .Values.slides.ingress.className }}
ingressClassName: {{ .Values.slides.ingress.className }}
{{- end }}
{{- if $tlsOn }}
tls:
- hosts:
{{- range .Values.slides.ingress.hosts }}
- {{ .host | quote }}
{{- end }}
secretName: {{ .Values.slides.ingress.tls.secretName | default (printf "%s-tls" (include "talks-slides.fullname" .)) }}
{{- end }}
rules:
{{- range .Values.slides.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
pathType: {{ .pathType }}
backend:
service:
name: {{ include "talks-slides.fullname" $ }}
port:
number: {{ $.Values.slides.service.port }}
{{- end }}
{{- end }}
{{- end }}