Skip to main content

Posts

Showing posts from October 16, 2019

Setup Private Registry for K8s Cluster using Trow Script

Pre-requisites: K8S cluster setup and running. If you have not done this before, first check my post for setting the K8s cluster https://jinojoseph.blogspot.com/2019/10/installing-k8s-as-cluster-using-kubeadm.html Once you have done that what if you need to build and run your own image? You're going to need to push your image to a registry that is accessible to Kubernetes. The obvious option is to use the Docker Hub, but what if you want to keep your image private? The answer: run a registry inside the Kubernetes cluster itself. This way there's no need to worry about hidden costs or pushing to external resources. You can use the default Docker registry for this purpose, but to do this securely requires setting up TLS certificates and manual twiddling. A simpler option is to install the Trow registry via its install script, which will also take care of configuring TLS correctly. # git clone https://github.com/ContainerSolutions/trow.git # cd trow # ./insta