|
| 1 | +# Importing images from OCI File Storage Service (FSS) to OKE nodes instead of downloading them from a registry |
| 2 | + |
| 3 | +### 1. Create an FSS File System |
| 4 | +https://docs.oracle.com/en-us/iaas/Content/File/Tasks/create-file-system.htm#top |
| 5 | + |
| 6 | +### 2. Mount the FSS File System to your worker nodes |
| 7 | +https://docs.oracle.com/en-us/iaas/Content/File/Tasks/mountingunixstyleos.htm#mountingFS |
| 8 | + |
| 9 | +> [!NOTE] |
| 10 | +> This guide assumes you mounted FSS to `/mnt/share`. You can select different throughput levels for your mount target. Select the one that would give you enough performance: 1 Gbps, 20 Gbps, 40 Gbps, 80 Gbps. |
| 11 | +
|
| 12 | + |
| 13 | +### 3. Install `skopeo` in your worker nodes and create a dir under /mnt/share (we'll use /mnt/share/images as the example) |
| 14 | +``` |
| 15 | +apt update |
| 16 | +apt install -y skopeo |
| 17 | +mkdir -p /mnt/share/images |
| 18 | +``` |
| 19 | +### 4. Using `skopeo`, copy the image from a registry to the FSS shared folder |
| 20 | +We'll use the Docker registry, but any registry including private ones can be used. |
| 21 | + |
| 22 | +``` |
| 23 | +skopeo copy docker://busybox:latest dir:/mnt/share/images/busybox |
| 24 | +
|
| 25 | +Getting image source signatures |
| 26 | +Copying blob 2fce1e0cdfc5 done |
| 27 | +Copying config 6fd955f66c done |
| 28 | +Writing manifest to image destination |
| 29 | +Storing signatures |
| 30 | +``` |
| 31 | + |
| 32 | +### Now the image is pulled to the FSS shared folder. You can import/copy it to any other worker node. |
| 33 | + |
| 34 | +``` |
| 35 | +skopeo copy dir:/mnt/share/images/busybox containers-storage:busybox:latest |
| 36 | +``` |
| 37 | + |
| 38 | +Check that the image is imported. On your worker node: |
| 39 | +``` |
| 40 | +crictl images |
| 41 | +
|
| 42 | +IMAGE TAG IMAGE ID SIZE |
| 43 | +ap-melbourne-1.ocir.io/axoxdievda5j/oke-public-cloud-provider-oci <none> 8310661879155 582MB |
| 44 | +ap-melbourne-1.ocir.io/axoxdievda5j/oke-public-flannel <none> 8bbca5abb5f3e 308MB |
| 45 | +ap-melbourne-1.ocir.io/axoxdievda5j/oke-public-kube-proxy <none> c4f3122c5b070 1.28GB |
| 46 | +ap-melbourne-1.ocir.io/axoxdievda5j/oke-public-pause <none> e105b7466686e 146MB |
| 47 | +ap-melbourne-1.ocir.io/axoxdievda5j/oke-public-proxymux-cli <none> 14330458a37d2 197MB |
| 48 | +docker.io/library/busybox latest 6fd955f66c231 4.5MB |
| 49 | +``` |
0 commit comments