Skip to content
This repository was archived by the owner on May 4, 2026. It is now read-only.

tcwlab/legacy-kubectl

Repository files navigation

kubectl

FOSSA Status pipeline status coverage report GitHub tag License

tl;dr

This image contains kubectl, kustomize running on alpine. 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.

Quick reference

Getting started

This 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.

Using it locally

Using ~/.kube as volume

We 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 -v ~/.kube:/.kube tcwlab/kubectl:latest kubectl get no

or in interactive mode:

docker run -it --rm -v ~/.kube:/.kube tcwlab/kubectl:latest /bin/bash

Using only one specific kubeconfig

Instead 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/kubectl:latest kubectl get no

Using as CI/CD image

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/kubectl: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.

Roadmap

If you are interested in the upcoming/planned features, ideas and milestones, please have a look at our board.

License

This project is licensed under Apache License v2.

Project status

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.

FOSSA Status

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors