Docker image with helm and kubectl on Ubuntu.
1.2K
This image contain helm and kubectl based on Ubuntu.
Basic usage
docker run --rm wwtg99/helm-kubectl helm version
docker run --rm wwtg99/helm-kubectl kubectl version
But it is useless if you do not mount kube config file onto it. You can mount your kube config file to /root/.kube or other locations with KUBECONFIG environment or --kubeconfig option set doc.
docker run --rm -v ~/.kube:/root/.kube wwtg99/helm-kubectl kubectl version
Also add helm config directory if needed.
docker run --rm -v ~/.helm:/root/.helm wwtg99/helm-kubectl helm repo list
Or you can initialize helm home directory in the container by
helm init --client-only
But it will try to connect to stable repository at https://kubernetes-charts.storage.googleapis.com, if you can not connect to this URL (GFW?), you can change it by --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts.
Usually use it in bash
docker run --name kube -ti -v ~/.kube:/root/.kube -v ~/.helm:/root/.helm wwtg99/helm-kubectl bash
Content type
Image
Digest
Size
73.1 MB
Last updated
about 7 years ago
docker pull wwtg99/helm-kubectl