From 0cc85928a35769db890c381c54d415d323c5f928 Mon Sep 17 00:00:00 2001 From: CaoShuFeng Date: Mon, 9 Apr 2018 11:33:08 +0800 Subject: [PATCH] fix description about root /proxy path (#7902) Fix issue: https://github.com/kubernetes/kubernetes/issues/61826 Related change: https://github.com/kubernetes/kubernetes/pull/59884 --- docs/tasks/administer-cluster/reconfigure-kubelet.md | 2 +- docs/tasks/configure-pod-container/assign-cpu-resource.md | 2 +- docs/tasks/configure-pod-container/assign-memory-resource.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tasks/administer-cluster/reconfigure-kubelet.md b/docs/tasks/administer-cluster/reconfigure-kubelet.md index 63a79bdf89..0d1af986b2 100644 --- a/docs/tasks/administer-cluster/reconfigure-kubelet.md +++ b/docs/tasks/administer-cluster/reconfigure-kubelet.md @@ -112,7 +112,7 @@ configz endpoint: ``` $ export NODE_NAME=the-name-of-the-node-you-are-reconfiguring -$ curl -sSL http://localhost:8001/api/v1/proxy/nodes/${NODE_NAME}/configz | jq '.kubeletconfig|.kind="KubeletConfiguration"|.apiVersion="kubelet.config.k8s.io/v1beta1"' > kubelet_configz_${NODE_NAME} +$ curl -sSL http://localhost:8001/api/v1/nodes/${NODE_NAME}/proxy/configz | jq '.kubeletconfig|.kind="KubeletConfiguration"|.apiVersion="kubelet.config.k8s.io/v1beta1"' > kubelet_configz_${NODE_NAME} ``` Note that we have to manually add the `kind` and `apiVersion` to the downloaded diff --git a/docs/tasks/configure-pod-container/assign-cpu-resource.md b/docs/tasks/configure-pod-container/assign-cpu-resource.md index 641bba2c1f..dc0fa5fe2c 100644 --- a/docs/tasks/configure-pod-container/assign-cpu-resource.md +++ b/docs/tasks/configure-pod-container/assign-cpu-resource.md @@ -108,7 +108,7 @@ kubectl proxy In another command window, get the CPU usage rate from the heapster service: ``` -curl http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/heapster/api/v1/model/namespaces/cpu-example/pods/cpu-demo/metrics/cpu/usage_rate +curl http://localhost:8001/api/v1/namespaces/kube-system/services/heapster/proxy/api/v1/model/namespaces/cpu-example/pods/cpu-demo/metrics/cpu/usage_rate ``` The output shows that the Pod is using 974 millicpu, which is just a bit less than diff --git a/docs/tasks/configure-pod-container/assign-memory-resource.md b/docs/tasks/configure-pod-container/assign-memory-resource.md index 2fd8d3325b..2ecbb41d08 100644 --- a/docs/tasks/configure-pod-container/assign-memory-resource.md +++ b/docs/tasks/configure-pod-container/assign-memory-resource.md @@ -110,7 +110,7 @@ kubectl proxy In another command window, get the memory usage from the Heapster service: ``` -curl http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/heapster/api/v1/model/namespaces/mem-example/pods/memory-demo/metrics/memory/usage +curl http://localhost:8001/api/v1/namespaces/kube-system/services/heapster/proxy/api/v1/model/namespaces/mem-example/pods/memory-demo/metrics/memory/usage ``` The output shows that the Pod is using about 162,900,000 bytes of memory, which