-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure-heketi-job.yaml
76 lines (76 loc) · 2.19 KB
/
configure-heketi-job.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
64
65
66
67
68
69
70
71
72
73
74
75
76
---
apiVersion: batch/v1
kind: Job
metadata:
name: configure-heketi
namespace: default
spec:
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
scheduler.alpha.kubernetes.io/tolerations: |
[{"key": "dedicated", "value": "master", "effect": "NoSchedule" },
{"key":"CriticalAddonsOnly", "operator":"Exists"}]
pod.beta.kubernetes.io/init-containers: '[
{
"name": "init",
"image": "heketi/heketi:dev",
"imagePullPolicy": "IfNotPresent",
"command": [ "bash", "/opt/bin/provision" ],
"env": [
{
"name": "HEKETI_CLI_SERVER",
"value": "http://deploy-heketi.default.svc.cluster.local:8080"
},
{
"name": "NODE_DEVICES_PATTERN",
"value": "/dev/[sv]d[bc]"
}
],
"volumeMounts": [
{
"mountPath": "/var/heketi/manifests",
"name": "heketi-storage-manifests"
},
{
"mountPath": "/dev",
"name": "dev"
},
{
"mountPath": "/opt/bin",
"name": "heketi-topology"
}
]
}
]'
spec:
restartPolicy: Never
containers:
- image: gcr.io/google_containers/hyperkube-amd64:v1.5.6
name: hyperkube
command:
- "bash"
- "/opt/bin/deploy-heketi"
volumeMounts:
- mountPath: /opt/bin
name: deploy-heketi
- mountPath: /var/heketi/manifests
name: heketi-storage-manifests
- mountPath: /srv/asset/manifests
name: srv-asset-manifests
volumes:
- name: deploy-heketi
configMap:
name: deploy-heketi
- name: heketi-storage-manifests
emptyDir: {}
- name: heketi-topology
configMap:
name: heketi-topology
- name: srv-asset-manifests
hostPath:
path: /srv/asset/manifests
- name: dev
hostPath:
path: /dev