Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vmware-archive/kubectl-import
Tool for importing and merging kubectl configuration files
https://github.com/vmware-archive/kubectl-import
Last synced: 3 days ago
JSON representation
Tool for importing and merging kubectl configuration files
- Host: GitHub
- URL: https://github.com/vmware-archive/kubectl-import
- Owner: vmware-archive
- License: bsd-2-clause
- Archived: true
- Created: 2018-10-16T09:28:11.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T15:06:24.000Z (over 2 years ago)
- Last Synced: 2024-08-16T15:06:09.682Z (3 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 22
- Watchers: 7
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
- awesome - bitnami-labs/kubectl-import
README
# Kubectl-import
`kubectl-import` is a tool for importing and merging `kubectl` configuration files.
The imported files can be raw configuration files or base64-encoded versions of those files. Base64 is helpful for sharing using tools that impose maximum line size.
## Using
```console
$ kubectl-import ~/Downloads/cluster-kubectl-config
```The specified file(s) are merged back to your kubectl config file - `~/.kube/config` by default, unless `KUBECONFIG` environment variable is set.
In order to write output to a different file, simply set `KUBECONFIG` variable - such as:
```console
$ KUBECONFIG=/tmp/kubectl-merged kubectl-import ~/.kube/config ~/Downloads/cluster-kubectl-config
```## Installing
Simply download the script to a directory in your path. For example:
```console
sudo curl -o /usr/local/bin/kubectl-import https://raw.githubusercontent.com/bitnami-labs/kubectl-import/master/kubectl-import && sudo chmod 0755 /usr/local/bin/kubectl-import
```