forked from cschneider/osgi-example-systemready
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-systemready.yaml
60 lines (60 loc) · 1.27 KB
/
example-systemready.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
49
50
51
52
53
54
55
56
57
58
59
60
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: example-systemready
ver: 1.0.0-SNAPSHOT
name: example-systemready
spec:
replicas: 5
selector:
matchLabels:
app: example-systemready
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
template:
metadata:
labels:
app: example-systemready
spec:
terminationGracePeriodSeconds: 30
containers:
- image: DOCKER_USERNAME/example.systemready
name: example-systemready
imagePullPolicy: Always
ports:
- containerPort: 8080
protocol: TCP
readinessProbe:
httpGet:
path: /systemready
port: 8080
initialDelaySeconds: 15
timeoutSeconds: 5
periodSeconds: 5
livenessProbe:
httpGet:
path: /systemalive
port: 8080
initialDelaySeconds: 15
timeoutSeconds: 5
periodSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
labels:
app: example-systemready
name: example-systemready
spec:
externalTrafficPolicy: Cluster
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: example-systemready
type: LoadBalancer