-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsiab.template.yaml
170 lines (170 loc) · 3.59 KB
/
siab.template.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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
apiVersion: v1
kind: List
items:
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
build: siab
name: rhel7-minimal
spec:
lookupPolicy:
local: false
tags:
- annotations:
openshift.io/imported-from: registry.access.redhat.com/rhel7-minimal
from:
kind: DockerImage
name: registry.access.redhat.com/rhel7-minimal
importPolicy: {}
name: latest
referencePolicy:
type: Source
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
build: siab
name: siab
spec:
failedBuildsHistoryLimit: 5
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: siab:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
git:
ref: master
uri: https://github.com/lpsantil/ocp-shellinabox.git
type: Git
strategy:
dockerStrategy:
from:
kind: ImageStreamTag
name: rhel7-minimal:latest
type: Docker
successfulBuildsHistoryLimit: 5
triggers:
- type: ConfigChange
- imageChange:
type: ImageChange
- apiVersion: v1
kind: ServiceAccount
metadata:
name: siab
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
app: siab
name: siab
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
app: siab
deploymentconfig: siab
strategy:
activeDeadlineSeconds: 21600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
labels:
app: siab
deploymentconfig: siab
spec:
containers:
- image: siab
imagePullPolicy: Always
name: siab
ports:
- containerPort: 8080
protocol: TCP
resources:
limits:
cpu: "1"
memory: 64Mi
requests:
cpu: 250m
memory: 32Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: siab
serviceAccountName: siab
terminationGracePeriodSeconds: 30
test: false
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- siab
from:
kind: ImageStreamTag
name: siab:latest
type: ImageChange
status:
availableReplicas: 0
latestVersion: 0
observedGeneration: 0
replicas: 0
unavailableReplicas: 0
updatedReplicas: 0
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
build: siab
name: siab
spec:
lookupPolicy:
local: false
- apiVersion: v1
kind: Service
metadata:
labels:
app: siab
name: siab
spec:
ports:
- name: 8080-tcp
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: siab
deploymentconfig: siab
sessionAffinity: None
type: ClusterIP
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
annotations:
haproxy.router.openshift.io/timeout: 600s
openshift.io/host.generated: "true"
labels:
app: siab
name: siab
spec:
port:
targetPort: 8080-tcp
to:
kind: Service
name: siab
weight: 100
wildcardPolicy: None