Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Deploy Prepackaged Images

Use this procedure to import JCNR images to the container runtime from the downloaded JCNR software package .

Your cluster can pull JCNR images from the enterprise-hub.juniper.net repository or your cluster can use the JCNR images that are included in the downloaded JCNR software package.

This latter option is useful if your cluster doesn't have access to the Internet or if you want to set up your own repository.

Setting up your own repository is beyond the scope of this document, but your cluster can still use the included images if you manually import them to the container runtime on each cluster node running JCNR. Simply use the respective container runtime commands. We show you how to do this in the procedure below.

  1. Locate the images tarball in the Juniper_Cloud_Native_Router_<release>/images directory.
    The images tarball is in a gzipped file (jcnr-images.tar.gz).
  2. Copy the gzipped images tarball to every node where you're installing JCNR.
  3. SSH to one of the nodes and go to the directory where you copied the gzipped images tarball.
  4. Gunzip the gzipped images tarball that you just copied over.
  5. Import the images to the container runtime.
    • containerd: ctr -n k8s.io images import jcnr-images.tar

    • docker: docker load -i jcnr-images.tar

  6. Check that the images have been imported.
    • containerd: ctr -n k8s.io images ls

    • docker: docker images

  7. Repeat steps 3 to 6 on each node where you're installing JCNR.
When you install JCNR later on, the cluster first searches locally for the required images before reaching out to enterprise-hub.juniper.net. Since you manually imported the images locally on each node, the cluster finds the images locally and does not need to download them from an external source.