-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstunnel-example.yml
More file actions
126 lines (126 loc) · 2.59 KB
/
stunnel-example.yml
File metadata and controls
126 lines (126 loc) · 2.59 KB
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
apiVersion: v1
kind: Template
metadata:
name: stunnel-example
objects:
-
apiVersion: v1
kind: BuildConfig
metadata:
name: stunnel-client
spec:
output:
to:
kind: ImageStreamTag
name: 'stunnel-client:latest'
runPolicy: Serial
source:
git:
uri: 'https://github.com/cpitman/stunnel-openshift.git'
type: Git
strategy:
dockerStrategy:
from:
kind: ImageStreamTag
name: 'centos:latest'
type: Docker
triggers:
-
type: ConfigChange
-
imageChange:
type: ImageChange
-
apiVersion: v1
kind: ImageStream
metadata:
name: centos
spec:
tags:
-
from:
kind: DockerImage
name: 'centos:latest'
importPolicy:
name: latest
-
apiVersion: v1
kind: ImageStream
metadata:
name: stunnel-client
spec:
tags:
-
name: latest
-
apiVersion: v1
kind: DeploymentConfig
metadata:
name: stunnel-client
spec:
replicas: 1
selector:
app: stunnel-client
deploymentconfig: stunnel-client
strategy:
type: Rolling
template:
metadata:
labels:
app: stunnel-client
deploymentconfig: stunnel-client
spec:
containers:
-
imagePullPolicy: Always
name: stunnel-client
ports: [{containerPort: 5000, protocol: TCP}]
restartPolicy: Always
terminationGracePeriodSeconds: 30
test: false
triggers:
-
type: ConfigChange
-
imageChangeParams:
automatic: true
containerNames:
- stunnel-client
from:
kind: ImageStreamTag
name: 'stunnel-client:latest'
type: ImageChange
-
apiVersion: v1
kind: Route
metadata:
labels:
app: stunnel-client
name: stunnel-client
spec:
port:
targetPort: 5000-tcp
tls:
termination: passthrough
to:
kind: Service
name: stunnel-client
weight: 100
-
apiVersion: v1
kind: Service
metadata:
labels:
app: stunnel-client
name: stunnel-client
spec:
ports:
-
name: 5000-tcp
port: 5000
protocol: TCP
targetPort: 5000
selector:
deploymentconfig: stunnel-client
sessionAffinity: None
type: ClusterIP