Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Claim using cni plugins for frakti #261

Merged
merged 1 commit into from
Oct 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions docs/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,11 @@ setenforce 0
yum install -y kubernetes-cni
```

CNI networks should also be configured, note that
CNI networks should also be configured:

- frakti only supports **bridge** network plugin yet
- **subnets should be different on different nodes**, .e.g. `10.244.1.0/24` for the master and `10.244.2.0/24` for the first node
- Skip this section if you want to use existing CNI plugins like Fannel, Weave, Calico etc.
- Otherwise, you can use **bridge** network plugin, it's the simplest way.
- Subnets should be different on different nodes. e.g. `10.244.1.0/24` for the master and `10.244.2.0/24` for the first node

```sh
mkdir -p /etc/cni/net.d
Expand Down Expand Up @@ -219,6 +220,14 @@ systemctl daemon-reload
kubeadm init --pod-network-cidr 10.244.0.0/16 --kubernetes-version stable
```

Configure CNI network plugin (skip this step if you already configured simple bridge plugin)

```sh
kubectl create -f https://github.com/coreos/flannel/raw/master/Documentation/kube-flannel.yml
```

For other plugins, please check [networking doc](./networking.md).

We prefer to use Linux container runtime to handle kube-dns since the default resource limit of hypervisor runtime is not enough.
So let's annotate the Pod and let Kubernetes do the rolling update for you.

Expand Down
1 change: 0 additions & 1 deletion docs/networking.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ rm -f /etc/cni/net.d/*
Then setup flannel plugin by running:

```sh
kubectl create -f https://github.com/coreos/flannel/raw/master/Documentation/kube-flannel-rbac.yml
kubectl create -f https://github.com/coreos/flannel/raw/master/Documentation/kube-flannel.yml
```

Expand Down