Compare commits

..

3 Commits

Author SHA1 Message Date
zachary 85012cfbca Merge pull request 'Update helm chart values' (#18) from develop into master
Reviewed-on: #18
2026-03-27 14:00:37 +01:00
zachary 85c6423704 Merge branch 'master' into develop 2026-03-27 14:00:30 +01:00
Zachary Guénot ed4d3f032d Update helm chart values 2026-03-27 13:56:39 +01:00
2 changed files with 62 additions and 31 deletions
+40 -24
View File
@@ -1,33 +1,49 @@
{{- if .Values.ingress.enabled }}
{{- $ingress := .Values.ingress -}}
{{- if $ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}
{{- with $ingress.annotations }}
annotations:
external-dns.alpha.kubernetes.io/target: OmegaMaestro.{{- if eq .Values.ingress.provider "technitium" }}force-field.{{- end }}{{ .Values.ingress.domain }}
external-dns.alpha.kubernetes.io/{{ .Values.ingress.provider }}: "true"
cert-manager.io/cluster-issuer: {{ .Values.ingress.issuer }}
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
{{- if .Values.ingress.geoip }}
nginx.ingress.kubernetes.io/server-snippet: |
if ($lan = yes) { set $allowed_country yes; }
if ($allowed_country = no) { return 451; }
{{- range $key, $value := . }}
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
{{- end }}
{{- end }}
labels:
{{- range $key, $value := $ingress.labels }}
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
{{- end }}
spec:
ingressClassName: {{ .Values.ingress.class }}
{{- if $ingress.ingressClassName }}
ingressClassName: {{ $ingress.ingressClassName }}
{{- end }}
{{- if $ingress.tls }}
tls:
- hosts:
- {{ .Values.ingress.subdomain }}.{{ .Values.ingress.domain }}
secretName: {{ .Release.Name }}-tls
{{- range $ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ tpl . $ | quote }}
{{- end }}
{{- with .secretName }}
secretName: {{ tpl . $ }}
{{- end }}
{{- end }}
{{- end }}
rules:
- host: "{{ .Values.ingress.subdomain }}.{{ .Values.ingress.domain }}"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: "{{ .Release.Name }}-{{ .Values.service.name }}"
port:
name: {{ .Values.service.name }}
{{- end }}
{{- range $ingress.rules }}
- host: {{ tpl .host $ | quote }}
http:
paths:
{{- range .paths }}
- path: {{ tpl .path $ | quote }}
pathType: {{ .pathType }}
backend:
service:
name: "{{ .Release.Name }}-{{ .Values.service.name }}"
port:
name: {{ .Values.service.name }}
{{- end }}
{{- end }}
{{- end -}}
{{- end -}}
+22 -7
View File
@@ -23,10 +23,25 @@ service:
name: twurple
ingress:
enabled: true
class: nginx
subdomain: dcb-chantier.prd
domain: angels-dev.fr
provider: cloudflare
issuer: letsencrypt-prod
geoip: false
# If `true`, an Ingress is created
enabled: false
# The name of the Ingress Class associated with this ingress
ingressClassName: ""
# Ingress annotations
annotations: {}
# Additional Ingress labels
labels: {}
# List of rules for the Ingress
rules:
-
# Ingress host
host: discord.example.com
# Paths for the host
paths:
- path: /
pathType: Prefix
# TLS configuration
tls: []
# - hosts:
# - discord.example.com
# secretName: ""