Skip to content
Afa' Afa'

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
Something wrong or want to discuss this article? Get in touch

Search articles and projects

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