KarChunTKarChunT
Security

Pull image with secret

Usage and Concept of pulling image with secret

ImagePullSecrets in Service Account

Refer this Link for more details.

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.

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