ingress wie mattermost

This commit is contained in:
titver968
2025-03-06 17:05:20 +01:00
parent cfdb21315a
commit ac4e0dddaf
4 changed files with 53 additions and 51 deletions

View File

@@ -3,12 +3,12 @@ entries:
tatort: tatort:
- apiVersion: v2 - apiVersion: v2
appVersion: 0.0.1 appVersion: 0.0.1
created: "2025-03-06T16:53:37.58879+01:00" created: "2025-03-06T17:04:47.974062+01:00"
description: A Helm chart for Kubernetes description: A Helm chart for Kubernetes
digest: 3e45a6e7493abd150c7c37b8da1e0faeb967cb1e9e344e0c07bfde84ca78fa2a digest: 20f31bba9527e380fa2d197c9fa7dcfc13ac7bfe87709ae642c4052ecc3331d4
name: tatort name: tatort
type: application type: application
urls: urls:
- https://gitea.innohub.local:3000/innohub/charts/raw/main/tatort-0.1.1.tgz - https://gitea.innohub.local:3000/innohub/charts/raw/main/tatort-0.1.1.tgz
version: 0.1.1 version: 0.1.1
generated: "2025-03-06T16:53:37.588366+01:00" generated: "2025-03-06T17:04:47.973556+01:00"

Binary file not shown.

View File

@@ -1,43 +1,52 @@
{{- $fullName := include "tatort.fullname" . -}} {{ $ingress := .Values.ingress }}
{{- $servicePort := .Values.service.port -}} {{ if $ingress.enabled }}
{{- $ingressPath := .Values.ingress.path -}} {{ $serviceName := include "tatort.name" . }}
{{- $ingressPathType := .Values.ingress.pathtype -}} {{ $servicePort := .Values.service.externalPort }}
apiVersion: networking.k8s.io/v1 apiVersion: {{ include "tatort.ingress.apiVersion" . }}
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ $fullName }} name: {{ include "tatort.fullname" . }}
labels: labels:
app: {{ template "tatort.name" . }} app.kubernetes.io/name: {{ include "tatort.name" . }}
chart: {{ template "tatort.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }}
component: tatort app.kubernetes.io/managed-by: {{ .Release.Service }}
heritage: {{ .Release.Service }} helm.sh/chart: {{ include "tatort.chart" . }}
release: {{ .Release.Name }}
{{- with .Values.ingress.annotations }}
annotations: annotations:
{{ toYaml . | indent 4 }} {{- if .Values.ingress.tls }}
{{- end }} nginx.ingress.kubernetes.io/ssl-redirect: "true"
kubernetes.io/tls-acme: "true"
{{- else }}
nginx.ingress.kubernetes.io/ssl-redirect: "false"
{{- end }}
{{- with $ingress.annotations }}
{{- . | toYaml | nindent 4 }}
{{- end }}
spec: spec:
{{- if .Values.ingress.tls }} {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
tls: ingressClassName: {{ .Values.ingress.className }}
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . }}
{{- end }}
secretName: {{ .secretName }}
{{- end }} {{- end }}
{{- end }}
rules: rules:
{{- range .Values.ingress.hosts }} {{ range $host := $ingress.hosts }}
- host: {{ . }} - host: {{ $host | quote }}
http: http:
paths: paths:
- path: {{ $ingressPath }} - path: {{ $ingress.path }}
pathType: {{ $ingressPathType }} {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
backend: backend:
service: service:
name: {{ $fullName }} name: {{ $serviceName }}
port: port:
number: 4173 number: {{ $servicePort }}
{{- end }} pathType: Prefix
{{- else }}
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
{{- end }}
{{ end }}
{{ if $ingress.tls }}
tls:
{{- $ingress.tls | toYaml | nindent 4 }}
{{ end }}
{{ end }}

View File

@@ -22,20 +22,13 @@ service:
endpoint: tatort.local endpoint: tatort.local
ingress: ingress:
enabled: true enabled: false
annotations: {} className: ""
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
path: / path: /
pathtype: ImplementationSpecific annotations: {}
hosts: [ tatort.local ] hosts:
# hosts: - tatort.innohub.local
# - host: tatort.local tls:
# paths:
# - path: /
# pathType: ImplementationSpecific
tls: []
route: route:
enabled: false enabled: false