kubernetes deployment- container not starting- error- InvalidImageName

3/22/2019

Below is the Kubernetes deployment yaml file -container image section:

image: https://registry.ng.bluemix.net/****/test-service:test-branch-67

imagePullPolicy: Always

Below is the error message after deploying:

ubuntu@ip-xxxx:~$ kubectl logs test-deployment-69c6d8xxx -n test

Error from server (BadRequest): container "test-deployment" in pod "test-deployment-ccccxxx" is waiting to start: InvalidImageName

Another error log:

Failed to apply default image tag "https://registry.ng.bluemix.net/test/test-service:test-branch-66": couldn't parse image reference "https://registry.ng.bluemix.net/test/test-service:test-branch-66": invalid reference format

Any idea why the pod is not coming up?

-- Raj kumar
bluemix-app-scan
containers
deployment
ibm-cloud
kubernetes

2 Answers

10/9/2019

Please add your complete deployment file to know the problem in detail. But looking at the file make sure you are not missing

imagePullSecrets (Add valid credentials with access to pull the image from repository)

Also you need not provide the protocol like you added

https

Your image field in yml should look like below example:

image: repository:organization_name/image_name:image_version

-- Afsar
Source: StackOverflow

3/22/2019

Remove the https:// from the image name, and if you are using a private registry, make sure to use imagePullSecrets.

-- cookiedough
Source: StackOverflow