Paste a predefined text via a keyboard shortcut

The aim of this tip is to have a keyboard shortcut to quickly configure my favorite kubectl aliases for the CKA exam :-) Install xdotool and xsel sudo apt install xdotool xsel Add this keyboard shortcut (In Gnome: Settings > Keyboard > Customize Shortcuts > Custom Shortcut) /bin/bash -c 'echo -n "source <(kubectl completion bash) && alias k=kubectl && complete -F __start_kubectl k && alias kgp=\"kubectl get pods\"" | xsel && xdotool click 2' Source: https://askubuntu....

March 25, 2021 · 1 min · JC

Memo Helm

helm is a kind of apt-get for kubernetes. As tiller poses a potential security threat, we will focus here on helm v3, the current stable release. With helm v2, you had to install tiller component in the kube-system namespace of your cluster, then have to add a RBAC account, as explained here. Ressources: https://helm.sh https://v3.helm.sh https://helm.sh/docs/using_helm/ https://v3.helm.sh/docs/intro/quickstart/ Installation Just download from Github Helm Releases and put the helm binary in one of your PATH’s folder....

February 14, 2021 · 1 min · JC