A little utility to make your IKS work a bit better Report Bug · Request Feature
Table of Contents
This project could help you to cleanup the default IKS/OpenShift kubernets kube config files to use them in combination with othe toolchain, like kubectx, kubie, etc
By default the IBMCloud CLI tool (kubernetes service plugin) gathers the configuration (kubeconfig) to access to your cluster using the human readable cluster's name + the cluster ID, which is completely useless for humans and makes very hard to work with other tools, so this small utility clean all this stuff and will allow you to use directly the name of the cluster, for example using kubie:
kubie ctx the_human_readable_name_of_my_k8s_cluster -n kube-system
in just one shot
To get a local copy up and running follow these simple example steps.
make build && cat tests/data/kubeconfig_sample.yaml | ./bin/ikscc
You don't need extra requisite to use this program, just get the release for your OS and execute it
Just download a copy of the releases for your OS
ibmcloud ks cluster config --cluster my_iks_cluster -q --output yaml | ikscc > ${HOME}/.kube/config
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Javier Juarez - @thejtoken - [email protected]
Project Link: https://github.com/jjuarez/iks-ctx-cleaner