Installation

Installing the kubectl-kueue plugin, kueuectl.

Installing From Release Binaries

1. Download the latest release:

On Linux:

# For AMD64 / x86_64
[ $(uname -m) = x86_64 ] && curl -Lo ./kubectl-kueue https://github.com/kubernetes-sigs/kueue/releases/download/v0.8.3/kubectl-kueue-linux-amd64
# For ARM64
[ $(uname -m) = aarch64 ] && curl -Lo ./kubectl-kueue https://github.com/kubernetes-sigs/kueue/releases/download/v0.8.3/kubectl-kueue-linux-arm64

On Mac:

# For Intel Macs
[ $(uname -m) = x86_64 ] && curl -Lo ./kubectl-kueue https://github.com/kubernetes-sigs/kueue/releases/download/v0.8.3/kubectl-kueue-darwin-amd64
# For M1 / ARM Macs
[ $(uname -m) = arm64 ] && curl -Lo ./kubectl-kueue https://github.com/kubernetes-sigs/kueue/releases/download/v0.8.3/kubectl-kueue-darwin-arm64

2. Make the kubectl-kueue binary executable.

chmod +x ./kubectl-kueue

3. Move the kubectl binary to a file location on your system PATH.

sudo mv ./kubectl-kueue /usr/local/bin/kubectl-kueue

Installing From Source

make kueuectl
sudo mv ./bin/kubectl-kueue /usr/local/bin/kubectl-kueue

Kueuectl

Additionally, you can create an alias kueuectl to allow shorter syntax.

echo 'alias kueuectl="kubectl kueue"' >> ~/.bashrc
# Or if you are using ZSH
echo 'alias kueuectl="kubectl kueue"' >> ~/.zshrc

Autocompletion

echo '[[ $commands[kubectl-kueue] ]] && source <(kubectl-kueue completion bash)' >> ~/.bashrc
# Or if you are using ZSH
echo '[[ $commands[kubectl-kueue] ]] && source <(kubectl-kueue completion zsh)' >> ~/.zshrc

cat <<EOF >kubectl_complete-kueue
#!/usr/bin/env sh

# Call the __complete command passing it all arguments
kubectl kueue __complete "\$@"
EOF

chmod u+x kubectl_complete-kueue
sudo mv kubectl_complete-kueue /usr/local/bin/kubectl_complete-kueue