I have an instance of OpenShift Container Platform 3.9 running.
default
service account for pull access.ImageStream
, to access the private image, which seems to have access as it is correctly accessing the image sha.DeploymentConfig
to deploy the image. When deploying, I get the following error message when attempting to pull the image Failed to pull image "myorg/myimage": rpc error: code = Unknown desc = repository docker.io/myorg/myimage not found: does not exist or no pull access
The image stream looks as follows:
apiVersion: v1
kind: ImageStream
metadata:
name: myimage
spec:
dockerImageRepository: docker.io/myorg/myimage
tags:
- name: mytag
generation: 2
from:
kind: DockerImage
name: 'docker.io/myorg/myimage:mytag'
importPolicy:
scheduled: true
The deployment config looks as follows:
apiVersion: v1
kind: DeploymentConfig
metadata:
name: myservice
generation: 1
spec:
replicas: 1
template:
metadata:
labels:
app: example
spec:
containers:
- name: myservice
image: myorg/myimage:mytag
imagePullPolicy: Always
ports:
- containerPort: 8888
What could I be doing wrong?