Run karmada natively on Mac, without virtual machine or Docker.
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.
Run installing kubernetes scripts needs bash version of 4.2. Check it with:
bash --versionIf your bash is below this version, update by
brew install bashRun this script to install Karmada.
makeWhen 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 yamlAnd a controller script is installed in ~/.karmada/ctrl.sh by default. With it, you can start or stop karmada by:
# start karmada
~/.karmada/ctrl.sh start
# stop karmada
~/.karmada/ctrl.sh stopMore usage see
~/.karmada/ctrl.sh helpYou can deploy member clusters with kwok with binary runtime.
Download kwok and kwokctl from Release and install them to ~/bin, then
kwokctl create cluster --name member1 --runtime=binary --kube-apiserver-binary ~/bin/kube-apiserver --kube-controller-manager-binary ~/bin/kube-controller-manager --kube-scheduler-binary ~/bin/kube-scheduler --etcd-binary ~/bin/etcd --kwok-controller-binary ~/bin/kwokKarmada-mac is under the Apache 2.0 license. See the LICENSE file for details.