Install kubectl using Nix

Install kubectl and the OIDC login helpers from nixpkgs with nix-env.

1 min read Updated

Install kubectl and the OIDC login helpers from nixpkgs with a single nix-env command, which is handy on machines where you do not want a global package manager change. The command is below.

install.sh

bash
nix-env -iA nixpkgs.kubectl nixpkgs.kubelogin nixpkgs.kubelogin-oidc

Search articles

Type to filter articles. Use the arrow keys to move through results and Enter to open one. Press Escape to close.