Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daishe/kubeconfig
simple Kubernetes config manager
https://github.com/daishe/kubeconfig
configuration configuration-management go golang k8s kubeconfig kubectl kubernetes
Last synced: about 2 months ago
JSON representation
simple Kubernetes config manager
- Host: GitHub
- URL: https://github.com/daishe/kubeconfig
- Owner: daishe
- License: apache-2.0
- Created: 2021-03-23T00:16:54.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-12T23:54:03.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T11:13:45.631Z (8 months ago)
- Topics: configuration, configuration-management, go, golang, k8s, kubeconfig, kubectl, kubernetes
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kubeconfig
*simple Kubernetes config manager*
[![Latest stable version](https://img.shields.io/github/v/tag/daishe/kubeconfig?label=latest%20stable%20version&sort=semver)](https://github.com/daishe/kubeconfig/releases)
[![Latest release status](https://img.shields.io/github/actions/workflow/status/daishe/kubeconfig/release.yaml?label=release%20build&logo=github&logoColor=fff)](https://github.com/daishe/kubeconfig/actions/workflows/release.yaml)[![Go reference](https://pkg.go.dev/badge/github.com/daishe/kubeconfig.svg)](https://pkg.go.dev/github.com/daishe/kubeconfig)
[![Go version](https://img.shields.io/github/go-mod/go-version/daishe/kubeconfig?label=version&logo=go&logoColor=fff)](https://golang.org/dl/)
[![Go report card](https://goreportcard.com/badge/github.com/daishe/kubeconfig)](https://goreportcard.com/report/github.com/daishe/kubeconfig)
[![License](https://img.shields.io/github/license/daishe/kubeconfig)](https://github.com/daishe/kubeconfig/blob/master/LICENSE)Instead of keeping one large kubectl config file with lots of entries, kubeconfig allows you to simply switch the entire file! This approach is much easier to use, especially when working with lots of temporary Kubernetes clusters.
## Usage
Just place all your kubectl config files in the `.kubeconfig` directory (under your home directory).
Then to list all configs, use
```sh
kubeconfig list
```and to actually switch current kubectl config (located under `.kube/config` in your home directory), use
```sh
kubeconfig switch
```That's it!
## Help
To get the complete list of all commands, use
```sh
kubeconfig --help
```or just simply type
```sh
kubeconfig
```To get information about particular command including list of aliases and flags, use
```sh
kubeconfig --help
```or alternatively
```sh
kubeconfig help
```## License
Kubeconfig is open-sourced software licensed under the [Apache License 2.0](http://www.apache.org/licenses/).