imagePullSecret becomes the image
See original GitHub issueHi,
I’m not sure, but I think commit 1cae8dfe8b6485cf29c5699565ba557165b600b0 broke some things on Azure/k8s-deploy@v1
. Basically the generated Kubernetes manifest seem to have wrong imagePullSecret
value. Instead of the image pull secret, it’s the image
value.
This is what I see in the deployed manifest in Kubernetes (the actual deployed).
image: cr.example.com/sydnod-ci
imagePullSecrets:
- name: 'cr.example.com/sydnod-ci:web-dev-20200305-<retracted>'
This is where I expect imagePullSecret
to contain sydnod-ci-container-registry
and not cr.example.com/sydnod-ci:web-dev-20200305-<retracted>
.
Creation of registery secret
Run Azure/k8s-create-secret@v1
/usr/bin/kubectl create secret docker-registry sydnod-ci-container-registry --docker-username *** --docker-password *** --docker-server *** --docker-email -n sydnod-ci
secret/sydnod-ci-container-registry created
Deployment to Kubernetes
Run Azure/k8s-deploy@v1
with:
namespace: sydnod-ci
manifests: ./manifests.yaml
images: ***/sydnod-ci:web-dev-20200305-<retracted>
imagepullsecrets: sydnod-ci-container-registry
strategy: none
traffic-split-method: pod
baseline-and-canary-replicas: 0
percentage: 0
action: deploy
Hope anyone can shred some light on this issue.
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Kubernetes imagePullSecrets not working; getting "image not ...
Another possible reason why you might see "image not found" is if the namespace of your secret doesn't match the namespace of the...
Read more >Images - Kubernetes
Kubernetes supports specifying container image registry keys on a Pod. imagePullSecrets must all be in the same namespace as the Pod. The referenced...
Read more >ImagePullSecrets | Running container image from Private ...
In this chapter, we look into how we can run an application where the application's container image is pushed into a private repository/registry....
Read more >Kubernetes cluster-wide access to private container registry ...
Kubernetes allows us to configure private container registry credentials with imagePullSecrets on a per Pod or per Namespace basis.
Read more >Cluster-wide registry authentication - Kubes&Clouds
Using private container image registries is a common practice in the ... own container runtime, this process can become way more complex.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems to be working again. My latest build went thru. If it’s not too much trouble, please have a staging branch or similar for
v1
.Closing this issue. I’ll take up the reverted fix separately.