Run karmada natively on Mac, without virtual machine.
The official installation of karmada is running in docker. As is known to all, running docker on Mac is with the help of virtual machine. But vm costs too much hardware resource, it works hard for mac with low level hardware.
This repository is committed to resolving this problem.
- Abandoning vm, run karmada natively and lightly.
- Easy debug for karmada developer.
Build binaries and place them into BIN_DIR(default is ~/bin, can be changed in config)
- Install karmada binaries
git clone https://github.com/karmada-io/karmada.git
cd karmada
make
cp _output/bin/$(uname -s)/$(uname -m)/* ~/bin/- Install etcd binaries
git clone https://github.com/etcd-io/etcd.git
cd etcd
make
cp bin/etcd ~/bin/- Install kubernetes binaries
git clone -b release-1.23 https://github.com/kubernetes/kubernetes.git
cd kubernetes
make kube-apiserver kube-controller-manager
cp _out/bin/{kube-apiserver,kube-controller-manager} ~/bin/- Clone this repository, and change to the directory:
git clone https://github.com/ikaven1024/karmada-mac.git
cd karmada-mac- [Optional] Copy the
default.config, and edit it:
cp default.config config
vi config
# TO EDIT YOUR CONFIGBoth the
default.configandconfigwill be loaded, and later will override the values in the former.
Run this script to install Karmada.
./install.sh installWhen completed, Karmada is ready. You can access Karmada by
kubectl --kubeconfig ~/.karmada/karmada-apiserver.config version -o yamlOr
export KUBECONFIG=~/.karmada/karmada-apiserver.config
kubectl version -o yamlSee the usage by
./install.sh helpKarmada-mac is under the Apache 2.0 license. See the LICENSE file for details.