Skip to content
Browse files

[entrypoint] Adds --additional-bin-dir option to entrypoint to genera…

…te binDir configuration option
  • Loading branch information...
dougbtv authored and s1061123 committed Sep 18, 2019
1 parent 32afefb commit 31ae5a77c0c33c9b71d1e9324842e0ecb1657757
Showing with 16 additions and 1 deletion.
  1. +1 −1 doc/
  2. +4 −0 doc/
  3. +11 −0 images/
@@ -38,7 +38,7 @@ Following is the example of multus config file, in `/etc/cni/net.d/`.
* `type` (string, required): "multus"
* `confDir` (string, optional): directory for CNI config file that multus reads. default `/etc/cni/multus/net.d`
* `cniDir` (string, optional): Multus CNI data directory, default `/var/lib/cni/multus`
* `binDir` (string, optional): directory for CNI plugins which multus calls. default `/opt/cni/bin`
* `binDir` (string, optional): additional directory for CNI plugins which multus calls, in addition to the default (the default is typically set to `/opt/cni/bin`)
* `kubeconfig` (string, optional): kubeconfig file for the out of cluster communication with kube-apiserver. See the example [kubeconfig]( If you would like to use CRD (i.e. network attachment definition), this is required
* `logFile` (string, optional): file path for log file. multus puts log in given file
* `logLevel` (string, optional): logging level ("debug", "error", "verbose", or "panic")
@@ -545,3 +545,7 @@ When using CRIO, you may need to restart CRIO to get the Multus configuration fi
Additionally when using CRIO, you may wish to have the CNI config file that's used as the source for `--multus-conf-file=auto` renamed. This boolean option when set to true automatically renames the file with a `.old` suffix to the original filename.


When using `--multus-conf-file=auto` you may also care to specify a `binDir` in the configuration, this can be accomplished using the `--additional-bin-dir` option.

@@ -20,6 +20,7 @@ EOF
# Set our known directories.
@@ -58,6 +59,7 @@ function usage()
echo -e "\t--override-network-name=false (used only with --multus-conf-file=auto)"
echo -e "\t--cleanup-config-on-exit=false (used only with --multus-conf-file=auto)"
echo -e "\t--rename-conf-file=false (used only with --multus-conf-file=auto)"
echo -e "\t--additional-bin-dir=$ADDITIONAL_BIN_DIR (adds binDir option to configuration, used only with --multus-conf-file=auto)"
echo -e "\t--restart-crio=false (restarts CRIO after config file is generated)"

@@ -127,6 +129,9 @@ while [ "$1" != "" ]; do
warn "unknown parameter \"$PARAM\""
@@ -285,6 +290,11 @@ if [ "$MULTUS_CONF_FILE" == "auto" ]; then
CNI_VERSION_STRING="\"cniVersion\": \"$CNI_VERSION\","

if [ ! -z "${ADDITIONAL_BIN_DIR// }" ]; then

if [ "$OVERRIDE_NETWORK_NAME" == "true" ]; then
python -c 'import json,sys;print json.load(sys.stdin)["name"]')"
@@ -303,6 +313,7 @@ if [ "$MULTUS_CONF_FILE" == "auto" ]; then
"delegates": [

0 comments on commit 31ae5a7

Please sign in to comment.
You can’t perform that action at this time.