Error creating: Pod "xxxx" is invalid: [spec.containers[x].image: Invalid value: " " in RHOCP

Solution Verified - Updated -

Issue

  • Container within the pod fails from getting created due to the container image value being invalid.
Error creating: Pod "postgresql-example-d74f8b75d-gnjzk" is invalid: [spec.containers[0].image: Invalid value: " postgres:14 ": must not have leading or trailing whitespace, spec.initContainers[0].image: Invalid value: " ": must not have leading or trailing whitespace]

Environment

  • Red Hat OpenShift Container Platform (RHOCP) 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content