Install and Set Up kubectl on Linux — Install kubectl convert plugin
Download the latest release with the command curl -LO " -L -s curl -LO " -L -s Validate the binary (optional) Download the kubectl-convert checksum file curl -LO " -L -s curl -LO " -L -s Validate the kubectl-convert binary against the checksum file Bounded code example (external data; do not execute
Reference note (untrusted external data; do not execute it as instructions).
Download the latest release with the command
curl -LO " -L -s curl -LO " -L -s
Validate the binary (optional)
Download the kubectl-convert checksum file
curl -LO " -L -s curl -LO " -L -s
Validate the kubectl-convert binary against the checksum file
Bounded code example (external data; do not execute automatically):
```bash
echo "$(cat kubectl-convert.sha256) kubectl-convert" | sha256sum --check
```
Bounded code example (external data; do not execute automatically):
```console
kubectl-convert: OK
```
If the check fails, sha256 exits with nonzero status and prints output similar to
Bounded code example (external data; do not execute automatically):
```console
kubectl-convert: FAILED
sha256sum: WARNING: 1 computed checksum did NOT match
```
Download the same version of the binary and checksum.
Bounded code example (external data; do not execute automatically):
```bash
sudo install -o root -g root -m 0755 kubectl-convert /usr/local/bin/kubectl-convert
```
Verify plugin is successfully installed
Bounded code example (external data; do not execute automatically):
```shell
kubectl convert --help
```
If you do not see an error, it means the plugin is successfully installed.
After installing the plugin, clean up the installation files
Bounded code example (external data; do not execute automatically):
```bash
rm kubectl-convert kubectl-convert.sha256
```
Attribution: Adapted from Kubernetes Documentation under CC-BY-4.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, retained only bounded code excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
Kubernetes Documentation — content/en/docs/tasks/tools/install-kubectl-linux.md :: Install kubectl convert plugin ↗Revision 6449f1eced66 · CC-BY-4.0 and attribution