From 6cc1a2bad286c84fc7b1d5935aa796ebca27b636 Mon Sep 17 00:00:00 2001 From: titver968 Date: Wed, 25 Jun 2025 16:01:03 +0200 Subject: [PATCH] Prod Version --- tatort-dev/index.yaml | 14 ++++ {tatort => tatort-dev}/tatort-0.1.3-dev.1.tgz | Bin tatort-dev/tatort/Chart.yaml | 6 ++ tatort-dev/tatort/templates/_helpers.tpl | 62 ++++++++++++++ tatort-dev/tatort/templates/deployment.yaml | 78 ++++++++++++++++++ tatort-dev/tatort/templates/hpa.yaml | 18 ++++ tatort-dev/tatort/templates/ingress.yaml | 45 ++++++++++ tatort-dev/tatort/templates/service.yaml | 26 ++++++ .../tatort/templates/serviceaccount.yaml | 13 +++ tatort-dev/tatort/values.yaml | 76 +++++++++++++++++ tatort/index.yaml | 10 +-- tatort/tatort-0.1.3.tgz | Bin 0 -> 2481 bytes tatort/tatort/Chart.yaml | 2 +- tatort/tatort/values.yaml | 2 +- 14 files changed, 345 insertions(+), 7 deletions(-) create mode 100644 tatort-dev/index.yaml rename {tatort => tatort-dev}/tatort-0.1.3-dev.1.tgz (100%) create mode 100644 tatort-dev/tatort/Chart.yaml create mode 100644 tatort-dev/tatort/templates/_helpers.tpl create mode 100644 tatort-dev/tatort/templates/deployment.yaml create mode 100644 tatort-dev/tatort/templates/hpa.yaml create mode 100644 tatort-dev/tatort/templates/ingress.yaml create mode 100644 tatort-dev/tatort/templates/service.yaml create mode 100644 tatort-dev/tatort/templates/serviceaccount.yaml create mode 100644 tatort-dev/tatort/values.yaml create mode 100644 tatort/tatort-0.1.3.tgz diff --git a/tatort-dev/index.yaml b/tatort-dev/index.yaml new file mode 100644 index 0000000..37c58c2 --- /dev/null +++ b/tatort-dev/index.yaml @@ -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" diff --git a/tatort/tatort-0.1.3-dev.1.tgz b/tatort-dev/tatort-0.1.3-dev.1.tgz similarity index 100% rename from tatort/tatort-0.1.3-dev.1.tgz rename to tatort-dev/tatort-0.1.3-dev.1.tgz diff --git a/tatort-dev/tatort/Chart.yaml b/tatort-dev/tatort/Chart.yaml new file mode 100644 index 0000000..a948e0f --- /dev/null +++ b/tatort-dev/tatort/Chart.yaml @@ -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 diff --git a/tatort-dev/tatort/templates/_helpers.tpl b/tatort-dev/tatort/templates/_helpers.tpl new file mode 100644 index 0000000..e92e60f --- /dev/null +++ b/tatort-dev/tatort/templates/_helpers.tpl @@ -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 }} diff --git a/tatort-dev/tatort/templates/deployment.yaml b/tatort-dev/tatort/templates/deployment.yaml new file mode 100644 index 0000000..d9596a2 --- /dev/null +++ b/tatort-dev/tatort/templates/deployment.yaml @@ -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 }} diff --git a/tatort-dev/tatort/templates/hpa.yaml b/tatort-dev/tatort/templates/hpa.yaml new file mode 100644 index 0000000..d242f7d --- /dev/null +++ b/tatort-dev/tatort/templates/hpa.yaml @@ -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 -}} diff --git a/tatort-dev/tatort/templates/ingress.yaml b/tatort-dev/tatort/templates/ingress.yaml new file mode 100644 index 0000000..744cfdc --- /dev/null +++ b/tatort-dev/tatort/templates/ingress.yaml @@ -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 }} + diff --git a/tatort-dev/tatort/templates/service.yaml b/tatort-dev/tatort/templates/service.yaml new file mode 100644 index 0000000..d2a9290 --- /dev/null +++ b/tatort-dev/tatort/templates/service.yaml @@ -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 }} + diff --git a/tatort-dev/tatort/templates/serviceaccount.yaml b/tatort-dev/tatort/templates/serviceaccount.yaml new file mode 100644 index 0000000..d3dfd45 --- /dev/null +++ b/tatort-dev/tatort/templates/serviceaccount.yaml @@ -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 }} diff --git a/tatort-dev/tatort/values.yaml b/tatort-dev/tatort/values.yaml new file mode 100644 index 0000000..a8dea27 --- /dev/null +++ b/tatort-dev/tatort/values.yaml @@ -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: [] diff --git a/tatort/index.yaml b/tatort/index.yaml index 37c58c2..bcbed12 100644 --- a/tatort/index.yaml +++ b/tatort/index.yaml @@ -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" diff --git a/tatort/tatort-0.1.3.tgz b/tatort/tatort-0.1.3.tgz new file mode 100644 index 0000000000000000000000000000000000000000..3acc6aeb005fc77f177da2e6a025c4e5b4c7c59c GIT binary patch literal 2481 zcmV;i2~PGOiwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PH*KZ`-!^{j9&@!03Q&KUk6TECl>M6lu2=>$;$6H(Xp?42*Pa z6QM|rq`Y`({`U($BvB8?E|w)LuK6W0d3bmpF;PLjj3BuNgBX3vt@;qlqwGf4ghS_Z9Bn#gC#UtX)v+!xYFNq<49 zsNgBA4kJ>Q&Ceu0ijSfkRVHbvZP!cq0a*c=*)1>^5`L_%P;%6$B2EfS!R@C=uS-mU zlqI7XF>|9;i*^{?Cq1_vimHTFHo>3t6Oa z-5%vgpe370H$gd7R^c8DCac2i~#(XtGFQ<*XAx zSuu7Y7|qrxyqUif`a+^YZU8A)m{qc-I+AG3(Yd2+*05>lat7<1RZ63Lb72q*sZ%&g zlBCb%?OhZh&r3lK9!FQqL`GN?QNECR^M0Gg>ZilnGCj*t*ZRHBj@DyNFyD{N2}SXiaZ4qyC4 zZBJHKmj5CGV6>nE$nOKV69X4e#Y%(Re}MJ*W0n&p50CnEDXJ@hrvfTwWsJ&mHOG)r7+Ni;6j?Ph&1n33E^J8Y1KztdVoA30eO z$_(j&;4UkYIG8G|c?N*Ov85KFwLc9UEUNLRLW-iWduY{cn7HjeKiZl)SM&n@Zc z|L?BPmc~X14oUppNyyEu>FjiVCUK>tT+d6!D zkyfF8cQ`0!qKC~&wLq;#`<#SAcHce?hfgMCW+X$H{NDs7zfC^>0Eway+!3fY66l5< zg-c{btd<9s=oD^mf%1%1`GB3+EjSofJ_da2k;cI;@%+7PDh+0glx5r|ATbpOO}*gu zc4W#Y_`MPud;AWu6oiun=F_XSLsajWOBeZ%%Bv1ww@IweIJb7^ZU#|@_eSfZq^7_h-17@(fX>z52dFfIN?3bq;a6L89NZ4&-g@z;p!N>aP8?D9c@ z%y+R4eV;?&W*T?cBqMvEsSx#Hdb(=iS~b1s&+*!~#U8%{?02u~vSpoK;bwfnp;sRl z;F$OCDBK43CFeAB3cT8u!O8 zME=r4p!}jzhn+Hmdqc-2nm5dUuy>J-cN)vIte5F$Te~{1y7<<&Yk>;g4QgwF4#SFw z(d+R1`wQ%cv;o`Rf6RvWKeOayfBqk%_0E5-{qXGDYXP(E-ubJ6drEul1RwF5NVppd z27zz`?3cYDdKm)O)Rd-w4EV#k#7z^l8SC3Fj`|NFug%%Ge&OoOwFP_Q=8jvemj5r= zJPiVwT3$io?GSY`@zG%BxK~_trfiy59b$A=mdCK4DJec7U$>R$?V<2Q?^a^-#;065I3-`{&PC8 z|EI^td;9+=ZKt;#{Vb~QC_MOh>NI>CwDF!PG~kx7-c;5+CmP&<4pN&QC-?g)=vBza v@z<}6>i=%&a{obGBOkNJ4GHzU{j-#P+qZrDC$#?t00960-ObWu06YKyl|