Skip to content

Commit

Permalink
Deploy mizar as standalone plugin to Kubernetes cluster where there i…
Browse files Browse the repository at this point in the history
…s no kube-proxy (#434)

* operator deployed using k8s api server data

* corrected mizar plugin yaml file names

* added instruction of mizar cni plugin installation
  • Loading branch information
hwchen authored Feb 12, 2021
1 parent 396ca0b commit 938b3f9
Show file tree
Hide file tree
Showing 3 changed files with 520 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/user/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,24 @@ This script does the following:
* Deploy the Mizar Daemon
* Install the Mizar CNI Plugin

### Install Mizar as Kubernetes CNI plugin
Mizar can be installed as network plugin to any Kubernetes cluster. Below has been verified to work for Ubuntu 20.04.1 LTS (on AWS EC2 VM).

If a Kuberneetes cluster has kube-proxy daemonSet running, the simple one line would have Mizar installed:
```bash
kubectl apply -f https://raw.githubusercontent.com/CentaurusInfra/mizar/dev-next/etc/deploy/deploy.mizar.components.yaml
```

If the cluster has no kube-proxy (e.g. cluster being started using kubeadm init --skip-phases=addon/kube-proxy), you need to run below first:
```bash
kubectl create configmap mizar-k8s-config --from-literal=k8sapihost="<kube-api-server-ip>" --from-literal=k8sapiport="<kube-api-server-port>"
```
where the kube-api-server-ip and kube-api-server-port can be identified by ```kubectl get endpoint kubernetes```,
then run following command to have Mizar plugin installed
```bash
kubectl apply -f https://raw.githubusercontent.com/CentaurusInfra/mizar/dev-next/etc/deploy/deploy.mizar.components.direct-api-access.yaml
```

### Linux Kernel Update

For TCP to function properly, you will need to update your Kernel version to at least 5.6-rc2 on every node. A script, ```kernel_update.sh``` is provided in the Mizar repo to download and update your machine's kernel if you do not wish to build the kernel source code yourself.
Expand Down
Loading

0 comments on commit 938b3f9

Please sign in to comment.