Below you will find pages that utilize the taxonomy term “Imagepullsecrets”
Posts
read more
Kubernetes patching
Chatting to a developer with a question on Stack Overflow, showed an interesting use of imagePullSecrets that I’d not seen before. The container registry secret can be added to the default service account. This then enables e.g. kubectl run ... (which runs as the default service account) to access the private registry. Previously, I’ve resorted to creating Deployments that include imagePullSecrets to circumvent this challenge.
So, I have a secret:
kubectl get secret/ghcr --output=yaml
Yields: