Skip to Content
Last repository update 9/10/2025 🎉
DocsKubernetesPull Image with Secret

Pull image with secret

Usage and Concept of pulling image with secret

When you want to pull an image from a private registry, you need to provide the credentials to authenticate with the registry. Therefore, you need to create a secret that contains the credentials and then use that secret to pull the image.

Create registry secret

You can use either one to create registry secret:

Apply secret to pod

pod.yaml
apiVersion: v1 kind: Pod metadata: name: my-pod spec: imagePullSecrets: - name: my-secret # secret name containers: - name: my-container image: my-image
Last updated on