-
Notifications
You must be signed in to change notification settings - Fork 3
/
app.yml
81 lines (81 loc) · 1.99 KB
/
app.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
kind: Template
apiVersion: v1
metadata:
name: probes
annotations:
description: template for creating the probes app
version: 1.0.0
objects:
- kind: Service
apiVersion: v1
metadata:
name: probes
spec:
selector:
deploymentconfig: probes
type: NodePort
ports:
- port: 8080
nodePort: 30080
targetPort: 8080
name: http-server
- kind: DeploymentConfig
apiVersion: v1
metadata:
name: probes
spec:
replicas: 2
selector:
deploymentconfig: probes
strategy:
type: Rolling
template:
metadata:
labels:
app: probes
deploymentconfig: probes
spec:
containers:
- image: 172.30.1.1:5000/probes/probes
name: probes
ports:
- containerPort: 8080
name: server-port
livenessProbe:
httpGet:
path: /live
port: server-port
initialDelaySeconds: 15
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /ready
port: server-port
initialDelaySeconds: 15
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
terminationMessagePath: /dev/termination-log
restartPolicy: Always
terminationGracePeriodSeconds: 30
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- probes
from:
kind: ImageStreamTag
name: probes:latest
- kind: ImageStream
apiVersion: v1
metadata:
name: probes
labels:
app: probes