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.
- net.bridge.bridge-nf-call-iptables
- net.ipv4.ip_forward
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:
- inventory_hostname == 'controller-k8s'
- kuryr_k8s_api_url is defined
