You are viewing docs for an older version of Linkerd. View the latest docs.
  • GitHub
  • Slack
  • Linkerd Forum

install-cni

Output Kubernetes configs to install Linkerd CNI.

This command installs a DaemonSet into the Linkerd control plane. The DaemonSet copies the necessary linkerd-cni plugin binaries and configs onto the host. It assumes that the ’linkerd install’ command will be executed with the ‘–linkerd-cni-enabled’ flag. This command needs to be executed before the ’linkerd install –linkerd-cni-enabled’ command.

Flags

FlagUsage
--admin-portProxy port to serve metrics on
--cni-imageImage for the cni-plugin
--cni-log-levelLog level for the cni-plugin
--control-portProxy port to use for control
--dest-cni-bin-dirDirectory on the host where the CNI binary will be placed
--dest-cni-net-dirDirectory on the host where the CNI configuration will be placed
--inbound-portProxy port to use for inbound traffic
--linkerd-version
-v
Tag to be used for Linkerd images
--outbound-portProxy port to use for outbound traffic
--priority-class-namePod priorityClassName for CNI daemonset’s pods
--proxy-uidRun the proxy under this user ID
--redirect-portsPorts to redirect to proxy, if no port is specified then ALL ports are redirected
--registryDocker registry to pull images from ($LINKERD_DOCKER_REGISTRY)
--skip-inbound-portsPorts and/or port ranges (inclusive) that should skip the proxy and send directly to the application
--skip-outbound-portsOutbound ports and/or port ranges (inclusive) that should skip the proxy
--use-wait-flagConfigures the CNI plugin to use the “-w” flag for the iptables command. (default false)