File tree Expand file tree Collapse file tree 8 files changed +38
-26
lines changed
Expand file tree Collapse file tree 8 files changed +38
-26
lines changed Original file line number Diff line number Diff line change 11apiVersion : " v2"
22name : " pokertool"
3- version : " 0.1 .0"
3+ version : " 0.2 .0"
44description : " A scrum poker tool made with Angular and Kotlin"
55keywords :
66 - " angular"
Original file line number Diff line number Diff line change @@ -3,22 +3,24 @@ kind: Deployment
33metadata :
44 name : {{ template "common.names.fullname" . }}-backend
55 labels :
6- {{- include "common.labels.standard" . | indent 4 }}
6+ {{- include "common.labels.standard" . | nindent 4 }}
77 app.kubernetes.io/component : backend
88spec :
99 replicas : {{ .Values.backend.replicas }}
1010 selector :
1111 matchLabels :
12- {{- include "common.labels.standard" . | indent 6 }}
12+ {{- include "common.labels.standard" . | nindent 6 }}
1313 app.kubernetes.io/component : backend
1414 template :
1515 spec :
1616 containers :
17- - image : " {{ .Values.backend.imageRegistry }}/{{ .Values.backend.imageName }}:{{ .Values.backend.imageTag }}"
17+ {{- with .Values.backend.image}}
18+ - image : " {{ .registry }}/{{ .name }}:{{ .tag }}"
19+ {{- end }}
1820 name : {{ template "common.names.fullname" . }}-backend
1921 ports :
2022 - containerPort : 8080
2123 metadata :
2224 labels :
23- {{- include "common.labels.standard" . | indent 8 }}
25+ {{- include "common.labels.standard" . | nindent 8 }}
2426 app.kubernetes.io/component : frontend
Original file line number Diff line number Diff line change 1+ {{ if .Values.ingress.enabled -}}
12apiVersion : networking.k8s.io/v1
23kind : Ingress
34metadata :
45 name : {{ template "common.names.fullname" . }}-backend
56 labels :
6- {{- include "common.labels.standard" . | indent 4 }}
7+ {{- include "common.labels.standard" . | nindent 4 }}
78 app.kubernetes.io/component : backend
89spec :
910 rules :
10- - host : {{ .Values.domain }}
11+ - host : {{ .Values.ingress. domain | required "ingress.domain required" }}
1112 http :
1213 paths :
1314 - backend :
1920 pathType : Prefix
2021 tls :
2122 - hosts :
22- - {{ .Values.domain }}
23+ - {{ .Values.ingress. domain | required "ingress.domain required" }}
2324 secretName : {{ template "common.names.fullname" . }}-backend-cert
25+ {{- end }}
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ kind: Service
33metadata :
44 name : {{ template "common.names.fullname" . }}-backend
55 labels :
6- {{- include "common.labels.standard" . | indent 4 }}
6+ {{- include "common.labels.standard" . | nindent 4 }}
77 app.kubernetes.io/component : backend
88spec :
99 ports :
1010 - port : 80
1111 targetPort : 8080
1212 selector :
13- {{- include "common.labels.standard" . | indent 4 }}
13+ {{- include "common.labels.standard" . | nindent 4 }}
1414 app.kubernetes.io/component : backend
Original file line number Diff line number Diff line change @@ -3,22 +3,24 @@ kind: Deployment
33metadata :
44 name : {{ template "common.names.fullname" . }}-frontend
55 labels :
6- {{- include "common.labels.standard" . | indent 4 }}
6+ {{- include "common.labels.standard" . | nindent 4 }}
77 app.kubernetes.io/component : frontend
88spec :
99 replicas : {{ .Values.frontend.replicas }}
1010 selector :
1111 matchLabels :
12- {{- include "common.labels.standard" . | indent 6 }}
12+ {{- include "common.labels.standard" . | nindent 6 }}
1313 app.kubernetes.io/component : frontend
1414 template :
1515 spec :
1616 containers :
17- - image : " {{ .Values.frontend.imageRegistry }}/{{ .Values.frontend.imageName }}:{{ .Values.frontend.imageTag }}"
17+ {{- with .Values.frontend.image}}
18+ - image : " {{ .registry }}/{{ .name }}:{{ .tag }}"
19+ {{- end }}
1820 name : {{ template "common.names.fullname" . }}-frontend
1921 ports :
2022 - containerPort : 80
2123 metadata :
2224 labels :
23- {{- include "common.labels.standard" . | indent 8 }}
25+ {{- include "common.labels.standard" . | nindent 8 }}
2426 app.kubernetes.io/component : frontend
Original file line number Diff line number Diff line change 1+ {{ if .Values.ingress.enabled -}}
12apiVersion : networking.k8s.io/v1
23kind : Ingress
34metadata :
45 name : {{ template "common.names.fullname" . }}-frontend
56 labels :
6- {{- include "common.labels.standard" . | indent 4 }}
7+ {{- include "common.labels.standard" . | nindent 4 }}
78 app.kubernetes.io/component : frontend
89spec :
910 rules :
10- - host : {{ .Values.domain }}
11+ - host : {{ .Values.ingress. domain | required "ingress.domain required" }}
1112 http :
1213 paths :
1314 - backend :
1920 pathType : Prefix
2021 tls :
2122 - hosts :
22- - {{ .Values.domain }}
23+ - {{ .Values.ingress. domain | required "ingress.domain required" }}
2324 secretName : {{ template "common.names.fullname" . }}-frontend-cert
25+ {{- end }}
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ kind: Service
33metadata :
44 name : {{ template "common.names.fullname" . }}-frontend
55 labels :
6- {{- include "common.labels.standard" . | indent 4 }}
6+ {{- include "common.labels.standard" . | nindent 4 }}
77 app.kubernetes.io/component : frontend
88spec :
99 ports :
1010 - port : 80
1111 targetPort : 80
1212 selector :
13- {{- include "common.labels.standard" . | indent 4 }}
13+ {{- include "common.labels.standard" . | nindent 4 }}
1414 app.kubernetes.io/component : frontend
Original file line number Diff line number Diff line change 1- domain : " "
1+ ingress :
2+ enabled : true
3+ domain : " "
24
35frontend :
4- imageRegistry : " ghcr.io/alliander-opensource"
5- imageName : " pokertool-frontend"
6- imageTag : " v1.0.0"
6+ image :
7+ registry : " ghcr.io/alliander-opensource"
8+ name : " pokertool-frontend"
9+ tag : " v1.0.0"
710 replicas : 1
811
912backend :
10- imageRegistry : " ghcr.io/alliander-opensource"
11- imageName : " pokertool-backend"
12- imageTag : " v1.0.0"
13+ image :
14+ registry : " ghcr.io/alliander-opensource"
15+ name : " pokertool-backend"
16+ tag : " v1.0.0"
1317 replicas : 1
You can’t perform that action at this time.
0 commit comments