-
Notifications
You must be signed in to change notification settings - Fork 2
/
template-deepsea.yaml
172 lines (172 loc) · 3.8 KB
/
template-deepsea.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
171
172
apiVersion: v1
kind: Template
metadata:
name: deepsea-shared
objects:
#Build Config (Jenkins)
- apiVersion: v1
kind: BuildConfig
metadata:
labels:
name: sample-pipeline
name: deepsea-shared-pipeline
spec:
runPolicy: Serial
source:
git:
ref: master
uri: https://github.com/Eldarrin/deepsea
type: Git
strategy:
jenkinsPipelineStrategy:
jenkinsfilePath: Jenkinsfile
type: JenkinsPipeline
triggers:
- github:
secret: secret101
type: GitHub
- generic:
secret: secret101
type: Generic
#Build Config S2I
- apiVersion: v1
kind: BuildConfig
metadata:
labels:
app: deepsea-shared
application: deepsea-shared
createdBy: template-deepsea
name: deepsea-shared
spec:
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: deepsea-shared:latest
runPolicy: Serial
source:
git:
ref: master
uri: https://github.com/Eldarrin/deepsea
type: Git
strategy:
sourceStrategy:
from:
kind: ImageStreamTag
name: vertx-s2i:latest
type: Source
triggers:
- github:
secret: 80l8RJwt
type: GitHub
- generic:
secret: 7GGFe1BW
type: Generic
#Image Stream
- apiVersion: v1
kind: ImageStream
metadata:
labels:
app: deepsea-shared
application: deepsea-shared
createdBy: template-deepsea-shared
name: deepsea-shared
spec:
tags:
- importPolicy: {}
name: latest
#Deployment Config
- apiVersion: v1
kind: DeploymentConfig
metadata:
name: deepsea-shared
labels:
app: deepsea-shared
application: deepsea-shared
createdBy: template-deepsea-shared
spec:
strategy:
type: Rolling
rollingParams:
updatePeriodSeconds: 1
intervalSeconds: 1
timeoutSeconds: 600
maxUnavailable: 25%
maxSurge: 25%
resources: {}
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- deepsea-shared
from:
kind: ImageStreamTag
name: 'deepsea-shared:latest'
replicas: 1
test: false
selector:
deploymentconfig: deepsea-shared
template:
metadata:
creationTimestamp: null
labels:
deploymentconfig: deepsea-shared
spec:
containers:
- name: deepsea-shared
image: deepsea-shared
ports:
- containerPort: 8080
protocol: TCP
resources: {}
livenessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 30
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
terminationMessagePath: /dev/termination-log
imagePullPolicy: IfNotPresent
securityContext:
capabilities: {}
privileged: false
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
#Service
- apiVersion: v1
kind: Service
metadata:
labels:
app: deepsea-shared
application: deepsea-shared
createdBy: template-deepsea-shared
name: deepsea-shared
spec:
ports:
- name: deepsea-shared
port: 8080
protocol: TCP
targetPort: 8080
selector:
deploymentconfig: deepsea-shared
type: ClusterIP
#Route
- apiVersion: v1
kind: Route
metadata:
labels:
app: deepsea-shared
application: deepsea-shared
createdBy: template-deepsea-shared
name: deepsea-shared
spec:
to:
kind: Service
name: deepsea-shared
weight: 100