-
Notifications
You must be signed in to change notification settings - Fork 19
/
deploy.yml
46 lines (46 loc) · 989 Bytes
/
deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: spring-boot-example
spec:
replicas: 1
selector:
matchLabels:
app: spring-boot-example
template:
metadata:
labels:
app: spring-boot-example
spec:
containers:
- name: spring-boot-example
image: 'gcr.io/fleet-resolver-237016/spring-boot-example:v2'
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /lazy
port: 8080
initialDelaySeconds: 15
periodSeconds: 10
livenessProbe:
httpGet:
path: /lazy
port: 8080
initialDelaySeconds: 15
periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: spring-boot-example
labels:
name: spring-boot-example
spec:
ports:
- port: 8080
targetPort: 8080
protocol: TCP
selector:
app: spring-boot-example
type: LoadBalancer