-
Notifications
You must be signed in to change notification settings - Fork 2
/
iscsi-target.json
49 lines (49 loc) · 1.28 KB
/
iscsi-target.json
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": "v1",
"kind": "Pod",
"metadata": {
"name": "iscsi-target",
"labels": {
"storage": "iscsi-target"
},
"annotations": {
"openshift.io/description": "iscsi target"
}
},
"spec": {
"selector": {
"role": "iscsi-target"
},
"containers": [
{
"name": "iscsi-target",
"image": "aosqe/iscsi",
"securityContext": {
"privileged": true
},
"volumeMounts": [{
"mountPath": "/lib/modules",
"name": "kernel"
}],
"imagePullPolicy": "IfNotPresent",
"readinessProbe": {
"exec": {
"command": [
"targetcli",
"ls",
"/iscsi/iqn.2016-04.test.com:storage.target00/tpg1"
]
},
"initialDelaySeconds": 30,
"timeoutSeconds": 1
}
}
],
"volumes": [{
"name": "kernel",
"hostPath": {
"path": "/lib/modules"
}
}]
}
}