Install calicoq
About installing calicoq​
You can run calicoq on any host with network access to the
Calico Enterprise datastore as either a binary or a container.
Ensure that you install the binary on a Linux machine. The binary does not work on other machines.
For step-by-step instructions, refer to the section that corresponds to your desired deployment.
Install calicoq as a binary on a single host​
-
Log into the host, open a terminal prompt, and navigate to the location where you want to install the binary.
tipConsider navigating to a location that's in your
PATH. For example,/usr/local/bin/. -
Use the following command to download the
calicoqbinary.curl -o calicoq -O -L https://downloads.tigera.io/ee/binaries/v3.21.2/calicoq -
Set the file to be executable.
chmod +x calicoqnoteIf the location of
calicoqis not already in yourPATH, move the file to one that is or add its location to yourPATH. This will allow you to invoke it without having to prepend its location.
Next step:
Configure calicoq to connect to your datastore.
Install calicoq as a container on a single host​
-
Ensure that you have the
config.jsonfile with the private Tigera registry credentials. -
From a terminal prompt, use the following command to either create or open the
~/.docker/config.jsonfile.vi ~/.docker/config.json -
Depending on the existing contents of the file, edit it in one of the following ways.
-
New file: Paste in the entire contents of the
config.jsonfile from Tigera. -
Existing file without quay.io object: Add the following lines from the
config.jsoninside the"auth"object."quay.io": {
"auth": "<ROBOT-TOKEN-VALUE>",
"email": ""
} -
Existing file with quay.io object: Add the following lines from the
config.jsoninside the"quay.io"object."auth": "<ROBOT-TOKEN-VALUE>",
"email": ""
-
-
Save and close the file.
-
Use the following commands to pull the
calicoqimage from the Tigera registry.docker pull quay.io/tigera/calicoq:v3.21.2 -
Confirm that the image has loaded by typing
docker images.REPOSITORY TAG IMAGE ID CREATED SIZE
tigera/calicoq v3.21.2 e07d59b0eb8a 2 minutes ago 42MB
Next step: