2015-07-14 00:13:09 +00:00
|
|
|
<!-- BEGIN MUNGE: UNVERSIONED_WARNING -->
|
|
|
|
|
|
|
|
<!-- BEGIN STRIP_FOR_RELEASE -->
|
|
|
|
|
2015-07-16 17:02:26 +00:00
|
|
|
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
|
|
|
|
width="25" height="25">
|
|
|
|
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
|
|
|
|
width="25" height="25">
|
|
|
|
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
|
|
|
|
width="25" height="25">
|
|
|
|
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
|
|
|
|
width="25" height="25">
|
|
|
|
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
|
|
|
|
width="25" height="25">
|
|
|
|
|
|
|
|
<h2>PLEASE NOTE: This document applies to the HEAD of the source tree</h2>
|
|
|
|
|
|
|
|
If you are using a released version of Kubernetes, you should
|
|
|
|
refer to the docs that go with that version.
|
|
|
|
|
2015-12-14 18:37:38 +00:00
|
|
|
<!-- TAG RELEASE_LINK, added by the munger automatically -->
|
2015-07-16 17:02:26 +00:00
|
|
|
<strong>
|
2015-11-03 18:17:57 +00:00
|
|
|
The latest release of this document can be found
|
|
|
|
[here](http://releases.k8s.io/release-1.1/examples/explorer/README.md).
|
2015-07-16 17:02:26 +00:00
|
|
|
|
|
|
|
Documentation for other releases can be found at
|
|
|
|
[releases.k8s.io](http://releases.k8s.io).
|
|
|
|
</strong>
|
|
|
|
--
|
2015-07-13 22:15:35 +00:00
|
|
|
|
2015-07-14 00:13:09 +00:00
|
|
|
<!-- END STRIP_FOR_RELEASE -->
|
|
|
|
|
|
|
|
<!-- END MUNGE: UNVERSIONED_WARNING -->
|
2015-07-17 22:35:41 +00:00
|
|
|
|
2015-05-13 21:57:09 +00:00
|
|
|
### explorer
|
|
|
|
|
|
|
|
Explorer is a little container for examining the runtime environment kubernetes produces for your pods.
|
|
|
|
|
|
|
|
The intended use is to substitute gcr.io/google_containers/explorer for your intended container, and then visit it via the proxy.
|
|
|
|
|
|
|
|
Currently, you can look at:
|
|
|
|
* The environment variables to make sure kubernetes is doing what you expect.
|
|
|
|
* The filesystem to make sure the mounted volumes and files are also what you expect.
|
|
|
|
* Perform DNS lookups, to see how DNS works.
|
|
|
|
|
2015-10-06 04:03:04 +00:00
|
|
|
`pod.yaml` is supplied as an example. You can control the port it serves on with the -port flag.
|
2015-05-13 21:57:09 +00:00
|
|
|
|
|
|
|
Example from command line (the DNS lookup looks better from a web browser):
|
2015-07-17 02:01:02 +00:00
|
|
|
|
2015-07-20 16:40:32 +00:00
|
|
|
```console
|
2015-10-06 04:03:04 +00:00
|
|
|
$ kubectl create -f examples/explorer/pod.yaml
|
2015-06-05 21:50:11 +00:00
|
|
|
$ kubectl proxy &
|
2015-05-13 21:57:09 +00:00
|
|
|
Starting to serve on localhost:8001
|
|
|
|
|
2015-06-09 22:29:15 +00:00
|
|
|
$ curl localhost:8001/api/v1/proxy/namespaces/default/pods/explorer:8080/vars/
|
2015-05-13 21:57:09 +00:00
|
|
|
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
|
|
HOSTNAME=explorer
|
|
|
|
KIBANA_LOGGING_PORT_5601_TCP_PORT=5601
|
|
|
|
KUBERNETES_SERVICE_HOST=10.0.0.2
|
|
|
|
MONITORING_GRAFANA_PORT_80_TCP_PROTO=tcp
|
|
|
|
MONITORING_INFLUXDB_UI_PORT_80_TCP_PROTO=tcp
|
|
|
|
KIBANA_LOGGING_SERVICE_PORT=5601
|
|
|
|
MONITORING_HEAPSTER_PORT_80_TCP_PORT=80
|
|
|
|
MONITORING_INFLUXDB_UI_PORT_80_TCP_PORT=80
|
|
|
|
KIBANA_LOGGING_SERVICE_HOST=10.0.204.206
|
|
|
|
KIBANA_LOGGING_PORT_5601_TCP=tcp://10.0.204.206:5601
|
|
|
|
KUBERNETES_PORT=tcp://10.0.0.2:443
|
|
|
|
MONITORING_INFLUXDB_PORT=tcp://10.0.2.30:80
|
|
|
|
MONITORING_INFLUXDB_PORT_80_TCP_PROTO=tcp
|
|
|
|
MONITORING_INFLUXDB_UI_PORT=tcp://10.0.36.78:80
|
|
|
|
KUBE_DNS_PORT_53_UDP=udp://10.0.0.10:53
|
|
|
|
MONITORING_INFLUXDB_SERVICE_HOST=10.0.2.30
|
|
|
|
ELASTICSEARCH_LOGGING_PORT=tcp://10.0.48.200:9200
|
|
|
|
ELASTICSEARCH_LOGGING_PORT_9200_TCP_PORT=9200
|
|
|
|
KUBERNETES_PORT_443_TCP=tcp://10.0.0.2:443
|
|
|
|
ELASTICSEARCH_LOGGING_PORT_9200_TCP_PROTO=tcp
|
|
|
|
KIBANA_LOGGING_PORT_5601_TCP_ADDR=10.0.204.206
|
|
|
|
KUBE_DNS_PORT_53_UDP_ADDR=10.0.0.10
|
|
|
|
MONITORING_HEAPSTER_PORT_80_TCP_PROTO=tcp
|
|
|
|
MONITORING_INFLUXDB_PORT_80_TCP_ADDR=10.0.2.30
|
|
|
|
KIBANA_LOGGING_PORT=tcp://10.0.204.206:5601
|
|
|
|
MONITORING_GRAFANA_SERVICE_PORT=80
|
|
|
|
MONITORING_HEAPSTER_SERVICE_PORT=80
|
|
|
|
MONITORING_HEAPSTER_PORT_80_TCP=tcp://10.0.150.238:80
|
|
|
|
ELASTICSEARCH_LOGGING_PORT_9200_TCP=tcp://10.0.48.200:9200
|
|
|
|
ELASTICSEARCH_LOGGING_PORT_9200_TCP_ADDR=10.0.48.200
|
|
|
|
MONITORING_GRAFANA_PORT_80_TCP_PORT=80
|
|
|
|
MONITORING_HEAPSTER_PORT=tcp://10.0.150.238:80
|
|
|
|
MONITORING_INFLUXDB_PORT_80_TCP=tcp://10.0.2.30:80
|
|
|
|
KUBE_DNS_SERVICE_PORT=53
|
|
|
|
KUBE_DNS_PORT_53_UDP_PORT=53
|
|
|
|
MONITORING_GRAFANA_PORT_80_TCP_ADDR=10.0.100.174
|
|
|
|
MONITORING_INFLUXDB_UI_SERVICE_HOST=10.0.36.78
|
|
|
|
KIBANA_LOGGING_PORT_5601_TCP_PROTO=tcp
|
|
|
|
MONITORING_GRAFANA_PORT=tcp://10.0.100.174:80
|
|
|
|
MONITORING_INFLUXDB_UI_PORT_80_TCP_ADDR=10.0.36.78
|
|
|
|
KUBE_DNS_SERVICE_HOST=10.0.0.10
|
|
|
|
KUBERNETES_PORT_443_TCP_PORT=443
|
|
|
|
MONITORING_HEAPSTER_PORT_80_TCP_ADDR=10.0.150.238
|
|
|
|
MONITORING_INFLUXDB_UI_SERVICE_PORT=80
|
|
|
|
KUBE_DNS_PORT=udp://10.0.0.10:53
|
|
|
|
ELASTICSEARCH_LOGGING_SERVICE_HOST=10.0.48.200
|
|
|
|
KUBERNETES_SERVICE_PORT=443
|
|
|
|
MONITORING_HEAPSTER_SERVICE_HOST=10.0.150.238
|
|
|
|
MONITORING_INFLUXDB_SERVICE_PORT=80
|
|
|
|
MONITORING_INFLUXDB_PORT_80_TCP_PORT=80
|
|
|
|
KUBE_DNS_PORT_53_UDP_PROTO=udp
|
|
|
|
MONITORING_GRAFANA_PORT_80_TCP=tcp://10.0.100.174:80
|
|
|
|
ELASTICSEARCH_LOGGING_SERVICE_PORT=9200
|
|
|
|
MONITORING_GRAFANA_SERVICE_HOST=10.0.100.174
|
|
|
|
MONITORING_INFLUXDB_UI_PORT_80_TCP=tcp://10.0.36.78:80
|
|
|
|
KUBERNETES_PORT_443_TCP_PROTO=tcp
|
|
|
|
KUBERNETES_PORT_443_TCP_ADDR=10.0.0.2
|
|
|
|
HOME=/
|
|
|
|
|
2015-06-09 22:29:15 +00:00
|
|
|
$ curl localhost:8001/api/v1/proxy/namespaces/default/pods/explorer:8080/fs/
|
2015-05-13 21:57:09 +00:00
|
|
|
mount/
|
|
|
|
var/
|
|
|
|
.dockerenv
|
|
|
|
etc/
|
|
|
|
dev/
|
|
|
|
proc/
|
|
|
|
.dockerinit
|
|
|
|
sys/
|
|
|
|
README.md
|
|
|
|
explorer
|
|
|
|
|
2015-06-09 22:29:15 +00:00
|
|
|
$ curl localhost:8001/api/v1/proxy/namespaces/default/pods/explorer:8080/dns?q=elasticsearch-logging
|
2015-05-13 21:57:09 +00:00
|
|
|
<html><head></head><body>
|
2015-06-09 22:29:15 +00:00
|
|
|
<form action="/api/v1/proxy/namespaces/default/pods/explorer:8080/dns">
|
2015-05-13 21:57:09 +00:00
|
|
|
<input name="q" type="text" value="elasticsearch-logging"/>
|
|
|
|
<button type="submit">Lookup</button>
|
|
|
|
</form>
|
|
|
|
<br/><br/><pre>LookupNS(elasticsearch-logging):
|
|
|
|
Result: ([]*net.NS)<nil>
|
|
|
|
Error: <*>lookup elasticsearch-logging: no such host
|
|
|
|
|
|
|
|
LookupTXT(elasticsearch-logging):
|
|
|
|
Result: ([]string)<nil>
|
|
|
|
Error: <*>lookup elasticsearch-logging: no such host
|
|
|
|
|
|
|
|
LookupSRV("", "", elasticsearch-logging):
|
2015-07-23 17:13:57 +00:00
|
|
|
cname: elasticsearch-logging.default.svc.cluster.local.
|
|
|
|
Result: ([]*net.SRV)[<*>{Target:(string)elasticsearch-logging.default.svc.cluster.local. Port:(uint16)9200 Priority:(uint16)10 Weight:(uint16)100}]
|
2015-05-13 21:57:09 +00:00
|
|
|
Error: <nil>
|
|
|
|
|
|
|
|
LookupHost(elasticsearch-logging):
|
|
|
|
Result: ([]string)[10.0.60.245]
|
|
|
|
Error: <nil>
|
|
|
|
|
|
|
|
LookupIP(elasticsearch-logging):
|
|
|
|
Result: ([]net.IP)[10.0.60.245]
|
|
|
|
Error: <nil>
|
|
|
|
|
|
|
|
LookupMX(elasticsearch-logging):
|
|
|
|
Result: ([]*net.MX)<nil>
|
|
|
|
Error: <*>lookup elasticsearch-logging: no such host
|
|
|
|
|
|
|
|
</nil></nil></nil></nil></nil></nil></pre>
|
|
|
|
|
|
|
|
</body></html>
|
|
|
|
```
|
2015-05-14 22:12:45 +00:00
|
|
|
|
|
|
|
|
2015-07-14 00:13:09 +00:00
|
|
|
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
2015-05-14 22:12:45 +00:00
|
|
|
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/explorer/README.md?pixel)]()
|
2015-07-14 00:13:09 +00:00
|
|
|
<!-- END MUNGE: GENERATED_ANALYTICS -->
|