[Starlingx-discuss] [docs]Changing Ansible docker_registries's "unified" key

Lin, Shuicheng shuicheng.lin at intel.com
Wed Oct 9 05:49:50 UTC 2019


Hi Angie,
This commit causes private registry with port cannot work.
It is due to ":" is not allowed in image name part.
Below cmd will fail due to the red colon ":" is invalid.
docker tag REGISTRY:PORT/kube-apiserver:v1.16.0 registry.local:9001/REGISTRY:PORT/kube-apiserver:v1.16.0

I just opened below LP for it. Please help have a look.
https://bugs.launchpad.net/starlingx/+bug/1847409


Best Regards
Shuicheng

From: Wang, Jing (Angie) <Angie.Wang at windriver.com>
Sent: Saturday, October 5, 2019 2:21 AM
To: Wang, Jing (Angie) <Angie.Wang at windriver.com>; starlingx-discuss at lists.starlingx.io
Subject: Re: [Starlingx-discuss] [docs]Changing Ansible docker_registries's "unified" key

Hi All,

The commit  https://review.opendev.org/#/c/686057/ has  been merged into master.

Thanks
-Angie

From: Wang, Jing (Angie) [mailto:Angie.Wang at windriver.com]
Sent: October-04-19 12:48 PM
To: starlingx-discuss at lists.starlingx.io<mailto:starlingx-discuss at lists.starlingx.io>
Subject: [Starlingx-discuss] [docs]Changing Ansible docker_registries's "unified" key

Hi All,

I am changing the Ansible docker_registries's "unified" key to "defaults".

From
docker_registries:
   unified:
      url:

to
docker_registries:
   defaults:
      url:


And the semantics for "defaults" is a bit different as before. The "defaults" now defines common values that to be applied to all override-able public registries but the values under the specific registries, if specified, will take precedence over the values under defaults registry.

If you only use defaults key, it will apply url, username and password for all registries (docker.io, quay.io, gcr.io, k8s.gcr.io, docker.elastic.co)
e.g.
  docker_registries:
     defaults:
        url: unified.io
       username: adminUser
       password: adminPass

If you have something special for some particular registry/registries, you can override the values by specifying them under its own entry.
e.g.
docker_registries:
docker.io:
      username: dockerUser
      password: dockerPass
  k8s.gcr.io:
      username: k8sUser
      password: k8sPass
   defaults:
      url: unified.io
      username: adminUser
      password: adminPass


This affects anyone with a setup that specifies alternate docker registries that using "unified" key as they will need to change their Ansible localhost.yml files to use "defaults" after this commit. The change is currently under review: https://review.opendev.org/#/c/686057/


Thanks,
-Angie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20191009/a8a37814/attachment.html>


More information about the Starlingx-discuss mailing list