-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeploy.yaml
63 lines (63 loc) · 1.31 KB
/
deploy.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
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Route
metadata:
name: snowstorm
spec:
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
name: snowstorm
- apiVersion: v1
kind: Service
metadata:
name: snowstorm
spec:
selector:
app: snowstorm
ports:
- port: 80
targetPort: 8080
type: ClusterIP
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
name: snowstorm
labels:
app: snowstorm
spec:
replicas: 1
revisionHistoryLimit: 2
template:
metadata:
labels:
app: snowstorm
spec:
containers:
- name: snowstorm
image: snowstorm:latest
command: ["/usr/bin/snowstorm", "--alsologtostderr", "-config=/etc/snowstorm/config"]
volumeMounts:
- mountPath: /etc/snowstorm
name: snowstorm-config
ports:
- name: http
containerPort: 8080
volumes:
- name: snowstorm-config
configMap:
name: snowstorm-config
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- snowstorm
from:
kind: ImageStreamTag
name: snowstorm:latest
type: ImageChange