-
Notifications
You must be signed in to change notification settings - Fork 0
Run packages with Kubernetes
Chathuri Peli Kankanamalage edited this page Dec 11, 2019
·
4 revisions
Docker hub
-
username : cadreit
-
password : LIBRARYS3cr3t
-
private repo : cadreit/packages
-
Docker allows one private repository with the free version. One repo can have unlimited number of tags. So we use package_id as the tag, when we push images to dockerhub.
Docker private repositories with Kubernetes
- In order to image to be pulled from a private repository, you need to create docker-registry secret in kubernetes.
- This secret needs to be created on the same namespace as you intend to deploy the pods (our namespace name is jhub)
kubectl create -n jhub secret docker-registry cadrecred --docker-server=https://index.docker.io/v1/ --docker-username=cadreit --docker-password=LIBRARYS3cr3t --docker-email=cadreit@iu.edu
- Use created secret in pod spec