All Projects → corneliusweig → Konfig

corneliusweig / Konfig

Licence: apache-2.0
konfig helps to merge, split or import kubeconfig files

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Konfig

Tslint Xo
TSLint shareable config for XO
Stars: ✭ 64 (-30.43%)
Mutual labels:  config
Data
Extended implementation of ArrayObject - useful collection for any config in your system (write, read, store, change, validate, convert to other format and etc).
Stars: ✭ 77 (-16.3%)
Mutual labels:  config
Kubectl Build
Build dockerfiles directly in your Kubernetes cluster.
Stars: ✭ 84 (-8.7%)
Mutual labels:  kubectl
To.ml
OCaml library for TOML
Stars: ✭ 68 (-26.09%)
Mutual labels:  config
Kubectl Trace
Schedule bpftrace programs on your kubernetes cluster using the kubectl
Stars: ✭ 1,194 (+1197.83%)
Mutual labels:  kubectl
Dotfiles
Gallery : https://fikriomar16.deviantart.com/
Stars: ✭ 79 (-14.13%)
Mutual labels:  config
.emacs.d
一个快速且实用的 Emacs 配置
Stars: ✭ 63 (-31.52%)
Mutual labels:  config
Dots
just dotfiles ¯\_(ツ)_/¯
Stars: ✭ 90 (-2.17%)
Mutual labels:  config
Kubectl Cssh
A kubectl plugin to ssh into Kubernetes nodes within separate tmux panes
Stars: ✭ 76 (-17.39%)
Mutual labels:  kubectl
Kubeplay
kubeplay – a new way to interact with Kubernetes API from your terminal
Stars: ✭ 83 (-9.78%)
Mutual labels:  kubectl
Forge
A Generic Low-Code Framework Built on a Config-Driven Tree Walker
Stars: ✭ 70 (-23.91%)
Mutual labels:  config
Gcs
配置管理平台:项目管理、配置管理、配置发布,配置接口等
Stars: ✭ 75 (-18.48%)
Mutual labels:  config
Terraform Eks
Terraform for AWS EKS
Stars: ✭ 82 (-10.87%)
Mutual labels:  kubectl
Kubectl Capture
A kubectl plugin which triggers a Sysdig capture
Stars: ✭ 66 (-28.26%)
Mutual labels:  kubectl
Kuttle
Kubernetes wrapper for sshuttle
Stars: ✭ 86 (-6.52%)
Mutual labels:  kubectl
Generate Pages Tutorial
教你一步步从零构建 webpack 开发多页面环境
Stars: ✭ 63 (-31.52%)
Mutual labels:  config
Config Lite
A super simple & flexible & useful config module.
Stars: ✭ 78 (-15.22%)
Mutual labels:  config
Server Configs Nginx
Nginx HTTP server boilerplate configs
Stars: ✭ 9,457 (+10179.35%)
Mutual labels:  config
Gomplate
A flexible commandline tool for template rendering. Supports lots of local and remote datasources.
Stars: ✭ 1,270 (+1280.43%)
Mutual labels:  config
Config
Config manager for laravel-admin
Stars: ✭ 83 (-9.78%)
Mutual labels:  config

konfig

Latest GitHub release GitHub workflow status Written in Bash

konfig helps to merge, split or import kubeconfig files

Usage

Import a kubeconfig

konfig import --save new-cfg

Imports the config file new-cfg into the default kubeconfig at ~/.kube/config. To show the result without changing your kubeconfig, do

konfig import new-cfg

CAVEAT: due to how shells work, the following will lose your current ~/.kube/config

# WRONG, don't do this!
konfig import new-cfg > ~/.kube/config

Merge several kubeconfig files

konfig merge config1 config2 > merged-config

This variant creates a self-contained kubeconfig where all credentials are stored inline in the kubeconfig. If you want to preserve the structure and keep credentials separate, use --preserve-structure.

Extract a minimal kubeconfig for one or several contexts

This will extract a minimal kubeconfig with a single context minikube:

# extract context minikube from the default kubeconfig
konfig export minikube > minikube.config

# extract context minikube and docker-for-desktop from two input configs
konfig export minikube docker-for-desktop -k ~/.kube/other,~/dockercfg > local

Installation

There are several ways to install konfig. The recommended installation method is via krew.

Via krew

Krew is the kubectl plugin manager. If you have not yet installed krew, get it at https://github.com/kubernetes-sigs/krew. Then installation is as simple as

kubectl krew install konfig

The plugin will be available as kubectl konfig, see doc/USAGE for further details. You could also define an alias as well: alias konfig = 'kubectl konfig'

Manual

When using the binaries for installation, also have a look at USAGE.

OSX & Linux

curl -Lo konfig https://github.com/corneliusweig/konfig/raw/v0.2.0/konfig \
  && chmod +x konfig \
  && sudo mv -i konfig /usr/local/bin

Feel free to change the sudo mv to put konfig in some other location from your $PATH variable.

Windows

Download konfig and put it in your PATH as konfig.exe.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].