The imagePullSecrets field lists Secret names that Kubernetes uses to authenticate when pulling container images from private registries. Without suitable credentials, Kubernetes cannot start pods using those images. section 8.3.2
Attach a pull Secret to a pod
Create a registry Secret with kubectl, then reference it by name in the pod specification. The Secret named pull-secret enables this pod to pull docker.io/me/my-private-image. section 8.3.2
Listing 8.14 Adding a pull secret to a pod
apiVersion: v1
kind: Pod
metadata:
name: private-image
spec:
imagePullSecrets: #1
- name: pull-secret #1
containers: #2
- name: private #2
image: docker.io/me/my-private-image #2
Use the manifest example to see imagePullSecrets placed alongside containers in a pod specification. section 8.3.2
