2017-05-04 20:05:19 +08:00
|
|
|
{
|
|
|
|
"apiVersion": "v1",
|
|
|
|
"kind": "Pod",
|
|
|
|
"metadata": {
|
|
|
|
"name": "glusterfs"
|
|
|
|
},
|
|
|
|
"spec": {
|
|
|
|
"containers": [
|
|
|
|
{
|
|
|
|
"name": "glusterfs",
|
2018-05-04 19:53:39 +08:00
|
|
|
"image": "harbor-001.jimmysong.io/library/pause-amd64:3.0",
|
2017-05-04 20:05:19 +08:00
|
|
|
"volumeMounts": [
|
|
|
|
{
|
|
|
|
"mountPath": "/mnt/glusterfs",
|
|
|
|
"name": "glusterfsvol"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"volumes": [
|
|
|
|
{
|
|
|
|
"name": "glusterfsvol",
|
|
|
|
"glusterfs": {
|
|
|
|
"endpoints": "glusterfs-cluster",
|
|
|
|
"path": "k8s-volume",
|
|
|
|
"readOnly": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|