mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Merge pull request #9588 from caesarxuchao/kubectl-container-examples-v1
update examples/kubectl-container to v1
This commit is contained in:
commit
a1840218c4
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"kind": "Pod",
|
"kind": "Pod",
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "kubectl-tester"
|
"name": "kubectl-tester"
|
||||||
},
|
},
|
||||||
@ -10,12 +10,11 @@
|
|||||||
"name": "bb",
|
"name": "bb",
|
||||||
"image": "gcr.io/google_containers/busybox",
|
"image": "gcr.io/google_containers/busybox",
|
||||||
"command": [
|
"command": [
|
||||||
"sh", "-c", "sleep 5; wget -O - ${KUBERNETES_RO_SERVICE_HOST}:${KUBERNETES_RO_SERVICE_PORT}/api/v1beta3/pods/; sleep 10000"
|
"sh", "-c", "sleep 5; wget -O - ${KUBERNETES_RO_SERVICE_HOST}:${KUBERNETES_RO_SERVICE_PORT}/api/v1/pods/; sleep 10000"
|
||||||
],
|
],
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 8080,
|
"containerPort": 8080
|
||||||
"protocol": "TCP"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"env": [
|
"env": [
|
||||||
|
Loading…
Reference in New Issue
Block a user