juju deploy --series jammy ch:docker-registry
- Upload images to the registry available in your network, if no registry is
passed in the command line the script looks for a juju application deployed
with the name 'docker-registry', if it's not available then
localhost
is used (starting a new registry if needed).
Usage:
cat images-magnum-ussuri.txt | ./mirror-images.sh <REGISTRY_IP>
- Create a cluster template indicating the container_infra_prefix label and
setting the insecure_registry property to the right value, for example
(replace
<REGISTRY_IP>
with the right value to your environment).
openstack coe cluster template create k8s-cluster-template --image fedora-coreos-32 \
--keypair testkey --external-network ext_net --dns-nameserver 10.245.160.2 \
--flavor m1.small --network-driver flannel --coe kubernetes \
--tls-disabled \
--labels container_infra_prefix=<REGISTRY_IP>:5000/
openstack coe cluster template update k8s-cluster-template replace insecure_registry=<REGISTRY_IP>:5000
- Upstream documentation: https://docs.openstack.org/magnum/latest/user/#container-infra-prefix