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.
Create registry secret
You can use either one to create registry secret:
Apply secret to pod
apiVersion: v1
kind: Pod
metadata:
name: my-pod
spec:
imagePullSecrets:
- name: my-secret # secret name
containers:
- name: my-container
image: my-imageLast updated on