mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #9525 from caesarxuchao/explorer-examples-v1
update examples/explorer to v1
This commit is contained in:
commit
f850a6ac20
@ -17,7 +17,7 @@ $ kubectl create -f pod.json
|
|||||||
$ kubectl proxy &
|
$ kubectl proxy &
|
||||||
Starting to serve on localhost:8001
|
Starting to serve on localhost:8001
|
||||||
|
|
||||||
$ curl localhost:8001/api/v1beta3/proxy/namespaces/default/pods/explorer:8080/vars/
|
$ curl localhost:8001/api/v1/proxy/namespaces/default/pods/explorer:8080/vars/
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
HOSTNAME=explorer
|
HOSTNAME=explorer
|
||||||
KIBANA_LOGGING_PORT_5601_TCP_PORT=5601
|
KIBANA_LOGGING_PORT_5601_TCP_PORT=5601
|
||||||
@ -78,7 +78,7 @@ KUBERNETES_PORT_443_TCP_PROTO=tcp
|
|||||||
KUBERNETES_PORT_443_TCP_ADDR=10.0.0.2
|
KUBERNETES_PORT_443_TCP_ADDR=10.0.0.2
|
||||||
HOME=/
|
HOME=/
|
||||||
|
|
||||||
$ curl localhost:8001/api/v1beta3/proxy/namespaces/default/pods/explorer:8080/fs/
|
$ curl localhost:8001/api/v1/proxy/namespaces/default/pods/explorer:8080/fs/
|
||||||
mount/
|
mount/
|
||||||
var/
|
var/
|
||||||
.dockerenv
|
.dockerenv
|
||||||
@ -90,9 +90,9 @@ sys/
|
|||||||
README.md
|
README.md
|
||||||
explorer
|
explorer
|
||||||
|
|
||||||
$ curl localhost:8001/api/v1beta3/proxy/namespaces/default/pods/explorer:8080/dns?q=elasticsearch-logging
|
$ curl localhost:8001/api/v1/proxy/namespaces/default/pods/explorer:8080/dns?q=elasticsearch-logging
|
||||||
<html><head></head><body>
|
<html><head></head><body>
|
||||||
<form action="/api/v1beta3/proxy/namespaces/default/pods/explorer:8080/dns">
|
<form action="/api/v1/proxy/namespaces/default/pods/explorer:8080/dns">
|
||||||
<input name="q" type="text" value="elasticsearch-logging"/>
|
<input name="q" type="text" value="elasticsearch-logging"/>
|
||||||
<button type="submit">Lookup</button>
|
<button type="submit">Lookup</button>
|
||||||
</form>
|
</form>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"kind": "Pod",
|
"kind": "Pod",
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "explorer"
|
"name": "explorer"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user