Browse Source

Merge branch 'master' of https://gyulai.cloud/git/bme/covidok-backend

master
Daniel Gyulai 4 years ago
parent
commit
95878130f4
  1. 7
      helm/covidok/templates/deployment.yaml

7
helm/covidok/templates/deployment.yaml

@ -5,7 +5,7 @@ metadata:
labels: labels:
{{- include "covidok.labels" . | nindent 4 }} {{- include "covidok.labels" . | nindent 4 }}
spec: spec:
replicas: 1 replicas: 3
selector: selector:
matchLabels: matchLabels:
{{- include "covidok.selectorLabels" . | nindent 6 }} {{- include "covidok.selectorLabels" . | nindent 6 }}
@ -22,6 +22,11 @@ spec:
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
initContainers:
- name: mysql
image: mysql:8.0
command: ["/bin/bash"]
args: ["-c", "while ! mysqladmin ping -h mysql --silent; do sleep 1; done"]
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
image: "{{ .Values.images.covidok.name }}:{{ .Values.images.covidok.tag }}" image: "{{ .Values.images.covidok.name }}:{{ .Values.images.covidok.tag }}"

Loading…
Cancel
Save