Container-based Installation
Downloading the YAML Configuration File
Save the content as the calicoctl.yaml file. For details, see Calicoctl Deployment YAML File.
Installation
Use kubectl to deploy the calicoctl component and set shortcut operation commands.
1 2 | $ kubectl apply -f calicoctl.yaml $ alias calicoctl="kubectl exec -i -n kube-system calicoctl -- /calicoctl" |
Precautions
- The calicoctl tool of the container cannot use the calicoctl node commands to perform operations on nodes. You need to use the binary calicoctl tool deployed on the target node to perform operations on nodes.
- When the container calicoctl tool uses the YAML file for addition, modification, or deletion operations that need to read the file, you need to modify the command in the following example and enter the file content in stdin mode.
1$ calicoctl apply -f - < bgp.yaml
- When using the container calicoctl tool, ensure that the tool does not conflict with the binary version command.
Parent topic: Installing the Calicoctl Tool