ingress.yaml
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-04T14:54:24.417769+01:00"
|
created: "2025-03-04T15:46:17.922421+01:00"
|
||||||
description: A Helm chart for Kubernetes
|
description: A Helm chart for Kubernetes
|
||||||
digest: 8752cecdb8a2ef3a33fb858125a066f24ab57d92937a05f0d38fdada2d0e8767
|
digest: 8309451c95cafe98eea6db7f222011fabd82955895e6a8bc26a4afb9676d25de
|
||||||
name: tatort
|
name: tatort
|
||||||
type: application
|
type: application
|
||||||
urls:
|
urls:
|
||||||
- https://gitea.innohub.local:3000/innohub/charts/raw/branch/main/tatort-0.1.0.tgz
|
- https://gitea.innohub.local:3000/innohub/charts/raw/branch/main/tatort-0.1.0.tgz
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
generated: "2025-03-04T14:54:24.417374+01:00"
|
generated: "2025-03-04T15:46:17.921929+01:00"
|
||||||
|
|||||||
BIN
tatort-0.1.0.tgz
BIN
tatort-0.1.0.tgz
Binary file not shown.
@@ -1,61 +1,45 @@
|
|||||||
{{- if .Values.ingress.enabled -}}
|
{{- if .Values.ingress.enabled -}}
|
||||||
{{- $fullName := include "tatort.fullname" . -}}
|
{{- $fullName := include "tatort.fullname" . -}}
|
||||||
{{- $svcPort := .Values.service.port -}}
|
{{- $servicePort := .Values.service.port -}}
|
||||||
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
|
{{- $ingressPath := .Values.ingress.path -}}
|
||||||
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
|
{{- $ingressPathType := .Values.ingress.pathtype -}}
|
||||||
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
|
||||||
{{- else -}}
|
|
||||||
apiVersion: extensions/v1beta1
|
|
||||||
{{- end }}
|
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $fullName }}
|
name: {{ $fullName }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "tatort.labels" . | nindent 4 }}
|
app: {{ template "tatort.name" . }}
|
||||||
{{- with .Values.ingress.annotations }}
|
chart: {{ template "tatort.chart" . }}
|
||||||
|
component: tatort
|
||||||
|
heritage: {{ .Release.Service }}
|
||||||
|
release: {{ .Release.Name }}
|
||||||
|
{{- with .Values.ingress.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{ toYaml . | indent 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 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.ingress.tls }}
|
|
||||||
tls:
|
tls:
|
||||||
{{- range .Values.ingress.tls }}
|
{{- range .Values.ingress.tls }}
|
||||||
- hosts:
|
- hosts:
|
||||||
{{- range .hosts }}
|
{{- range .hosts }}
|
||||||
- {{ . | quote }}
|
- {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
secretName: {{ .secretName }}
|
secretName: {{ .secretName }}
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
rules:
|
rules:
|
||||||
{{- range .Values.ingress.hosts }}
|
{{- range .Values.ingress.hosts }}
|
||||||
- host: {{ .host }}
|
- host: {{ . }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
{{- range .paths }}
|
- path: {{ $ingressPath }}
|
||||||
- path: {{ .path }}
|
pathType: {{ $ingressPathType }}
|
||||||
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
|
||||||
pathType: {{ .pathType }}
|
|
||||||
{{- end }}
|
|
||||||
backend:
|
backend:
|
||||||
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
|
||||||
service:
|
service:
|
||||||
name: {{ $fullName }}
|
name: {{ $fullName }}
|
||||||
port:
|
port:
|
||||||
number: {{ $svcPort }}
|
number: 8080
|
||||||
{{- else }}
|
{{- end }}
|
||||||
serviceName: {{ $fullName }}
|
|
||||||
servicePort: {{ $svcPort }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user