Prod Version

This commit is contained in:
titver968
2025-06-25 16:01:03 +02:00
parent 176b1a21a6
commit 6cc1a2bad2
14 changed files with 345 additions and 7 deletions

14
tatort-dev/index.yaml Normal file
View File

@@ -0,0 +1,14 @@
apiVersion: v1
entries:
tatort:
- apiVersion: v2
appVersion: 0.3.3
created: "2025-06-25T15:07:54.543149+02:00"
description: A Helm chart for Kubernetes
digest: 0e8e3cc52e24776e002f8211ce982370fc64c6cee4278fe24ff2da4fb16af208
name: tatort
type: application
urls:
- https://gitea.innovation-hub-niedersachsen.de/innohub/charts/raw/main/tatort/tatort-0.1.3-dev.1.tgz
version: 0.1.3-dev.1
generated: "2025-06-25T15:07:54.542776+02:00"

View File

@@ -0,0 +1,6 @@
apiVersion: v2
name: tatort
description: A Helm chart for Kubernetes
type: application
version: 0.1.3-dev.1
appVersion: 0.3.3

View File

@@ -0,0 +1,62 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "tatort.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "tatort.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "tatort.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "tatort.labels" -}}
helm.sh/chart: {{ include "tatort.chart" . }}
{{ include "tatort.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "tatort.selectorLabels" -}}
app.kubernetes.io/name: {{ include "tatort.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "tatort.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "tatort.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

View File

@@ -0,0 +1,78 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "tatort.fullname" . }}
labels:
app: {{ template "tatort.name" . }}
chart: {{ template "tatort.chart" . }}
component: tatort
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.deploymentLabels }}
{{- toYaml .Values.deploymentLabels | nindent 4 }}
{{- end }}
spec:
strategy:
{{ toYaml .Values.updateStrategy | nindent 4 }}
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ template "tatort.name" . }}
component: tatort
release: {{ .Release.Name }}
template:
metadata:
annotations:
labels:
app: {{ template "tatort.name" . }}
component: tatort
release: {{ .Release.Name }}
{{- if .Values.podLabels }}
{{- toYaml .Values.podLabels | nindent 8 }}
{{- end }}
spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
serviceAccountName: {{ template "tatort.serviceAccountName" . }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
terminationMessagePolicy: FallbackToLogsOnError
ports:
- name: http
containerPort: {{ .Values.service.port }}
env:
{{- range $key := .Values.env }}
{{- if .value }}
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
{{- end }}
{{- range $key := .Values.secretEnv }}
- name: {{ .name }}
valueFrom:
secretKeyRef:
name: {{ template "tatort.fullname" $ }}-secret
key: {{ .name }}
{{- end }}
envFrom:
{{- with .Values.extraEnvFrom }}
{{- tpl . $ | nindent 10 }}
{{- end }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}

View File

@@ -0,0 +1,18 @@
{{- if .Values.autoscaling.enabled -}}
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "tatort.fullname" . }}
labels:
app: {{ template "tatort.name" . }}
chart: {{ template "tatort.chart" . }}
component: tatort
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ template "tatort.fullname" . }}
{{ toYaml .Values.autoscaling.config | indent 2 }}
{{- end -}}

View File

@@ -0,0 +1,45 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "tatort.fullname" . -}}
{{- $servicePort := .Values.service.port -}}
{{- $ingressPath := .Values.ingress.path -}}
{{- $ingressPathType := .Values.ingress.pathtype -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
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:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ . }}
http:
paths:
- path: {{ $ingressPath }}
pathType: {{ $ingressPathType }}
backend:
service:
name: {{ $fullName }}
port:
number: 3000
{{- end }}
{{- end }}

View File

@@ -0,0 +1,26 @@
apiVersion: v1
kind: Service
metadata:
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
name: {{ template "tatort.fullname" . }}
labels:
app: {{ template "tatort.name" . }}
chart: {{ template "tatort.chart" . }}
component: tatort
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: 3000
protocol: TCP
name: npm
selector:
app: {{ template "tatort.name" . }}
component: tatort
release: {{ .Release.Name }}

View File

@@ -0,0 +1,13 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "tatort.serviceAccountName" . }}
labels:
{{- include "tatort.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
{{- end }}

View File

@@ -0,0 +1,76 @@
platform: kubernetes
serviceAccount:
create: true
name: ""
annotations: ""
automount: false
image:
repository: gitea.innovation-hub-niedersachsen.de/innohub/tatort
tag: dev0.3.3
pullPolicy: IfNotPresent
insecure: true
replicaCount: 1
service:
type: ClusterIP
port: 3000
annotations: {}
endpoint: tatort.local
ingress:
enabled: false
annotations: {}
path: /
pathtype: ImplementationSpecific
hosts:
- tatort.innohub.local
tls:
route:
enabled: false
resources:
requests:
memory: 128Mi
cpu: 300m
limits:
memory: 1Gi
cpu: 500m
nodeSelector: {}
tolerations: []
affinity: {}
autoscaling:
enabled: true
config:
minReplicas: 1
maxReplicas: 10
targetCPUUtilizationPercentage: 80
deploymentLabels: {}
podLabels: {}
sharedDataFolder:
enabled: true
path: /daten
accessMode: ReadWriteOnce
storageClass:
resources:
requests:
storage: 5Gi
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
podSecurityContext: {}
securityContext: {}
extraDeploy: []

View File

@@ -3,12 +3,12 @@ entries:
tatort:
- apiVersion: v2
appVersion: 0.3.3
created: "2025-06-25T15:07:54.543149+02:00"
created: "2025-06-25T16:00:04.998993+02:00"
description: A Helm chart for Kubernetes
digest: 0e8e3cc52e24776e002f8211ce982370fc64c6cee4278fe24ff2da4fb16af208
digest: 3036ad3870a67612545d3789a1480a6b4da47b2ec8a9528d5306ff487f094f60
name: tatort
type: application
urls:
- https://gitea.innovation-hub-niedersachsen.de/innohub/charts/raw/main/tatort/tatort-0.1.3-dev.1.tgz
version: 0.1.3-dev.1
generated: "2025-06-25T15:07:54.542776+02:00"
- https://gitea.innovation-hub-niedersachsen.de/innohub/charts/raw/main/tatort/tatort-0.1.3.tgz
version: 0.1.3
generated: "2025-06-25T16:00:04.998478+02:00"

BIN
tatort/tatort-0.1.3.tgz Normal file

Binary file not shown.

View File

@@ -2,5 +2,5 @@ apiVersion: v2
name: tatort
description: A Helm chart for Kubernetes
type: application
version: 0.1.3-dev.1
version: 0.1.3
appVersion: 0.3.3

View File

@@ -8,7 +8,7 @@ serviceAccount:
image:
repository: gitea.innovation-hub-niedersachsen.de/innohub/tatort
tag: dev0.3.3
tag: v0.3.3
pullPolicy: IfNotPresent
insecure: true