Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
eee2eb11
Unverified
Commit
eee2eb11
authored
3 years ago
by
Frank Filippone
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update weave template to match source for 2.8.1 (#8013)
parent
8d3961ed
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/network_plugin/weave/templates/weave-net.yml.j2
+27
-17
27 additions, 17 deletions
roles/network_plugin/weave/templates/weave-net.yml.j2
with
27 additions
and
17 deletions
roles/network_plugin/weave/templates/weave-net.yml.j2
+
27
−
17
View file @
eee2eb11
...
@@ -27,7 +27,15 @@ items:
...
@@ -27,7 +27,15 @@ items:
- list
- list
- watch
- watch
- apiGroups:
- apiGroups:
- networking.k8s.io
- extensions
resources:
- networkpolicies
verbs:
- get
- list
- watch
- apiGroups:
- 'networking.k8s.io'
resources:
resources:
- networkpolicies
- networkpolicies
verbs:
verbs:
...
@@ -41,14 +49,6 @@ items:
...
@@ -41,14 +49,6 @@ items:
verbs:
verbs:
- patch
- patch
- update
- update
- apiGroups:
- policy
resourceNames:
- privileged
resources:
- podsecuritypolicies
verbs:
- use
- apiVersion: rbac.authorization.k8s.io/v1
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
kind: ClusterRoleBinding
metadata:
metadata:
...
@@ -67,16 +67,16 @@ items:
...
@@ -67,16 +67,16 @@ items:
kind: Role
kind: Role
metadata:
metadata:
name: weave-net
name: weave-net
namespace: kube-system
labels:
labels:
name: weave-net
name: weave-net
namespace: kube-system
rules:
rules:
- apiGroups:
- apiGroups:
- ''
- ''
resourceNames:
- weave-net
resources:
resources:
- configmaps
- configmaps
resourceNames:
- weave-net
verbs:
verbs:
- get
- get
- update
- update
...
@@ -90,9 +90,9 @@ items:
...
@@ -90,9 +90,9 @@ items:
kind: RoleBinding
kind: RoleBinding
metadata:
metadata:
name: weave-net
name: weave-net
namespace: kube-system
labels:
labels:
name: weave-net
name: weave-net
namespace: kube-system
roleRef:
roleRef:
kind: Role
kind: Role
name: weave-net
name: weave-net
...
@@ -109,16 +109,16 @@ items:
...
@@ -109,16 +109,16 @@ items:
name: weave-net
name: weave-net
namespace: kube-system
namespace: kube-system
spec:
spec:
minReadySeconds: 5
# Wait 5 seconds to let pod connect before rolling next pod
selector:
selector:
matchLabels:
matchLabels:
name: weave-net
name: weave-net
minReadySeconds: 5
template:
template:
metadata:
metadata:
labels:
labels:
name: weave-net
name: weave-net
spec:
spec:
priorityClassName: system-node-critical
initContainers:
initContainers:
- name: weave-init
- name: weave-init
image: {{ weave_kube_image_repo }}:{{ weave_kube_image_tag }}
image: {{ weave_kube_image_repo }}:{{ weave_kube_image_tag }}
...
@@ -217,6 +217,9 @@ items:
...
@@ -217,6 +217,9 @@ items:
- name: dbus
- name: dbus
mountPath: /host/var/lib/dbus
mountPath: /host/var/lib/dbus
readOnly: true
readOnly: true
- mountPath: /host/etc/machine-id
name: cni-machine-id
readOnly: true
- name: xtables-lock
- name: xtables-lock
mountPath: /run/xtables.lock
mountPath: /run/xtables.lock
readOnly: false
readOnly: false
...
@@ -246,7 +249,10 @@ items:
...
@@ -246,7 +249,10 @@ items:
seLinuxOptions: {}
seLinuxOptions: {}
serviceAccountName: weave-net
serviceAccountName: weave-net
tolerations:
tolerations:
- operator: Exists
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
volumes:
- name: weavedb
- name: weavedb
hostPath:
hostPath:
...
@@ -260,6 +266,9 @@ items:
...
@@ -260,6 +266,9 @@ items:
- name: cni-conf
- name: cni-conf
hostPath:
hostPath:
path: /etc
path: /etc
- name: cni-machine-id
hostPath:
path: /etc/machine-id
- name: dbus
- name: dbus
hostPath:
hostPath:
path: /var/lib/dbus
path: /var/lib/dbus
...
@@ -270,6 +279,7 @@ items:
...
@@ -270,6 +279,7 @@ items:
hostPath:
hostPath:
path: /run/xtables.lock
path: /run/xtables.lock
type: FileOrCreate
type: FileOrCreate
priorityClassName: system-node-critical
updateStrategy:
updateStrategy:
rollingUpdate:
rollingUpdate:
maxUnavailable: {{ serial | default('20%') }}
maxUnavailable: {{ serial | default('20%') }}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment