kube-config generator and kubernetes CLI management tools
289
Access all of your Kubernetes Clusters with one container of all your favorite Kubernetes CLI tools. Negates the need to configure a workstation or environment to manage clusters. Ease onboarding kubectl access for all of your SRE / DevOps Engineers. Allows easy creation of a kube config from a manifest file.
KUBECONFIG environment varcluster_manifest.yaml file with all the clusters you need access to.make generate to generate a kube_config.yaml file.
export KUBECONFIG=$PWD/kube_config.yamlmake runYou can combine multiple kube configs using the following command:
export KUBECONFIG=$PWD:kube_config.yaml:$HOME/.kube/config
To persist this config across terminal sessions, place the export command in your .bash_profile or .zshrc file.
make build to rebuild the container.make generate to regenerate the kube_config.yaml from the cluster_manifest.yaml at any time.make run to run the container.The container will load in the kube config from the value of the KUBECONFIG environment variable if it exists. If not, it will load the generated kube_config.yaml. Therefore, you can use any kube config within the kubectl container to manage that cluster.
cluster_manifest.yamlThis example shows with using with an Azure OIDC provider
clusters:
- cluster:
certificate-authority: ./certs/<cluster-1-cert-ca.cert>
server: https://<cluster-1-ip-or-hostname>
name: cluster-1
- cluster:
certificate-authority: ./certs/<cluster-2-cert-ca.cert>
server: https://<cluster-2-ip-or-hostname>
name: cluster-2
- cluster:
certificate-authority: ./certs/<cluster-3-cert-ca.cert>
server: https://<cluster-3-ip-or-hostname>
name: cluster-3
auth-provider:
config:
apiserver-id: <api-server-app-id>
client-id: <client-id>
environment: AzurePublicCloud
tenant-id: <tenant-id>
name: azure
3 Scenarios. Problem Statements - what are we trying to solve with this container?
This repo contains an image build for managing Kubernetes clusters using the following tools:
Content type
Image
Digest
Size
110.4 MB
Last updated
over 6 years ago
docker pull deck15/kube-manager