-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.yml
92 lines (92 loc) · 1.82 KB
/
demo.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
82
83
84
85
86
87
88
89
90
91
92
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
build: demo
name: demo
spec:
lookupPolicy:
local: false
---
apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
build: demo
name: demo
spec:
failedBuildsHistoryLimit: 5
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: demo:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
binary: {}
type: Binary
strategy:
sourceStrategy:
from:
kind: ImageStreamTag
name: s2i-java11:latest
type: Source
successfulBuildsHistoryLimit: 5
---
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
app: demo
name: demo
spec:
replicas: 5
selector:
app: demo
deployment-config.name: demo
strategy:
activeDeadlineSeconds: 21600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: /actuator/prometheus
prometheus.io/port: "8080"
labels:
app: demo
deployment-config.name: demo
spec:
containers:
- image: 172.30.1.1:5000/myproject/demo
imagePullPolicy: Always
name: demo
ports:
- containerPort: 8080
protocol: TCP
resources: {}
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
test: false
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- demo
from:
kind: ImageStreamTag
name: demo:latest
type: ImageChange