-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecreate-example.yaml
More file actions
62 lines (62 loc) · 1.46 KB
/
recreate-example.yaml
File metadata and controls
62 lines (62 loc) · 1.46 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
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Service
metadata:
name: recreate-example
spec:
ports:
- port: 8080
targetPort: 8080
selector:
deploymentconfig: recreate-example
- apiVersion: v1
kind: DeploymentConfig
metadata:
name: recreate-example
spec:
replicas: 2
selector:
deploymentconfig: recreate-example
strategy:
# We set the type of strategy to Recreate, which means that it will be scaled down prior to being scaled up
type: Recreate
template:
metadata:
labels:
deploymentconfig: recreate-example
spec:
containers:
#- image: openshift/deployment-example:v1
- image: multiarch-origin-e2e/deployment-example
name: deployment-example
imagePullPolicy: Always
ports:
- containerPort: 8080
protocol: TCP
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- deployment-example
from:
kind: ImageStreamTag
name: recreate-example:latest
type: ImageChange
- apiVersion: v1
kind: ImageStream
metadata:
name: recreate-example
spec:
#dockerImageRepository: openshift/deployment-example
dockerImageRepository: multiarch-origin-e2e/deployment-example
- apiVersion: v1
kind: Route
metadata:
name: recreate-example
spec:
to:
kind: Service
name: recreate-example