Skip to content

Commit

Permalink
fix: add back privilege for ipv6
Browse files Browse the repository at this point in the history
(cherry picked from commit 4917afe)
  • Loading branch information
oilbeater committed Jun 19, 2020
1 parent 2a87753 commit b1ea8a3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ COPY 01-kube-ovn.conflist /kube-ovn/01-kube-ovn.conflist

WORKDIR /kube-ovn

COPY kube-ovn-speaker /kube-ovn/kube-ovn-speaker
COPY kube-ovn-pinger /kube-ovn/kube-ovn-pinger
COPY kube-ovn /kube-ovn/kube-ovn
COPY kube-ovn-daemon /kube-ovn/kube-ovn-daemon
COPY kube-ovn-pinger /kube-ovn/kube-ovn-pinger
COPY kube-ovn-controller /kube-ovn/kube-ovn-controller
COPY kube-ovn-speaker /kube-ovn/kube-ovn-speaker
4 changes: 2 additions & 2 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1044,8 +1044,8 @@ spec:
- --network-type=$NETWORK_TYPE
- --default-interface-name=$VLAN_INTERFACE_NAME
securityContext:
capabilities:
add: ["NET_ADMIN", "SYS_ADMIN", "SYS_PTRACE"]
runAsUser: 0
privileged: true
env:
- name: POD_IP
valueFrom:
Expand Down
4 changes: 2 additions & 2 deletions yamls/kube-ovn-ipv6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ spec:
- --mtu=1420
imagePullPolicy: IfNotPresent
securityContext:
capabilities:
add: ["NET_ADMIN", "SYS_ADMIN"]
runAsUser: 0
privileged: true
env:
- name: POD_IP
valueFrom:
Expand Down
4 changes: 2 additions & 2 deletions yamls/kube-ovn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ spec:
args:
- --enable-mirror=true
securityContext:
capabilities:
add: ["NET_ADMIN", "SYS_ADMIN", "SYS_PTRACE"]
runAsUser: 0
privileged: true
env:
- name: POD_IP
valueFrom:
Expand Down

0 comments on commit b1ea8a3

Please sign in to comment.