Pull an Image from a Harbor Private Registry in Kubernetes

kubectl create secret docker-registry harbor-credentials \
  --docker-server=<harbor-host> \
  --docker-username=<harbor-username> \
  --docker-password=<harbor-password> \
  --namespace=<namespace>
[...]
spec:
  [...]
  imagePullSecrets:
  - name: harbor-credentials