k8sThis image contains kubectl, kustomize and helm all-in-one alpine image. Every image contains the latest stable version of both tools at build time.
The goal is to make CI/CD tasks as easy as possible.
We only set up this project, because all other projects we found 'in the wild' seems to be somehow orphaned.
kubectl: see referencekustomize: SIG documentationhelm: official documentationThis image is intended to be used both locally and as a part of a pipeline. Find the steps how to use it below, depending on your needs.
~/.kube as volumeWe thought it would be easy to just mount all of your kubernetes configs inside the container, so that you can easily interact with it. It's as easy as calling:
docker run --rm -v ~/.kube:/.kube tcwlab/k8s:latest kubectl get no
docker run --rm -v ~/.kube:/.kube tcwlab/k8s:latest helm list
or in interactive mode:
docker run -it --rm -v ~/.kube:/.kube tcwlab/k8s:latest /bin/bash
kubeconfigInstead of mounting all your kubeconfigs to the container, you could also only set one specific config as environment variable:
docker run -e KUBE_CONFIG_B64="$(base64 -i ~/.kube/config)" tcwlab/k8s:latest kubectl version
docker run -e KUBE_CONFIG_B64="$(base64 -i ~/.kube/config)" tcwlab/k8s:latest helm version
As we are using GitLab ourselves, this only describes the GitLab CI/CD way,
using this .gitlab-ci.yml snippet:
k8s-example:
stage: demo
image: tcwlab/k8s:latest
variables:
KUBE_CONFIG_B64: $YOUR_ENV_VAR_CONTAINING_B64_KUBECONFIG
script:
- kubectl get nodes
If you'd like to see some example configurations, have a look at our bootstrap project.
If you are interested in the upcoming/planned features, ideas and milestones, please have a look at our board.
This project is licensed under Apache License v2.
This project is maintained "best effort", which means, we strive for automation as much as we can A lot of updates will be done "automagically".
We do not have a specific dedicated set of people to work on this project.
It absolutely comes with no warranty.
Content type
Image
Digest
sha256:0b316fe9e…
Size
54.1 MB
Last updated
7 months ago
docker pull tcwlab/k8s