ingress.yaml

This commit is contained in:
titver968
2025-03-05 18:01:14 +01:00
parent d5ecb0fee7
commit 9d9c22ea14
4 changed files with 18 additions and 34 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-05T17:38:28.591776+01:00" created: "2025-03-05T17:58:32.94375+01:00"
description: A Helm chart for Kubernetes description: A Helm chart for Kubernetes
digest: b8fce11b4b1f5e550850dc1a4513e020e4df9cb42b1959034de28a554f6c1753 digest: b4209350cfbce50c940e9ea8f1cc37ac5e7ddbbff08c2a3c162b535a6da0caf2
name: tatort name: tatort
type: application type: application
urls: urls:
- https://gitea.innohub.local:3000/innohub/charts/raw/main/tatort-0.1.0.tgz - https://gitea.innohub.local:3000/innohub/charts/raw/main/tatort-0.1.0.tgz
version: 0.1.0 version: 0.1.0
generated: "2025-03-05T17:38:28.59139+01:00" generated: "2025-03-05T17:58:32.943407+01:00"

Binary file not shown.

View File

@@ -1,45 +1,29 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "tatort.fullname" . -}} {{- $fullName := include "tatort.fullname" . -}}
{{- $servicePort := .Values.service.port -}}
{{- $ingressPath := .Values.ingress.path -}}
{{- $ingressPathType := .Values.ingress.pathtype -}}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ $fullName }} name: {{ include "tatort.fullname" . }}
labels: annotations: {{- toYaml .Values.ingress.annotations | nindent 4 }}
app: {{ template "tatort.name" . }}
chart: {{ template "tatort.chart" . }}
component: tatort
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
{{- with .Values.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec: spec:
{{- if .Values.ingress.tls }} ingressClassName: {{ .Values.ingress.className }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules: rules:
{{- range .Values.ingress.hosts }} {{- range .Values.ingress.hosts }}
- host: {{ . }} - host: {{ .host }}
http: http:
paths: paths:
- path: {{ $ingressPath }} {{- range .paths }}
pathType: {{ $ingressPathType }} - path: {{ .path }}
pathType: {{ .pathType }}
backend: backend:
service: service:
name: {{ $fullName }} name: {{ $fullName }}
port: port:
number: 4173 number: {{ $.Values.service.port }}
{{- end }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- toYaml .Values.ingress.tls | nindent 4 }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@@ -7,7 +7,7 @@ serviceAccount:
automount: false automount: false
image: image:
repository: https://gitea.innohub.local:3000/innohub/charts/chart/main/tatort repository: https://gitea.innohub.local:3000/innohub/charts/raw/main/tatort
tag: 0.0.1 tag: 0.0.1
pullPolicy: IfNotPresent pullPolicy: IfNotPresent