Skip to content

Commit

Permalink
fix: improve cni-conf name priority
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Aug 2, 2019
1 parent 40c05db commit 8a57747
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion dist/images/Dockerfile.cni
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN rpm -ivh https://github.com/alauda/ovs/releases/download/v${OVS_VERSION}-${O

COPY start-cniserver.sh /kube-ovn/start-cniserver.sh
COPY install-cni.sh /kube-ovn/install-cni.sh
COPY kube-ovn.conflist /kube-ovn/kube-ovn.conflist
COPY 00-kube-ovn.conflist /kube-ovn/00-kube-ovn.conflist

WORKDIR /kube-ovn
CMD ["sh", "start-cniserver.sh"]
Expand Down
4 changes: 2 additions & 2 deletions dist/images/install-cni.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ exit_with_error(){
CNI_BIN_SRC=/kube-ovn/kube-ovn
CNI_BIN_DST=/opt/cni/bin/kube-ovn

CNI_CONF_SRC=/kube-ovn/kube-ovn.conflist
CNI_CONF_DST=/etc/cni/net.d/kube-ovn.conflist
CNI_CONF_SRC=/kube-ovn/00-kube-ovn.conflist
CNI_CONF_DST=/etc/cni/net.d/00-kube-ovn.conflist

LOOPBACK_BIN_SRC=/loopback
LOOPBACK_BIN_DST=/opt/cni/bin/loopback
Expand Down
1 change: 1 addition & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@ If you want to enable IPv6 on default subnet and node subnet, please apply https
rm -rf /var/run/openvswitch
rm -rf /etc/origin/openvswitch/
rm -rf /etc/openvswitch
rm -rf /etc/cni/net.d/00-kube-ovn.conflist
```
3. Reboot the Node to remove ipset/iptables rules and nics.

0 comments on commit 8a57747

Please sign in to comment.