Skip to content

Commit

Permalink
Add documents for installing Karmada in Kind
Browse files Browse the repository at this point in the history
Signed-off-by: RainbowMango <[email protected]>
  • Loading branch information
RainbowMango committed Jan 11, 2022
1 parent eb4b3e2 commit 93d4a17
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions docs/installation/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- [Install Karmada in Kubernetes](#install-karmada-in-kubernetes)
- [Offline installation](#offline-installation)
- [Deploy HA](#deploy-ha)
- [Install Karmada in Kind cluster](#install-karmada-in-kind-cluster)
- [Install Karmada by Helm Chart Deployment](#install-karmada-by-helm-chart-deployment)
- [Install Karmada from source](#install-karmada-from-source)

Expand Down Expand Up @@ -134,6 +135,44 @@ Use `--karmada-apiserver-replicas` and `--etcd-replicas` flags to specify the nu
kubectl karmada init --karmada-apiserver-replicas 3 --etcd-replicas 3
```

### Install Karmada in Kind cluster

> kind is a tool for running local Kubernetes clusters using Docker container "nodes".
> It was primarily designed for testing Kubernetes itself, not for production.
Create a cluster named `host` by `hack/create-cluster.sh`:
```bash
hack/create-cluster.sh host /root/.kube/host.config
```

Then copy `kubectl-karmada` CLI to cluster:
```bash
docker cp kubectl-karmada host-control-plane:/usr/local/bin/
```

Enter the container:
```bash
docker exec -it host-control-plane bash
```

Install Karmada v1.0.0 by command `kubectl karmada init`:
```bash
kubectl karmada init --crds https://github.com/karmada-io/karmada/releases/download/v1.0.0/crds.tar.gz --kubeconfig=/etc/kubernetes/admin.conf
```

Check installed components:
```bash
kubectl get pods -n karmada-system --kubeconfig=/etc/kubernetes/admin.conf
NAME READY STATUS RESTARTS AGE
etcd-0 1/1 Running 0 9m4s
karmada-aggregated-apiserver-84b45bf9b-5bb8b 1/1 Running 0 7m57s
karmada-apiserver-6dc4cf6964-dbdtq 1/1 Running 0 8m50s
karmada-controller-manager-556cf896bc-tjmps 1/1 Running 0 8m11s
karmada-scheduler-7b9d8b5764-mm7xc 1/1 Running 0 8m14s
karmada-webhook-7cf7986866-cjd45 1/1 Running 0 8m8s
kube-controller-manager-85c789dcfc-d2f77 1/1 Running 0 8m18s
```

## Install Karmada by Helm Chart Deployment
Please refer to [installing by Helm](https://github.com/karmada-io/karmada/tree/master/charts).

Expand Down

0 comments on commit 93d4a17

Please sign in to comment.