https://github.com/dvob/kube-config-merge
Merges Kubernetes configs
https://github.com/dvob/kube-config-merge
Last synced: 3 months ago
JSON representation
Merges Kubernetes configs
- Host: GitHub
- URL: https://github.com/dvob/kube-config-merge
- Owner: dvob
- License: apache-2.0
- Created: 2024-10-12T11:02:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-14T16:58:14.000Z (over 1 year ago)
- Last Synced: 2025-10-19T14:57:55.044Z (8 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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/dvob/kube-config-merge@latest
```