Merge pull request #2523 from hswong3i/weave-2.2.1
Upgrade Weave to 2.2.1
This commit is contained in:
commit
8eac37fabd
8 changed files with 50 additions and 31 deletions
|
@ -83,7 +83,7 @@ Versions of supported components
|
||||||
- [canal](https://github.com/projectcalico/canal) (given calico/flannel versions)
|
- [canal](https://github.com/projectcalico/canal) (given calico/flannel versions)
|
||||||
- [cilium](https://github.com/cilium/cilium) v1.0.0-rc8
|
- [cilium](https://github.com/cilium/cilium) v1.0.0-rc8
|
||||||
- [contiv](https://github.com/contiv/install/releases) v1.1.7
|
- [contiv](https://github.com/contiv/install/releases) v1.1.7
|
||||||
- [weave](http://weave.works/) v2.2.0
|
- [weave](http://weave.works/) v2.2.1
|
||||||
- [docker](https://www.docker.com/) v17.03 (see note)
|
- [docker](https://www.docker.com/) v17.03 (see note)
|
||||||
- [rkt](https://coreos.com/rkt/docs/latest/) v1.21.0 (see Note 2)
|
- [rkt](https://coreos.com/rkt/docs/latest/) v1.21.0 (see Note 2)
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ flannel_version: "v0.10.0"
|
||||||
flannel_cni_version: "v0.3.0"
|
flannel_cni_version: "v0.3.0"
|
||||||
istio_version: "0.2.6"
|
istio_version: "0.2.6"
|
||||||
vault_version: 0.8.1
|
vault_version: 0.8.1
|
||||||
weave_version: 2.2.0
|
weave_version: 2.2.1
|
||||||
pod_infra_version: 3.0
|
pod_infra_version: 3.0
|
||||||
contiv_version: 1.1.7
|
contiv_version: 1.1.7
|
||||||
cilium_version: "v1.0.0-rc8"
|
cilium_version: "v1.0.0-rc8"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
# Limits
|
# Limits
|
||||||
weave_memory_limit: 400M
|
weave_memory_limits: 400M
|
||||||
weave_cpu_limit: 30m
|
weave_cpu_limits: 30m
|
||||||
weave_memory_requests: 64M
|
weave_memory_requests: 64M
|
||||||
weave_cpu_requests: 10m
|
weave_cpu_requests: 10m
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,13 @@ items:
|
||||||
labels:
|
labels:
|
||||||
name: weave-net
|
name: weave-net
|
||||||
namespace: {{ system_namespace }}
|
namespace: {{ system_namespace }}
|
||||||
- apiVersion: rbac.authorization.k8s.io/v1
|
- apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: weave-net
|
name: weave-net
|
||||||
labels:
|
labels:
|
||||||
name: weave-net
|
name: weave-net
|
||||||
|
namespace: {{ system_namespace }}
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ''
|
- ''
|
||||||
|
@ -27,35 +28,42 @@ items:
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- extensions
|
- networking.k8s.io
|
||||||
resources:
|
|
||||||
- networkpolicies
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- apiGroups:
|
|
||||||
- 'networking.k8s.io'
|
|
||||||
resources:
|
resources:
|
||||||
- networkpolicies
|
- networkpolicies
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
|
- apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: weave-net
|
||||||
|
labels:
|
||||||
|
name: weave-net
|
||||||
|
namespace: {{ system_namespace }}
|
||||||
|
roleRef:
|
||||||
|
kind: ClusterRole
|
||||||
|
name: weave-net
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: weave-net
|
||||||
|
namespace: {{ system_namespace }}
|
||||||
- apiVersion: rbac.authorization.k8s.io/v1beta1
|
- apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
kind: Role
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
name: weave-net
|
name: weave-net
|
||||||
namespace: kube-system
|
|
||||||
labels:
|
labels:
|
||||||
name: weave-net
|
name: weave-net
|
||||||
|
namespace: {{ system_namespace }}
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ''
|
- ''
|
||||||
resources:
|
|
||||||
- configmaps
|
|
||||||
resourceNames:
|
resourceNames:
|
||||||
- weave-net
|
- weave-net
|
||||||
|
resources:
|
||||||
|
- configmaps
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
- update
|
- update
|
||||||
|
@ -65,29 +73,31 @@ items:
|
||||||
- configmaps
|
- configmaps
|
||||||
verbs:
|
verbs:
|
||||||
- create
|
- create
|
||||||
- apiVersion: rbac.authorization.k8s.io/v1
|
- apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
kind: ClusterRoleBinding
|
kind: RoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: weave-net
|
name: weave-net
|
||||||
labels:
|
labels:
|
||||||
name: weave-net
|
name: weave-net
|
||||||
|
namespace: {{ system_namespace }}
|
||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: Role
|
||||||
name: weave-net
|
name: weave-net
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: weave-net
|
name: weave-net
|
||||||
namespace: kube-system
|
namespace: {{ system_namespace }}
|
||||||
- apiVersion: extensions/v1beta1
|
- apiVersion: extensions/v1beta1
|
||||||
kind: DaemonSet
|
kind: DaemonSet
|
||||||
metadata:
|
metadata:
|
||||||
name: weave-net
|
name: weave-net
|
||||||
labels:
|
labels:
|
||||||
name: weave-net
|
name: weave-net
|
||||||
version: {{ weave_version }}
|
version: v{{ weave_version }}
|
||||||
namespace: {{ system_namespace }}
|
namespace: {{ system_namespace }}
|
||||||
spec:
|
spec:
|
||||||
|
minReadySeconds: 5
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -122,7 +132,7 @@ items:
|
||||||
- name: WEAVE_PASSWORD
|
- name: WEAVE_PASSWORD
|
||||||
value: {{ weave_password }}
|
value: {{ weave_password }}
|
||||||
image: {{ weave_kube_image_repo }}:{{ weave_kube_image_tag }}
|
image: {{ weave_kube_image_repo }}:{{ weave_kube_image_tag }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
host: 127.0.0.1
|
host: 127.0.0.1
|
||||||
|
@ -149,19 +159,28 @@ items:
|
||||||
mountPath: /lib/modules
|
mountPath: /lib/modules
|
||||||
- name: xtables-lock
|
- name: xtables-lock
|
||||||
mountPath: /run/xtables.lock
|
mountPath: /run/xtables.lock
|
||||||
readOnly: false
|
|
||||||
- name: weave-npc
|
- name: weave-npc
|
||||||
|
args: []
|
||||||
|
env:
|
||||||
|
- name: HOSTNAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
apiVersion: v1
|
||||||
|
fieldPath: spec.nodeName
|
||||||
image: {{ weave_npc_image_repo }}:{{ weave_npc_image_tag }}
|
image: {{ weave_npc_image_repo }}:{{ weave_npc_image_tag }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: {{ weave_cpu_requests }}
|
cpu: {{ weave_cpu_requests }}
|
||||||
memory: {{ weave_memory_requests }}
|
memory: {{ weave_memory_requests }}
|
||||||
limits:
|
limits:
|
||||||
cpu: {{ weave_cpu_limit }}
|
cpu: {{ weave_cpu_limits }}
|
||||||
memory: {{ weave_memory_limit }}
|
memory: {{ weave_memory_limits }}
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
|
volumeMounts:
|
||||||
|
- name: xtables-lock
|
||||||
|
mountPath: /run/xtables.lock
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
hostPID: true
|
hostPID: true
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
|
|
|
@ -7,7 +7,7 @@ startup_script: ""
|
||||||
|
|
||||||
# Deployment settings
|
# Deployment settings
|
||||||
kube_network_plugin: weave
|
kube_network_plugin: weave
|
||||||
weave_cpu_limit: "100m"
|
weave_cpu_limits: "100m"
|
||||||
weave_cpu_requests: "100m"
|
weave_cpu_requests: "100m"
|
||||||
kubeadm_enabled: true
|
kubeadm_enabled: true
|
||||||
deploy_netchecker: true
|
deploy_netchecker: true
|
||||||
|
|
|
@ -7,7 +7,7 @@ startup_script: 'systemctl disable locksmithd && systemctl stop locksmithd'
|
||||||
|
|
||||||
# Deployment settings
|
# Deployment settings
|
||||||
kube_network_plugin: weave
|
kube_network_plugin: weave
|
||||||
weave_cpu_limit: "100m"
|
weave_cpu_limits: "100m"
|
||||||
weave_cpu_requests: "100m"
|
weave_cpu_requests: "100m"
|
||||||
bootstrap_os: coreos
|
bootstrap_os: coreos
|
||||||
resolvconf_mode: host_resolvconf # this is required as long as the coreos stable channel uses docker < 1.12
|
resolvconf_mode: host_resolvconf # this is required as long as the coreos stable channel uses docker < 1.12
|
||||||
|
|
|
@ -5,7 +5,7 @@ mode: default
|
||||||
|
|
||||||
# Deployment settings
|
# Deployment settings
|
||||||
kube_network_plugin: weave
|
kube_network_plugin: weave
|
||||||
weave_cpu_limit: "100m"
|
weave_cpu_limits: "100m"
|
||||||
weave_cpu_requests: "100m"
|
weave_cpu_requests: "100m"
|
||||||
deploy_netchecker: true
|
deploy_netchecker: true
|
||||||
kubedns_min_replicas: 1
|
kubedns_min_replicas: 1
|
||||||
|
|
|
@ -6,7 +6,7 @@ mode: separate
|
||||||
# Deployment settings
|
# Deployment settings
|
||||||
bootstrap_os: ubuntu
|
bootstrap_os: ubuntu
|
||||||
kube_network_plugin: weave
|
kube_network_plugin: weave
|
||||||
weave_cpu_limit: "100m"
|
weave_cpu_limits: "100m"
|
||||||
weave_cpu_requests: "100m"
|
weave_cpu_requests: "100m"
|
||||||
deploy_netchecker: true
|
deploy_netchecker: true
|
||||||
kubedns_min_replicas: 1
|
kubedns_min_replicas: 1
|
||||||
|
|
Loading…
Reference in a new issue