-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathk8s-example.yaml
More file actions
68 lines (68 loc) · 1.52 KB
/
k8s-example.yaml
File metadata and controls
68 lines (68 loc) · 1.52 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
61
62
63
64
65
66
67
68
apiVersion: apps/v1
kind: Deployment
metadata:
name: phive-doc-validator
labels:
app: phive-doc-validator
spec:
replicas: 2
selector:
matchLabels:
app: phive-doc-validator
template:
metadata:
labels:
app: phive-doc-validator
spec:
containers:
- name: phive-doc-validator
image: eaglessoftbv/phive-doc-validator:latest
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
env:
- name: CONTEXT_PATH
value: "/"
- name: LOG_FORMAT
value: "json"
- name: LOG_LEVEL
value: "WARN"
readinessProbe:
httpGet:
path: /api
port: http
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 6
livenessProbe:
httpGet:
path: /api
port: http
initialDelaySeconds: 30
periodSeconds: 20
timeoutSeconds: 3
failureThreshold: 3
resources:
requests:
cpu: "100m"
memory: "256Mi"
limits:
cpu: "500m"
memory: "512Mi"
---
apiVersion: v1
kind: Service
metadata:
name: phive-doc-validator
labels:
app: phive-doc-validator
spec:
type: ClusterIP
selector:
app: phive-doc-validator
ports:
- name: http
port: 80
targetPort: http