-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdeployment.yaml
More file actions
60 lines (59 loc) · 1.87 KB
/
deployment.yaml
File metadata and controls
60 lines (59 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright © 2026, Commonwealth Scientific and Industrial Research Organisation (CSIRO)
# ABN 41 687 119 230. Licensed under the Apache License, Version 2.0.
#
# Author: John Grimes
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-deployment
labels:
app: {{ .Release.Name }}
spec:
replicas: {{ .Values.fhirpathLabApi.replicas }}
selector:
matchLabels:
app: {{ .Release.Name }}
template:
metadata:
labels:
app: {{ .Release.Name }}
spec:
containers:
- name: fhirpath-lab-api
image: {{ .Values.fhirpathLabApi.image | quote }}
imagePullPolicy: {{ .Values.fhirpathLabApi.imagePullPolicy | quote }}
ports:
- name: http
containerPort: 8080
protocol: TCP
{{- if gt (len .Values.fhirpathLabApi.config) 0 }}
env:
{{- range $key, $value := .Values.fhirpathLabApi.config }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
startupProbe:
httpGet:
path: /healthcheck
port: http
periodSeconds: 5
failureThreshold: 36
livenessProbe:
httpGet:
path: /healthcheck
port: http
periodSeconds: 30
failureThreshold: 3
readinessProbe:
httpGet:
path: /healthcheck
port: http
periodSeconds: 10
failureThreshold: 3
{{- if .Values.fhirpathLabApi.resources }}
resources: {{ toYaml .Values.fhirpathLabApi.resources | nindent 12 }}
{{- end }}
tolerations: {{ toJson .Values.fhirpathLabApi.tolerations }}
affinity: {{ toJson .Values.fhirpathLabApi.affinity }}
nodeSelector: {{ toJson .Values.fhirpathLabApi.nodeSelector }}