-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyspider.yaml
59 lines (59 loc) · 1.22 KB
/
pyspider.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
apiVersion: v1
kind: ReplicationController
metadata:
labels:
app: sb-instanceid-pyspdr
name: sb-instanceid-pyspdr
spec:
replicas: 1
selector:
app: sb-instanceid-pyspdr
template:
metadata:
labels:
app: sb-instanceid-pyspdr
spec:
containers:
- image: http://pyspider-image-place-holder/pyspider-openshift-orchestration
imagePullPolicy: IfNotPresent
name: pyspider
ports:
- containerPort: 5000
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
---
apiVersion: v1
kind: Route
metadata:
labels:
app: sb-instanceid-pyspdr
name: sb-instanceid-pyspdr
spec:
host: sb-instanceid-pyspdr.endpoint-postfix-place-holder
port:
targetPort: 5000-tcp
to:
kind: Service
name: sb-instanceid-pyspdr
---
apiVersion: v1
kind: Service
metadata:
labels:
app: sb-instanceid-pyspdr
name: sb-instanceid-pyspdr
spec:
ports:
- name: 5000-tcp
port: 5000
protocol: TCP
targetPort: 5000
selector:
app: sb-instanceid-pyspdr
sessionAffinity: None
type: ClusterIP