我要评分
获取效率
正确性
完整性
易理解

Binary Installation

Downloading the Binary Software Package

Version archive path: https://github.com/openvswitch/ovs/tags

Version download link: https://github.com/projectcalico/calicoctl/releases/download/v3.14.1/calicoctl-linux-arm64

Connecting the Configuration Tool to the Kubernetes API Datastore

Take the calicoctl get nodes command as an example. The binary calicoctl tool can be connected to the API datastore of the Kubernetes cluster in either of the following ways:

  • Method 1: Using the Kubernetes CLI
    1
    $ DATASTORE_TYPE=kubernetes KUBECONFIG=~/.kube/config calicoctl get nodes
    
  • Method 2: Using environment variables
    1
    2
    3
    $ export DATASTORE_TYPE=kubernetes
    $ export KUBECONFIG=~/.kube/config
    $ calicoctl get nodes
    

Precautions

  1. When the binary calicoctl tool uses the YAML file for addition, modification, or deletion operations that need to read the file, you do not need to enter the file content in stdin mode.
    1
    $ calicoctl apply -f bgp.yaml
    
  2. When using the binary calicoctl tool, ensure that the tool does not conflict with the container version command.