mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-11 06:03:50 +02:00
cicd:#62 added helm chart and changed deployment
This commit is contained in:
38
charts/templates/deployment-ical.yaml
Normal file
38
charts/templates/deployment-ical.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "htwkalender.name" . }}-ical
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "htwkalender.labels" . | nindent 4 }}
|
||||
component: ical
|
||||
{{- with .Values.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
replicas: {{ .Values.ical.replicas }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "htwkalender.selectorLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "htwkalender.labels" . | nindent 8 }}
|
||||
component: ical
|
||||
spec:
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}-ical
|
||||
image: "{{ .Values.ical.image.name }}"
|
||||
imagePullPolicy: {{ .Values.ical.image.pullPolicy }}
|
||||
ports:
|
||||
- name: ical
|
||||
containerPort: {{ .Values.ical.service.targetPort }}
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: DATA_MANAGER_URL
|
||||
value: {{ .Values.dataManager.service.name }}
|
Reference in New Issue
Block a user