Access a cluster with kubectl
Set up kubectl with the portal kubeconfig and sign in to an Entigo cluster through OIDC.
This guide sets up kubectl on your workstation to talk to an Entigo cluster,
using the kubeconfig you download from the portal.
Access is authenticated with OIDC rather than a static token or certificate: the
kubeconfig delegates login to the oidc-login plugin
(kubelogin), so the first kubectl call opens the Entigo Platform login in a browser and caches the
resulting token. Later commands reuse it until it expires, then prompt again — you
never copy a credential into the kubeconfig by hand, and the file itself contains
no secret.
The steps below install the plugin, download the kubeconfig, point kubectl at
it, and sign in.
Prerequisites
Section titled “Prerequisites”kubectl— install per OS.- The
oidc-loginplugin forkubectl, see step 1. - Network access to the cluster API endpoint. If the endpoint is private, connect the portal VPN first (Infrastructure → cluster → VPN tab).
1. Install the oidc-login plugin
Section titled “1. Install the oidc-login plugin”The plugin has two names. Its project is called kubelogin, but it installs and
runs as oidc-login: that is its name in krew, and the kubeconfig calls it as
kubectl oidc-login, so it must be on PATH as kubectl-oidc_login. Install it
with any of:
kubectl krew install oidc-login # any OS, via krewbrew install int128/kubelogin/kubelogin # macOS / Linuxchoco install kubelogin # WindowsManual binaries / details: int128/kubelogin README.
If installed via krew, add krew’s bin dir to PATH (krew setup), then verify:
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"kubectl oidc-login --version2. Download the kubeconfig
Section titled “2. Download the kubeconfig”Infrastructure → open the cluster → ⋮ (top right) → kubeconfig. The downloaded file is ready to use as-is — no editing.

3. Point kubectl at the file
Section titled “3. Point kubectl at the file”Set it for the current shell:
export KUBECONFIG=~/Downloads/kubeconfig.yaml # POSIX$env:KUBECONFIG = "$HOME\Downloads\kubeconfig.yaml" # Windows PowerShellOr merge it into your default config (kubeconfig docs):
KUBECONFIG=~/.kube/config:~/Downloads/kubeconfig.yaml \ kubectl config view --flatten > ~/.kube/config.newmv ~/.kube/config.new ~/.kube/config # back up first4. Authenticate
Section titled “4. Authenticate”The first API call opens the Entigo Platform login in a browser and caches the token:
kubectl get ns# browser opens -> log in -> command returnsLater commands reuse the cached token until it expires, then re-prompt automatically.
5. Verify
Section titled “5. Verify”kubectl config current-contextkubectl get nodesTroubleshooting
Section titled “Troubleshooting”| Symptom | Cause / fix |
|---|---|
unknown command "oidc-login" / oidc-login: not found, but kubectl krew list shows it |
krew’s bin dir not on PATH. Add export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" to your shell rc and restart the shell. |
Skipping plugin "oidc-login", it is already installed |
Already installed — it’s the PATH issue above, not the install. |
| Login opens but auth misbehaves | Wrong kubelogin (the Azure tool from Homebrew core brew install kubelogin). Reinstall via krew or the int128 tap. |
connection refused / timeout to the API endpoint |
Endpoint unreachable. Public cluster → check egress/firewall; private cluster → connect the portal VPN. |
x509: certificate signed by unknown authority |
kubeconfig edited/corrupted — re-download; the CA is embedded, don’t strip it. |
| Browser doesn’t open (headless/SSH) | Add --grant-type=authcode-keyboard to the user exec args, or run kubectl oidc-login get-token ... and follow the printed URL. |
| Stale/expired session | kubectl oidc-login clean, then re-run any kubectl command. |