forked from i4mi/MobileAccessGateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkubernetes-config.yml
64 lines (64 loc) · 1.49 KB
/
kubernetes-config.yml
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
61
62
63
64
apiVersion: apps/v1
kind: Deployment
metadata:
name: mobile-access-gateway
spec:
replicas: 1
selector:
matchLabels:
app: mobile-access-gateway
template:
metadata:
labels:
app: mobile-access-gateway
spec:
volumes:
- name: mobile-access-gateway-config-volume
configMap:
name: mobile-access-gateway-configmap
- name: mobile-access-gateway-secret-volume
secret:
secretName: mobile-access-gateway-secret
containers:
- name: mobile-access-gateway
image: eu.gcr.io/fhir-ch/mag:v020
resources:
requests:
memory: "0.6Gi"
ports:
- containerPort: 9090
- containerPort: 9091
volumeMounts:
- name: mobile-access-gateway-config-volume
mountPath: /config
- name: mobile-access-gateway-secret-volume
mountPath: /secret
livenessProbe:
httpGet:
path: /fhir/metadata
port: 9090
initialDelaySeconds: 60
periodSeconds: 10
readinessProbe:
httpGet:
path: /fhir/metadata
port: 9090
initialDelaySeconds: 90
periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: mobile-access-gateway-service
spec:
type: NodePort
ports:
- port: 9090
name: http
targetPort: 9090
- port: 9091
name: https
targetPort: 9091
selector:
app: mobile-access-gateway
---