ocne image upload
Uploads an Oracle Container Host for Kubernetes (OCK) image to OCI object storage for a specific architecture, or to Oracle Linux Virtualization Manager.
ocne image upload
{-a|--arch} arch
[{-b|--bucket} name]
[{-c|--compartment} name]
[--config path]
[{-d|--destination} path]
{-f|--file} path
{-i|--image-name} name
{-t|--type} provider
{-v|--version} version
Where:
-
{-a|--arch} arch
-
The architecture of the image to upload. Options are
amd64
orarm64
. -
{-b|--bucket} name
-
The name or OCID of the object storage bucket. The default is
ocne-images
. -
{-c|--compartment} name
-
The name or OCID of the compartment.
-
--config path
-
The path to a cluster configuration file.
-
{-d|--destination} path
-
The path to the destination. This can be any target available with the Open Container Initiative transports and formats. See
containers-transports(5)
for available options. For example, the URI to a container registry:--destination docker://myregistry.example.com/ock-ostree:latest
-
{-f|--file} path
-
The path to the image on the localhost.
-
{-i|--image-name} name
-
The name of the image to use when uploaded to the destination. The default is
ock
. -
{-t|--type} provider
-
The provider type. Options are:
-
oci
: A bootable Qcow2 image that can be used for libvirt and OCI deployments. -
olvm
: A bootable Qcow2 image that can be used for Oracle Linux Virtualization Manager deployments. -
ostree
: An OSTree archive image that can be used for the Bring Your Own provider deployments.
The default is
oci
. -
-
{-v|--version} version
-
The target Kubernetes version embedded in the image.
Example 4-79 Upload an OCK image to OCI using defaults
To upload an OCK image for the
oci
provider to OCI using
the default options:
ocne image upload --compartment ocid1.compartment.oc1..UniqueID --file $HOME/.ocne/images/boot.qcow2-1.32-amd64.oci --arch amd64
Example 4-80 Upload an OCK image to OCI
To upload an OCK image for the
oci
provider to OCI using
more specific requirements:
ocne image upload --compartment ocid1.compartment.oc1..UniqueID --bucket my-ocne-images --file $HOME/.ocne/images/boot.qcow2-1.32-arm64.oci --image-name ock-arm64 --version 1.32 --arch arm64
Example 4-81 Upload an OCK image to Oracle Linux Virtualization Manager
To upload an OCK image for the
olvm
provider to Oracle Linux Virtualization Manager using
the default options:
ocne image upload --type olvm --file $HOME/.ocne/images/boot.qcow2-1.32-amd64.olvm --arch amd64 --config myconfig.yaml
Example 4-82 Upload an OSTree image to a container registry
To upload an OSTree archive image for the byo
provider to a
container registry:
ocne image upload --type ostree --file $HOME/.ocne/images/ock-1.32-amd64-ostree.tar --destination docker://myregistry.example.com/ock-ostree:latest --arch amd64
Example 4-83 Upload an OSTree image to a container registry
To upload an OSTree archive image for the byo
provider to a local
directory path:
ocne image upload --type ostree --file $HOME/.ocne/images/ock-1.32-amd64-ostree.tar --destination dir:ock-ostree --arch amd64