Skip to content

Commit 719f24b

Browse files
committed
Clarification in dynamic Kubelet config doc
1 parent 3e9d362 commit 719f24b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,10 @@ installed, but you can adapt the tasks if you prefer to extract the
116116
```
117117
3. Run the following command to download and unpack the configuration from the
118118
`configz` endpoint. The command is long, so be careful when copying and
119-
pasting. **If you use zsh**, replace the `${NODE_NAME}` in the URL with the
120-
actual name of the node, because zsh automatically escapes opening curly
121-
braces, which causes the command to fail.
119+
pasting. **If you use zsh**, note that common zsh configurations add backslashes
120+
to escape the opening and closing curly braces around the variable name in the URL.
121+
For example: `${NODE_NAME}` will be rewritten as `$\{NODE_NAME\}` during the paste.
122+
You must remove the backslashes before running the command, or the command will fail.
122123

123124
```bash
124125
NODE_NAME="the-name-of-the-node-you-are-reconfiguring"; 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}

0 commit comments

Comments
 (0)