apiVersion: v1
kind: Secret
type: kubernetes.io/dockerconfigjson
metadata:
  name: image-pull-secret
data:
  .dockerconfigjson: {{ "{\"auths\": {\"registry.example.com\": {\"username\": \"demo-user\", \"password\": \"my-password\"}}}" | b64enc }}
---
apiVersion: v1
kind: Pod
metadata:
  name: my-pod
spec:
  containers:
    - name: my-container
      image: registry.example.com/my-image:latest
  imagePullSecrets:
    - name: image-pull-secret

# Links:- https://www.cloudsavvyit.com/13880/how-to-debug-kubernetes-imagepullbackoff-errors/
