-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s-manifest.yml
49 lines (49 loc) · 948 Bytes
/
k8s-manifest.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
---
apiVersion: v1
kind: Service
metadata:
labels:
app: demo-app-spring
name: demo-app-spring
spec:
ports:
- port: 80
name: web
protocol: TCP
targetPort: 8080
selector:
app: demo-app-spring
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: demo-app-spring
labels:
app: demo-app-spring
spec:
selector:
matchLabels:
app: demo-app-spring
replicas: 2
template:
metadata:
labels:
app: demo-app-spring
spec:
containers:
- name: demo-app-spring
image: yourUser/yourRepoNameHere
imagePullPolicy: Always
readinessProbe:
httpGet:
port: 8080
path: /
initialDelaySeconds: 5
livenessProbe:
httpGet:
port: 8080
path: /
initialDelaySeconds: 5
ports:
- containerPort: 8080