-
Notifications
You must be signed in to change notification settings - Fork 10
/
dc-sleeper.yaml
44 lines (44 loc) · 1005 Bytes
/
dc-sleeper.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
---
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
annotations:
template.alpha.openshift.io/wait-for-ready: "true"
name: sleeper
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
name: sleeper
strategy:
activeDeadlineSeconds: 21600
recreateParams:
timeoutSeconds: 600
resources: {}
type: Recreate
template:
metadata:
labels:
name: sleeper
spec:
containers:
- image: centos:7
imagePullPolicy: IfNotPresent
name: sleeper
command: ["/bin/bash", "-c"]
args: ["sleep infinity"]
volumeMounts:
- mountPath: /mnt
name: data
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 5
volumes:
- name: data
persistentVolumeClaim:
claimName: mysql
test: false
triggers:
- type: ConfigChange