diff --git a/charts/index.yaml b/charts/index.yaml new file mode 100644 index 0000000..5831556 --- /dev/null +++ b/charts/index.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +entries: + tatort: + - apiVersion: v2 + appVersion: 0.0.1 + created: "2025-02-28T12:07:06.741679+01:00" + description: A helm chart for deploying tatort application + digest: 0e084311bd3585c92a63a236e512de307c8dc10f1735135524e4847e00deeb88 + name: tatort + urls: + - https://gitea.innohub.local:3000/innohub/charts/tatort/raw/branch/main/tatort-0.1.0.tgz + version: 0.1.0 +generated: "2025-02-28T12:07:06.741482+01:00" diff --git a/charts/tatort-0.1.0.tgz b/charts/tatort-0.1.0.tgz new file mode 100644 index 0000000..4d65b0f Binary files /dev/null and b/charts/tatort-0.1.0.tgz differ diff --git a/charts/tatort/Chart.yaml b/charts/tatort/Chart.yaml new file mode 100644 index 0000000..e51d7be --- /dev/null +++ b/charts/tatort/Chart.yaml @@ -0,0 +1,5 @@ +apiVersion: v2 +name: tatort +description: A helm chart for deploying tatort application +version: 0.1.0 +appVersion: 0.0.1 diff --git a/charts/tatort/templates/deployment.yaml b/charts/tatort/templates/deployment.yaml new file mode 100644 index 0000000..3d87fb3 --- /dev/null +++ b/charts/tatort/templates/deployment.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "tatort.fullname" . }} +spec: + replicas: 1 + selector: + matchLabels: + app: {{ include "tatort.name" . }} + template: + metadata: + labels: + app: {{ include "tatort.name" . }} + spec: + containers: + - name: tatort-container + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - containerPort: 80 diff --git a/charts/tatort/templates/ingress.yaml b/charts/tatort/templates/ingress.yaml new file mode 100644 index 0000000..ef7e9fd --- /dev/null +++ b/charts/tatort/templates/ingress.yaml @@ -0,0 +1,28 @@ +{{- if .Values.ingress.enabled }} +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: {{ include "tatort.fullname" . }} + annotation: {{- toYaml .Values.ingress.annotations | nindent 4 }} +spec: + ingressClassName: {{ .Values.ingress.className }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host }} + http: + paths: + {{- range .paths }} + - path: {{ .path }} + pathType: {{ .pathType }} + backend: + service: + name: {{ include "tatort.fullname" $ }} + port: + number: {{ $.Values.service.port }} + {{- end }} + {{- end }} + {{- if .Values.ingress.tls }} + tls: + {{- toYaml .Values.ingress.tls | nindent 4 }} + {{- end }} +{{- end }} diff --git a/charts/tatort/templates/service.yaml b/charts/tatort/templates/service.yaml new file mode 100644 index 0000000..6fba2d7 --- /dev/null +++ b/charts/tatort/templates/service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "tatort.fullname" . }} +spec: + type: {{ .Values.service.type }} + selector: + app: {{ include "tatort.name" . }} + ports: + - port: {{ .Values.service.port }} + targetPort: 80 + protocol: TCP + name: http diff --git a/charts/tatort/values.yaml b/charts/tatort/values.yaml new file mode 100644 index 0000000..08a1c04 --- /dev/null +++ b/charts/tatort/values.yaml @@ -0,0 +1,19 @@ +image: + repository: "gitea.innohub.local:3000/git/tatort" + tag: "0.0.1" + pullPolicy: IfNotPresent + +service: + type: ClusterIP + port: 80 + +ingress: + enabled: false + className: "" + annotations: {} + hosts: + - host: tatort.local + paths: + - path: / + pathType: Prefix + tls: []