weave: Upgrade to 2.5.0 (#3660)

* weave: Upgrade to 2.5.0

Upstream Changes:

-   weave 2.5.0 (https://github.com/weaveworks/weave/releases/tag/v2.5.0)
-   Adds support for Kubernetes `hostPort` mapping
-   Adds support for Kubernetes `ipBlock` NetworkPolicy feature

Our Changes:

-   Templates sync with upstream manifests
-   Remove legacy nodePort fix

* BC for weave < 2.5.0
pull/3713/head
Wong Hoi Sing Edison 2018-11-15 15:38:51 +08:00 committed by k8s-ci-robot
parent 730caa3d58
commit 9ebdf0e3cf
5 changed files with 8 additions and 11 deletions

View File

@ -122,9 +122,9 @@ Supported Components
- [cilium](https://github.com/cilium/cilium) v1.3.0
- [contiv](https://github.com/contiv/install) v1.1.7
- [flanneld](https://github.com/coreos/flannel) v0.10.0
- [weave](https://github.com/weaveworks/weave) v2.4.1
- [kube-router](https://github.com/cloudnativelabs/kube-router) v0.2.1
- [multus](https://github.com/intel/multus-cni) v3.1
- [weave](https://github.com/weaveworks/weave) v2.5.0
- Application
- [cephfs-provisioner](https://github.com/kubernetes-incubator/external-storage) v2.1.0-k8s1.11
- [cert-manager](https://github.com/jetstack/cert-manager) v0.5.0

View File

@ -53,8 +53,7 @@ calico_rr_version: "v0.6.1"
flannel_version: "v0.10.0"
flannel_cni_version: "v0.3.0"
weave_version: "2.4.1"
weave_version: 2.5.0
pod_infra_version: 3.1
contiv_version: 1.2.1
cilium_version: "v1.3.0"

View File

@ -18,5 +18,5 @@
- name: Weave | Fix nodePort for Weave
template:
src: 00-weave.conflist.j2
dest: /etc/cni/net.d/00-weave.conflist
src: 10-weave.conflist.j2
dest: /etc/cni/net.d/10-weave.conflist

View File

@ -1,11 +1,11 @@
{
"cniVersion": "0.3.0",
"name": "mynet",
"name": "weave",
"plugins": [
{
"name": "weave",
"type": "weave-net",
"hairpinMode": true
"hairpinMode": {{ weave_hairpin_mode | bool | lower }}
},
{
"type": "portmap",

View File

@ -141,7 +141,7 @@ items:
- name: CONN_LIMIT
value: "{{ weave_conn_limit | int }}"
- name: HAIRPIN_MODE
value: "{{ weave_hairpin_mode | bool }}"
value: "{{ weave_hairpin_mode | bool | lower }}"
- name: IPALLOC_RANGE
value: "{{ weave_ipalloc_range }}"
- name: EXPECT_NPC
@ -176,12 +176,11 @@ items:
{% endif %}
image: {{ weave_kube_image_repo }}:{{ weave_kube_image_tag }}
imagePullPolicy: {{ k8s_image_pull_policy }}
livenessProbe:
readinessProbe:
httpGet:
host: 127.0.0.1
path: /status
port: 6784
initialDelaySeconds: 30
resources:
requests:
cpu: 10m
@ -203,7 +202,6 @@ items:
- name: xtables-lock
mountPath: /run/xtables.lock
- name: weave-npc
args: []
env:
- name: HOSTNAME
valueFrom: