ikaven1024 / karmada-mac

Run karmada on mac native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Karmada-Mac

CI Workflow

Run karmada natively on Mac, without virtual machine or Docker.

Why Karmada-Mac

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.

Quick Start

Prerequisites

Run installing kubernetes scripts needs bash version of 4.2. Check it with:

bash --version

If your bash is below this version, update by

brew install bash

Install Karmada

Run this script to install Karmada.

make

When completed, Karmada is ready. You can access Karmada by

kubectl --kubeconfig ~/.karmada/karmada-apiserver.config version -o yaml

Or

export KUBECONFIG=~/.karmada/karmada-apiserver.config
kubectl version -o yaml

And 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 stop

More usage see

~/.karmada/ctrl.sh help

Deploy member clusters

You 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/kwok

License

Karmada-mac is under the Apache 2.0 license. See the LICENSE file for details.

About

Run karmada on mac native

License:Apache License 2.0


Languages

Language:Shell 96.9%Language:Makefile 3.1%