Skip to content

Commit 86a9a72

Browse files
committed
ops: Creating Chart. Fixing deployments
1 parent 2cfad6d commit 86a9a72

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

deployment/kubernetes/charts/medcat-trainer-helm/templates/medcat-trainer-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ spec:
7575
name: api-db
7676
- mountPath: /home/api/db-backup
7777
name: api-db-backup
78-
- mountPath: /home/configs
78+
- mountPath: /home/configs/base.txt
7979
name: medcat-trainer-config
8080
subPath: medcat-base.txt
8181
- mountPath: /etc/supervisord.conf

deployment/kubernetes/charts/medcat-trainer-helm/templates/nginx-configmap.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,5 +171,10 @@ data:
171171
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
172172
}
173173
174+
location /healthz {
175+
access_log off;
176+
return 200 'OK';
177+
add_header Content-Type text/plain;
178+
}
174179
}
175180

deployment/kubernetes/charts/medcat-trainer-helm/templates/nginx-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ spec:
4747
- name: http
4848
containerPort: {{ .Values.service.port }}
4949
protocol: TCP
50-
{{- with .Values.livenessProbe }}
50+
{{- with .Values.nginx.livenessProbe }}
5151
livenessProbe:
5252
{{- toYaml . | nindent 12 }}
5353
{{- end }}
54-
{{- with .Values.readinessProbe }}
54+
{{- with .Values.nginx.readinessProbe }}
5555
readinessProbe:
5656
{{- toYaml . | nindent 12 }}
5757
{{- end }}

deployment/kubernetes/charts/medcat-trainer-helm/templates/tests/test-connection.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ spec:
1111
- name: wget
1212
image: busybox
1313
command: ['wget']
14-
args: ['{{ include "medcat-trainer-helm.fullname" . }}:{{ .Values.service.port }}']
14+
args: ['{{ include "medcat-trainer-helm.fullname" . }}-nginx:{{ .Values.service.port }}/healthz', '-U helm-test {{ .Chart.Name }}-v{{ .Chart.Version }}']
1515
restartPolicy: Never

deployment/kubernetes/charts/medcat-trainer-helm/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,16 @@ resources: {}
168168
# httpGet:
169169
# path: /
170170
# port: http
171+
nginx:
172+
livenessProbe:
173+
httpGet:
174+
path: /healthz
175+
port: http
176+
readinessProbe:
177+
httpGet:
178+
path: /healthz
179+
port: http
180+
171181

172182
# This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/
173183
autoscaling:

0 commit comments

Comments
 (0)