Skip to content

Run packages with Kubernetes

Chathuri Peli Kankanamalage edited this page May 20, 2020 · 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 an unlimited number of tags. So we use tool_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
  • https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/