Using A Private Docker Repository
In some cases, you will want to use a private docker repository to store the Linkerd images. This scenario requires knowing the names and locations of the docker images used by the Linkerd control and data planes so that you can store them in your private repository.
The easiest way to get those images is to use the Linkerd CLI to pull the images to an internal host and push them to your private repository.
To get the names of the images used by the control plane, install the Linkerd CLI and run this command:
linkerd install --ignore-cluster | grep image: | sed -e 's/^ *//' | sort | uniq
For the current stable version, the output will be:
image: cr.l5d.io/linkerd/controller:stable-2.12.0
image: cr.l5d.io/linkerd/policy-controller:stable-2.12.0
image: cr.l5d.io/linkerd/proxy-init:v1.4.0
image: cr.l5d.io/linkerd/proxy:stable-2.12.0
All of the Linkerd images are publicly available in the Linkerd Google Container Repository
Stable images are named using the convention stable-<version>
and the edge
images use the convention edge-<year>.<month>.<release-number>
.
Examples of each are: stable-2.6.0
and edge-2019.11.1
.
Once you have identified which images you want to store in your private
repository, use the docker pull <image-name>
command to pull the images to
a machine on your network, then use the docker push
command to push the
images to your private repository.
Now that the images are hosted by your private repository, you can update your deployment configuration to pull from your private docker repository.
For a more advanced configuration, you can clone the linkerd2 repository to your CI/CD system and build specific tags to push to your private repository.