-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoc.yml
60 lines (60 loc) · 1.19 KB
/
oc.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
kind: "List"
apiVersion: "v1"
items:
- kind: "ImageStream"
apiVersion: "v1"
metadata:
name: "ada-vcs"
- kind: "BuildConfig"
apiVersion: "v1"
metadata:
name: "ada-vcs"
spec:
source:
git:
uri: "https://github.com/cokeSchlumpf/ada"
strategy:
type: "Docker"
- kind: "DeploymentConfig"
apiVersion: "v1"
metadata:
name: "ada-vcs"
spec:
template:
metadata:
labels:
name: "ada-vcs"
spec:
containers:
- name: "ada-vcs"
image: "172.30.1.1:5000/ada/ada-vcs"
ports:
- containerPort: 8080
protocol: "TCP"
replicas: 1
triggers:
- type: "ConfigChange"
- type: "ImageChange"
imageChangeParams:
automatic: true
containerNames:
- "ada-vcs"
from:
kind: "ImageStreamTag"
name: "ada-vcs:latest"
strategy:
type: "Rolling"
paused: false
revisionHistoryLimit: 2
minReadySeconds: 0
- kind: "Service"
apiVersion: "v1"
metadata:
name: "ada-vcs"
spec:
selector:
name: "ada-vcs"
ports:
- nodePort: 0
port: 8080
targetPort: 8080