In OpenShift, with this recently introduced patch, it is now mandatory to include the full url of the image inside the workloads.
This means that if you launch this:
$ oc new-app --name=nginx --image=nginxinc/nginx-unprivileged:1.19-perl
You will get:
$ oc describe pod nginx
...
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 37s default-scheduler Successfully assigned scc-test/nginx1-bc9b65c96-5nvl7 to crc
Normal AddedInterface 37s multus Add eth0 [10.217.1.112/23] from ovn-kubernetes
Warning InspectFailed 7s (x5 over 37s) kubelet Failed to inspect image "": rpc error: code = Unknown desc = short name mode is enforcing, but image name nginxinc/nginx-unprivileged@sha256:8974116f08df4cbeb69bee35437675b225e745e67e6075f43523d9f8230a1191 returns ambiguous list
Warning Failed 7s (x5 over 37s) kubelet Error: ImageInspectError
To solve this full url of the image needs to be passed, in this case: --image=docker.io/nginxinc/nginx-unprivileged:1.19-perl
In OpenShift, with this recently introduced patch, it is now mandatory to include the full url of the image inside the workloads.
This means that if you launch this:
$ oc new-app --name=nginx --image=nginxinc/nginx-unprivileged:1.19-perlYou will get:
To solve this full url of the image needs to be passed, in this case:
--image=docker.io/nginxinc/nginx-unprivileged:1.19-perl