Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vmware-archive/kubectl-import

Tool for importing and merging kubectl configuration files
https://github.com/vmware-archive/kubectl-import

Last synced: about 1 month ago
JSON representation

Tool for importing and merging kubectl configuration files

Awesome Lists containing this project

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
```