Add unqualified search registries for k8s testing
For Jammy migration, podman that is used in cri-o instead of dockershim as container runtime need to configure unqualified search registries. This patch sets the registries of image used in kubernetes jobs to unqualified search registries. Change-Id: I41c5bba802a91a9b9059325d26b35430ac13817f
This commit is contained in:
parent
be6d22b409
commit
6ca63d6fbf
@ -19,6 +19,18 @@
|
|||||||
- net.bridge.bridge-nf-call-iptables
|
- net.bridge.bridge-nf-call-iptables
|
||||||
- net.ipv4.ip_forward
|
- net.ipv4.ip_forward
|
||||||
become: yes
|
become: yes
|
||||||
|
- name: configure containers unqualified-search-registries
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/containers/registries.conf
|
||||||
|
line: "unqualified-search-registries = {{ registries }}"
|
||||||
|
create: yes
|
||||||
|
vars:
|
||||||
|
registries:
|
||||||
|
- "docker.io"
|
||||||
|
- "k8s.gcr.io"
|
||||||
|
- "quay.io"
|
||||||
|
- "celebdor"
|
||||||
|
become: yes
|
||||||
when:
|
when:
|
||||||
- inventory_hostname == 'controller-k8s'
|
- inventory_hostname == 'controller-k8s'
|
||||||
- kuryr_k8s_api_url is defined
|
- kuryr_k8s_api_url is defined
|
||||||
|
Loading…
x
Reference in New Issue
Block a user