use private container repository in kubernetes code example
Example: how to pass docker hub credentials for k8s pods
ambarishs-MacBook-Pro:gke ambarish$ kubectl create secret docker-registry private-registry-key --docker-username="devopsrecipes" --docker-password="xxxxxx" --docker-email="[email protected]" --docker-server="https://index.docker.io/v1/"secret "private-registry-key" created