neuer versuch

This commit is contained in:
titver968
2025-03-04 14:54:56 +01:00
parent 01af344d59
commit 9da066ff0c
6 changed files with 53 additions and 161 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-04T14:34:31.211482+01:00" created: "2025-03-04T14:54:24.417769+01:00"
description: A Helm chart for Kubernetes description: A Helm chart for Kubernetes
digest: 1bc5c86d60922dbc18b20df68085c850305cbbb1d679dfd084e847ca8f4a1e68 digest: 8752cecdb8a2ef3a33fb858125a066f24ab57d92937a05f0d38fdada2d0e8767
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:34:31.211095+01:00" generated: "2025-03-04T14:54:24.417374+01:00"

Binary file not shown.

View File

@@ -1,68 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "tatort.fullname" . }}
labels:
{{- include "tatort.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "tatort,selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "tatort,labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "tatort,serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12 }}
readinessProbe:
{{- toYaml .Values.readinessProbe | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.volumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

View File

@@ -1,113 +1,68 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ template "tatort.fullname" . }} name: {{ include "tatort.fullname" . }}
labels: labels:
app: {{ template "tatort.name" . }} {{- include "tatort.labels" . | nindent 4 }}
chart: {{ template "tatort.chart" . }}
component: tatort
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.deploymentLabels }}
{{- toYaml .Values.deploymentLabels | nindent 4 }}
{{- end }}
spec: spec:
strategy: {{- if not .Values.autoscaling.enabled }}
{{ toYaml .Values.updateStrategy | nindent 4 }}
replicas: {{ .Values.replicaCount }} replicas: {{ .Values.replicaCount }}
{{- end }}
selector: selector:
matchLabels: matchLabels:
app: {{ template "tatort.name" . }} {{- include "tatort.selectorLabels" . | nindent 6 }}
component: tatort
release: {{ .Release.Name }}
template: template:
metadata: metadata:
{{- with .Values.podAnnotations }}
annotations: annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels: labels:
app: {{ template "tatort.name" . }} {{- include "tatort.labels" . | nindent 8 }}
component: tatort {{- with .Values.podLabels }}
release: {{ .Release.Name }} {{- toYaml . | nindent 8 }}
{{- if .Values.podLabels }}
{{- toYaml .Values.podLabels | nindent 8 }}
{{- end }} {{- end }}
spec: spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "tatort.serviceAccountName" . }}
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
serviceAccountName: {{ template "tatort.serviceAccountName" . }}
automountServiceAccountToken: {{ .Values.serviceAccounts.automount }}
{{- if ne .Values.platform "openshift" }}
initContainers:
- name: volume-permissions
image: "{{ .Values.init.image.repository }}:{{ .Values.init.image.tag }}"
imagePullPolicy: {{ .Values.init.image.pullPolicy }}
command: ['sh', '-c', 'chown -R 999:999 /data']
volumeMounts:
- name: shared-data-volume
mountPath: /data
resources:
{{- toYaml .Values.init.resources | nindent 12 }}
securityContext:
{{- toYaml .Values.init.podSecurityContext | nindent 12 }}
{{- end }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
terminationMessagePolicy: FallbackToLogsOnError
ports: ports:
- name: http - name: http
containerPort: {{ .Values.service.port }} containerPort: {{ .Values.service.port }}
env: protocol: TCP
{{- if .value }}
- name: {{ .name }}
value: {{ .value | quote }}
{{- 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 }}
readinessProbe:
httpGet:
path: /
port: {{ .Values.service.port }}
initialDelaySeconds: 20
livenessProbe: livenessProbe:
httpGet: {{- toYaml .Values.livenessProbe | nindent 12 }}
path: / readinessProbe:
port: {{ .Values.service.port }} {{- toYaml .Values.readinessProbe | nindent 12 }}
initialDelaySeconds: 60
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
{{ if .Values.sharedDataFolder.enabled }}
volumeMounts:
- name: shared-data-volume
mountPath: /data
{{ end }}
resources: resources:
{{ toYaml .Values.resources | indent 12 }} {{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }} {{- with .Values.volumeMounts }}
nodeSelector: volumeMounts:
{{ toYaml . | indent 8 }} {{- toYaml . | nindent 12 }}
{{- end }} {{- end }}
{{- if .Values.affinity }} {{- with .Values.volumes }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{ if .Values.sharedDataFolder.enabled }}
volumes: volumes:
- name: shared-data-volume {{- toYaml . | nindent 8 }}
persistentVolumeClaim: {{- end }}
claimName: {{ template "tatort.fullname" . }}-shared-data {{- with .Values.nodeSelector }}
{{ end }} nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

View File

@@ -38,7 +38,7 @@ spec:
{{- end }} {{- end }}
rules: rules:
{{- range .Values.ingress.hosts }} {{- range .Values.ingress.hosts }}
- host: {{ .host | quote }} - host: {{ .host }}
http: http:
paths: paths:
{{- range .paths }} {{- range .paths }}

View File

@@ -27,7 +27,12 @@ ingress:
# kubernetes.io/tls-acme: "true" # kubernetes.io/tls-acme: "true"
path: / path: /
pathtype: ImplementationSpecific pathtype: ImplementationSpecific
hosts: [ tatort.local ] hosts:
- host: tatort.local
paths:
- path: /
pathType: ImplementationSpecific
tls: [] tls: []
route: route: