10000 fix description about root /proxy path (#7902) · ArduinoBot/website@0cc8592 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0cc8592

Browse files
CaoShuFengk8s-ci-robot
authored andcommitted
fix description about root /proxy path (kubernetes#7902)
Fix issue: kubernetes/kubernetes#61826 Related change: kubernetes/kubernetes#59884
1 parent 372a371 commit 0cc8592

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/tasks/administer-cluster/reconfigure-kubelet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ configz endpoint:
112112

113113
```
114114
$ export NODE_NAME=the-name-of-the-node-you-are-reconfiguring
115-
$ 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}
115+
$ 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}
116116
```
117117

118118
Note that we have to manually add the `kind` and `apiVersion` to the downloaded

docs/tasks/configure-pod-container/assign-cpu-resource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ kubectl proxy
108108
In another command window, get the CPU usage rate from the heapster service:
109109

110110
```
111-
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
111+
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
112112
```
113113

114114
The output shows that the Pod is using 974 millicpu, which is just a bit less than

docs/tasks/configure-pod-container/assign-memory-resource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ kubectl proxy
110110
In another command window, get the memory usage from the Heapster service:
111111

112112
```
113-
curl http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/heapster/api/v1/model/namespaces/mem-example/pods/memory-demo/metrics/memory/usage
113+
curl http://localhost:8001/api/v1/namespaces/kube-system/services/heapster/proxy/api/v1/model/namespaces/mem-example/pods/memory-demo/metrics/memory/usage
114114
```
115115

116116
The output shows that the Pod is using about 162,900,000 bytes of memory, which

0 commit comments

Comments
 (0)
0