kubectl
Kubectl Overview
Secure your stack with a hardened Kubectl image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies contained in the image.
Use Kubectl when you need a command line tool for communicating with a Kubernetes cluster's control plane using the Kubernetes API.
Try It Out
Take the Minimus Kubectl image for a test run by printing the help menu:
docker run --rm -it \
reg.mini.dev/kubectl --helpYou should see the kubectl help output with available commands and options.
Check kubectl version
To verify the kubectl version installed in the image:
docker run --rm -it \
reg.mini.dev/kubectl version --clientConfigure kubectl with KUBECONFIG
To use kubectl with your Kubernetes cluster configuration, mount your kubeconfig file and set the KUBECONFIG environment variable:
docker run --rm -it \
-e KUBECONFIG=/home/nonroot/.kube/config \
-v $HOME/.kube/config:/home/nonroot/.kube/config:ro \
reg.mini.dev/kubectl get nodesThis mounts your local kubeconfig file into the container and runs kubectl get nodes to list cluster nodes.
Run kubectl commands in a Kubernetes pod
For use in Kubernetes pods, you can run kubectl commands by mounting the service account token and setting the appropriate environment variables. This is useful for CI/CD pipelines or cluster management tasks.
Technical Considerations
The Kubectl image provided by Minimus is a slim, security-hardened alternative to the public image. The images are largely interchangeable, with a few differences as noted below.
Kubectl built by Minimus:
- Runs as non-root by default as user 1000. The public image runs as user 1001.
- Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.
The Payoff
A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.
- See the risk reduction dashboard for a detailed CVE comparison over the past 30 days.
- Review the compliance report to see the default hardening and security configurations for the image.
Terms & Info
Trademark
This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.
Disclaimer
Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.