mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 16:30:19 +00:00
54 lines
1.1 KiB
JSON
54 lines
1.1 KiB
JSON
|
{
|
||
|
"kind": "Pod",
|
||
|
"apiVersion": "v1",
|
||
|
"metadata": {
|
||
|
"name": "kubectl-tester"
|
||
|
},
|
||
|
"spec": {
|
||
|
"containers": [
|
||
|
{
|
||
|
"name": "bb",
|
||
|
"image": "gcr.io/google_containers/busybox",
|
||
|
"command": [
|
||
|
"sh", "-c", "sleep 5; wget -O - ${KUBERNETES_RO_SERVICE_HOST}:${KUBERNETES_RO_SERVICE_PORT}/api/v1/pods/; sleep 10000"
|
||
|
],
|
||
|
"ports": [
|
||
|
{
|
||
|
"containerPort": 8080
|
||
|
}
|
||
|
],
|
||
|
"env": [
|
||
|
{
|
||
|
"name": "KUBERNETES_RO_SERVICE_HOST",
|
||
|
"value": "127.0.0.1"
|
||
|
},
|
||
|
{
|
||
|
"name": "KUBERNETES_RO_SERVICE_PORT",
|
||
|
"value": "8001"
|
||
|
}
|
||
|
],
|
||
|
"volumeMounts": [
|
||
|
{
|
||
|
"name": "test-volume",
|
||
|
"mountPath": "/mount/test-volume"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "kubectl",
|
||
|
"image": "gcr.io/google_containers/kubectl:v0.18.0-120-gaeb4ac55ad12b1-dirty",
|
||
|
"imagePullPolicy": "Always",
|
||
|
"args": [
|
||
|
"proxy", "-p", "8001"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"volumes": [
|
||
|
{
|
||
|
"name": "test-volume",
|
||
|
"emptyDir": {}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|