forked from openshift-qe/v3-testfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-rolling.yaml
43 lines (43 loc) · 868 Bytes
/
custom-rolling.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
apiVersion: v1
kind: DeploymentConfig
metadata:
name: custom-deployment
spec:
replicas: 2
selector:
name: custom-deployment
strategy:
type: Rolling
rollingParams:
pre:
failurePolicy: Abort
execNewPod:
containerName: myapp
command:
- /bin/echo
- test pre hook executed
customParams:
command:
- /bin/sh
- -c
- |
set -e
openshift-deploy --until=50%
echo Halfway
openshift-deploy
echo Finished
template:
metadata:
labels:
name: custom-deployment
spec:
terminationGracePeriodSeconds: 0
containers:
- image: "docker.io/centos:centos7"
imagePullPolicy: IfNotPresent
name: myapp
command:
- /bin/sleep
- "100"
triggers:
- type: ConfigChange