kube-config-merge

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

kube-config-merge

Merges Kubernetes configuration from SOURCE into the current configuration. It uses the default kubectl config locations or you can explicitly specify a target config using --kubeconfig flag. If no SOURCE is specified it is read from standard input.

kube-config-merge some-kubeconfig.yaml

kube-config-merge --kubeconfig my-target-config.yaml some-kubeconfig.yaml

ssh k3s-host sudo cat /etc/rancher/k3s/k3s.yaml | kube-config-merge --name k3s --server https://k3s-host

ssh kubeadm-host sudo cat /etc/kubernetes/admin.conf | kube-config-merge --name kubeadm --server https://kubeadm-host

Install

go install github.com/RafalSkolasinski/kube-config-merge@latest

or with mise

mise use -g go:github.com/RafalSkolasinski/kube-config-merge@latest

Fork Note

All credit to https://github.com/dvob/kube-config-merge. This is just a fork for my own convenience.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL