Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.2 KB

installation.md

File metadata and controls

59 lines (40 loc) · 1.2 KB

Installation

Installing the kubectl-kjob plugin, kjobctl.

Installing

From source

make kubectl-kjob
sudo mv ./bin/kubectl-kjob /usr/local/bin/kubectl-kjob

Installing CRDs

Using printcrds command

kubectl-kjob printcrds | kubectl apply --server-side -f -

From source

make install

Kjobctl

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

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

Autocompletion

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

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

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

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

See Also

  • overview - kubectl-kjob plugin, kjobctl overview.
  • commands - Full list of commands, along with all possible flags.