-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserviceb-deployment.yaml
48 lines (48 loc) · 1.07 KB
/
serviceb-deployment.yaml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: serviceb-app
namespace: serviceb
labels:
app: serviceb-app
spec:
replicas: 1
selector:
matchLabels:
app: serviceb-app
template:
metadata:
labels:
app: serviceb-app
spec:
containers:
- name: serviceb-app
image: learningcloudnativego/serviceb-app:0.1
imagePullPolicy: IfNotPresent
command: ['/serviceb/app']
ports:
- name: httpport
containerPort: 8080
readinessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 2
failureThreshold: 3
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 15
timeoutSeconds: 5
failureThreshold: 1
resources:
requests:
memory: '64Mi'
cpu: '250m'
limits:
memory: '128Mi'
cpu: '500m'