Commit f69ae44b authored by Yan Zhu's avatar Yan Zhu
Browse files

cni-bin-dir,cni-conf-dir configurable

Fix https://github.com/alauda/kube-ovn/issues/655
parent 61516818
master acl acl-doc add_unknown_to_lsp allow-subnet bandwidth base/enable-dbg centralized-policy-route centralized_nat chore/show-gw-error chore/size ci/base ci/base-update ci/retry ci/trivy ci/update-kind cni crd-print db-monitor debug delete-qos delete-qos-queue delete_ip doc/custom-kubeconfig doc/optimization doc/vip docs/corigine docs/dpdk-pod-name docs/internal-port-vlan docs/optimize docs/optimize-cilium dualstack ecmp ecmp_static_route encap-ip env-check fdb feat/disable-ping-check feat/keep-chassis-name feat/ko feat/log feat/mcast feat/multicast feat/update-ovn feat/vlan-geneve feat/vpc-lb fix-base fix-dnat fix-resubmit-limit fix/acl fix/avx512 fix/check-crd fix/ecmp-hash fix/gw-del fix/ic-restart fix/iptables fix/ipv6-svc fix/metrics-name fix/node-acl fix/np-log fix/ovn-healthcheck fix/ovn-northd-flipflop fix/pod-del fix/provider-check fix/reset-ovn0 fix/src-priority fix/subnet-without-protocol fix/udp-checksum fix/uninstall fix_make_kind_reload gc-vm-lsp internal-port internal_port internal_tcpdump ip join klog/v2 log/rotate ls-dnat-mod-dl-dst lsp-address lsp-ipam mahz-master monitor/metrics monitor_db_con multus multus-cni-update namespace nat-gw nbctl networkpolicy nodeport np_master ns-subnet ovn-controller ovn-db-recover ovs-nonstop ovs-win64-ci perf/4.18 perf/alias perf/libovsdb perf/optimization perf/route-port-address perf/stt perf/tuning-guide poc policy-route policy-route-1.8 port-group push-img qos qos-e2e qos-query refactor/other_config reflactor_note release-1.10 release-1.7 release-1.8 release-1.8-kubevirt release-1.8-lint release-1.8-monitor release-1.9 release-1.9-monitor release/prepare-1.9 remove_no_need_parms_svcAsName restore revert-1094-vpc-lb revert-1264-yd-master revert-1309-fixcni security/ubuntu-update security/update-ubuntu sg-acl stspod subnet subnet_ips svc sync-ovn-db test/fix-flaky testing update-ovs update/1.7-1.8 update/1.8.2 update_version upgrade-ovs vm-migrate vm-static-ip vpc-nat-gw webhook v1.10.7 v1.10.6 v1.10.5 v1.10.4 v1.10.3 v1.10.2 v1.10.1 v1.10.0 v1.9.14 v1.9.13 v1.9.12 v1.9.10 v1.9.9 v1.9.8 v1.9.7 v1.9.6 v1.9.5 v1.9.4 v1.9.3 v1.9.2 v1.9.1 v1.9.0 v1.8.14 v1.8.12 v1.8.11 v1.8.9 v1.8.8 v1.8.7 v1.8.6 v1.8.5 v1.8.4 v1.8.3 v1.8.2 v1.8.1 v1.8.0 v1.7.3 v1.7.2 v1.7.1 v1.7.0
No related merge requests found
Showing with 16 additions and 6 deletions
+16 -6
......@@ -7,6 +7,9 @@ ENABLE_MIRROR=${ENABLE_MIRROR:-false}
HW_OFFLOAD=${HW_OFFLOAD:-false}
IFACE="" # The nic to support container network can be a nic name or a group of regex separated by comma, if empty will use the nic that the default route use
CNI_CONF_DIR="/etc/cni/net.d"
CNI_BIN_DIR="/opt/cni/bin"
REGISTRY="kubeovn"
VERSION="v1.7.0"
IMAGE_PULL_POLICY="IfNotPresent"
......@@ -1662,10 +1665,10 @@ spec:
path: /run/ovn
- name: cni-conf
hostPath:
path: /etc/cni/net.d
path: $CNI_CONF_DIR
- name: cni-bin
hostPath:
path: /opt/cni/bin
path: $CNI_BIN_DIR
- name: host-ns
hostPath:
path: /var/run/netns
......
......@@ -8,6 +8,9 @@ ENABLE_MIRROR=${ENABLE_MIRROR:-false}
HW_OFFLOAD=${HW_OFFLOAD:-false}
IFACE="" # The nic to support container network can be a nic name or a group of regex separated by comma, if empty will use the nic that the default route use
CNI_CONF_DIR="/etc/cni/net.d"
CNI_BIN_DIR="/opt/cni/bin"
REGISTRY="kubeovn"
VERSION="v1.7.0"
IMAGE_PULL_POLICY="IfNotPresent"
......@@ -1700,10 +1703,10 @@ spec:
path: /run/ovn
- name: cni-conf
hostPath:
path: /etc/cni/net.d
path: $CNI_CONF_DIR
- name: cni-bin
hostPath:
path: /opt/cni/bin
path: $CNI_BIN_DIR
- name: host-ns
hostPath:
path: /var/run/netns
......
......@@ -44,5 +44,7 @@ rm -rf /etc/openvswitch/*
rm -rf /etc/ovn/*
rm -rf /var/log/openvswitch/*
rm -rf /var/log/ovn/*
# default
rm -rf /etc/cni/net.d/00-kube-ovn.conflist
# default
rm -rf /etc/cni/net.d/01-kube-ovn.conflist
......@@ -169,7 +169,9 @@ You can use `--default-cidr` flags below to config default Pod CIDR or create a
rm -rf /var/run/ovn
rm -rf /etc/origin/openvswitch/
rm -rf /etc/origin/ovn/
# default value
rm -rf /etc/cni/net.d/00-kube-ovn.conflist
# default value
rm -rf /etc/cni/net.d/01-kube-ovn.conflist
rm -rf /var/log/openvswitch
rm -rf /var/log/ovn
......
......@@ -5,5 +5,5 @@ Kube-OVN will store files to the host filesystem. Administrators should take car
* `/etc/origin/ovn` and `/etc/origin/openvswitch` store the OVN and OVS db files. These files store the logical network topology.
* `/var/run/ovn` and `/var/run/openvswitch` store the OVN and OVS socket files. These files provide endpoints to OVN/OVS control plane.
* `/var/log/ovn` and `/var/log/openvswitch` store the log files of OVN and OVS.
* `/etc/cni/net.d` stores the Kube-OVN CNI conf.
* `/etc/cni/bin` stores the Kube-OVN CNI binary.
* `/etc/cni/net.d` stores the Kube-OVN CNI conf, you can config this path when install.
* `/etc/cni/bin` stores the Kube-OVN CNI binary, you can config this path when install.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment