Hello Techie's,
If your services are running in ECS - Openshift container platform and you need to edit the credentials of the Image pull secret, please follow the below steps.
What is Image Pull Secret ?
It is used to pull an image from a private container image registry or repository to the deployment.
How does the yaml file of Image Pull secret looks ?
apiVersion: v1
kind: Secret
metadata:
...
name: secret_name
...
data:
.dockerconfigjson: eyJodHRwczovL2luZGV4L ... J0QUl6RTIifX0=
type: kubernetes.io/dockerconfigjson
Problem Statement:
Let's say, you are updating the existing Image Pull Secret values - for example, changing docker credentials of your repository or updating the uid password from 8 character password to 15 character.
As you make changes in exising secret, Deployments or build which you trigger will obviously fail.
To overcome that you need to link the updated Image Pull secret to the service account which are using that secret.
How to edit the values of the secret in openshift ?
Adding Artifactory pull credentials to Openshift clusters
- Login Openshift console
- click workloads
- click the name of the image pull secret
- select edit secret
- edit the values
- save it
Comments
Post a Comment