ingress.yaml onto right pfad
This commit is contained in:
@@ -3,12 +3,12 @@ entries:
|
|||||||
tatort:
|
tatort:
|
||||||
- apiVersion: v2
|
- apiVersion: v2
|
||||||
appVersion: 0.0.1
|
appVersion: 0.0.1
|
||||||
created: "2025-03-07T08:56:10.227617+01:00"
|
created: "2025-03-07T09:02:19.086473+01:00"
|
||||||
description: A Helm chart for Kubernetes
|
description: A Helm chart for Kubernetes
|
||||||
digest: eb4ba242257cb5c08abfd69865fcd6d8b04822ca039464281d8ab2ce8c0ccc56
|
digest: 3bd2bda018e0c47d5752c34e4cc215ac2e46582005376f4fa101da1c7e1bb1bf
|
||||||
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-07T08:56:10.227278+01:00"
|
generated: "2025-03-07T09:02:19.086143+01:00"
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ metadata:
|
|||||||
component: tatort
|
component: tatort
|
||||||
heritage: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
|
{{- with .Values.ingress.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- with .Values.ingress.annotations }}
|
{{- with $ingress.annotations }}
|
||||||
# {{- with $ingress.annotations }}
|
|
||||||
{{- . | toYaml | niindent 4 }}
|
{{- . | toYaml | niindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
BIN
tatort-0.1.1.tgz
BIN
tatort-0.1.1.tgz
Binary file not shown.
@@ -1,50 +1,45 @@
|
|||||||
{{ $ingress := .Values.ingress }}
|
{{- if .Values.ingress.enabled -}}
|
||||||
{{ if $ingress.enabled }}
|
{{- $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: {{ include "tatort.fullname" . }}
|
name: {{ $fullName }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ include "tatort.name" . }}
|
app: {{ template "tatort.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
chart: {{ template "tatort.chart" . }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
component: tatort
|
||||||
helm.sh/chart: {{ include "tatort.chart" . }}
|
heritage: {{ .Release.Service }}
|
||||||
|
release: {{ .Release.Name }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- if .Values.ingress.tls }}
|
{{- with .Values.ingress.annotations }}
|
||||||
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 }}
|
{{- . | toYaml | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
|
{{- if .Values.ingress.tls }}
|
||||||
ingressClassName: {{ .Values.ingress.className }}
|
tls:
|
||||||
|
{{- range .Values.ingress.tls }}
|
||||||
|
- hosts:
|
||||||
|
{{- range .hosts }}
|
||||||
|
- {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
secretName: {{ .secretName }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
rules:
|
rules:
|
||||||
{{ range $host := $ingress.hosts }}
|
{{- range .Values.ingress.hosts }}
|
||||||
- host: {{ $host | quote }}
|
- host: {{ . }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: {{ $ingress.path }}
|
- path: {{ $ingressPath }}
|
||||||
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
|
pathType: {{ $ingressPathType }}
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: http
|
name: {{ $fullName }}
|
||||||
port:
|
port:
|
||||||
number: 4173
|
number: 4173
|
||||||
pathType: Prefix
|
|
||||||
{{- else }}
|
|
||||||
backend:
|
|
||||||
serviceName: http
|
|
||||||
servicePort: 4173
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
{{ if $ingress.tls }}
|
|
||||||
tls:
|
|
||||||
{{- $ingress.tls | toYaml | nindent 4 }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user