Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/2.3' into 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Martynas Pumputis committed Jul 30, 2018
2 parents 4263ac1 + 973e107 commit e669ac6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
1 change: 0 additions & 1 deletion site/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Install Weave Net from the command line on its own or if you are using Docker, K
* [Integrating Kubernetes and Mesos via the CNI Plugin](https://www.weave.works/docs/net/latest/kubernetes/)
* [Integrating Kubernetes via the Addon](https://www.weave.works/docs/net/latest/kubernetes/kube-addon/)
* [Installation](https://www.weave.works/docs/net/latest/kubernetes/kube-addon/#install)
* [Upgrading Kubernetes to version 1.6](https://www.weave.works/docs/net/latest/kubernetes/kube-addon/#kube-1.6-upgrade)
* [Upgrading the Daemon Sets](https://www.weave.works/docs/net/latest/kubernetes/kube-addon/#daemon-sets)
* [CPU and Memory Requirements](https://www.weave.works/docs/net/latest/kubernetes/kube-addon/#resources)
* [Pod Eviction](https://www.weave.works/docs/net/latest/kubernetes/kube-addon/#eviction)
Expand Down
30 changes: 2 additions & 28 deletions site/kubernetes/kube-addon.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ search_type: Documentation
The following topics are discussed:

* [Installation](#install)
* [Upgrading Kubernetes to version 1.6](#kube-1.6-upgrade)
* [Upgrading the Daemon Sets](#daemon-sets)
* [CPU and Memory Requirements](#resources)
* [Pod Eviction](#eviction)
Expand Down Expand Up @@ -64,38 +63,13 @@ Shut down Kubernetes, and _on all nodes_ perform the following:
Then relaunch Kubernetes and install the addon as described
above.

## <a name="kube-1.6-upgrade"></a> Upgrading Kubernetes to version 1.6

In version 1.6, Kubernetes has increased security, so we need to
create a special service account to run Weave Net. This is done in
the file `weave-daemonset-k8s-1.6.yaml` attached to the [Weave Net
release](https://github.com/weaveworks/weave/releases/latest).

Also, the
[toleration](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/taint-toleration-dedicated.md)
required to let Weave Net run on master nodes has moved from an
annotation to a field on the DaemonSet spec object.

If you have edited the Weave Net DaemonSet from a previous release,
you will need to re-make your changes against the new version.

### <a name="daemon-sets"></a> Upgrading the Daemon Sets

For Kubernetes 1.6 and above the DaemonSet definition specifies
[Rolling Updates](https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/),
The DaemonSet definition specifies [Rolling
Updates](https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/),
so when you apply a new version Kubernetes will automatically restart
the Weave Net pods one by one.

Kubernetes v1.5 and below does not support rolling upgrades of daemon sets,
and so you will need to perform the procedure manually:

* Apply the updated addon manifest `kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"`
* Kill each Weave Net pod with `kubectl delete` and then wait for it to reboot before moving on to the next pod.

**Note:** In versions prior to Weave Net 2.0, deleting all Weave Net pods at the same time
will result in them losing track of IP address range ownership, possibly leading to
duplicate IP addresses if you then start a new copy of Weave Net.

## <a name="resources"></a>CPU and Memory Requirements

Kubernetes manages
Expand Down

0 comments on commit e669ac6

Please sign in to comment.