diff --git a/tatort/Chart.yaml b/tatort/Chart.yaml new file mode 100644 index 0000000..e51d7be --- /dev/null +++ b/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/tatort/templates/deployment.yaml b/tatort/templates/deployment.yaml new file mode 100644 index 0000000..3d87fb3 --- /dev/null +++ b/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/tatort/templates/ingress.yaml b/tatort/templates/ingress.yaml new file mode 100644 index 0000000..ef7e9fd --- /dev/null +++ b/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/tatort/templates/service.yaml b/tatort/templates/service.yaml new file mode 100644 index 0000000..6fba2d7 --- /dev/null +++ b/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/tatort/values.yaml b/tatort/values.yaml new file mode 100644 index 0000000..08a1c04 --- /dev/null +++ b/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: []