forked from vpavlin/openshift-intern-workshop
-
Notifications
You must be signed in to change notification settings - Fork 21
/
app.deploymentconfig.yaml
49 lines (49 loc) · 1.19 KB
/
app.deploymentconfig.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
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
annotations:
labels:
app: openshift-intern-workshop
name: openshift-intern-workshop
spec:
replicas: 1
selector:
app: openshift-intern-workshop
deploymentconfig: openshift-intern-workshop
strategy:
activeDeadlineSeconds: 21600
resources: {}
type: Rolling
template:
metadata:
labels:
app: openshift-intern-workshop
deploymentconfig: openshift-intern-workshop
spec:
containers:
- env:
- name: PORT
value: "5000"
- name: SECRET
valueFrom:
secretKeyRef:
key: secret
name: openshift-intern-workshop
imagePullPolicy: Always
name: openshift-intern-workshop
ports:
- containerPort: 8080
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- openshift-intern-workshop
from:
kind: ImageStreamTag
name: openshift-intern-workshop:latest
type: ImageChange