Skip to content

sudharshanibm3/incluster-regsitry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

incluster-regsitry

Screenshot 2023-04-27 at 12.15.27 AM.png

Following are the steps to create In-cluster registry and to execute build, push and pull operations in registry-pod

1. Setup Registry Pod

  • Login to IBM Cloud and cluster via CLI
  • Clone this REPO in local machine
  • Run kubectl apply -f registry-pod.yaml to create registry pod and service
  • Run kubectl get ep | grep ^re and copy the ENDPOINTURL
  • Run following command to debug your node
kubectl debug node/<NODEIP> -it --image=ubuntu:latest
  • Export REGISTRYPATH by
export REGISTRYPATH="<ENDPOINTURL>"
  • Make directory with name of registry url
mkdir host/etc/containerd/certs.d/${REGISTRYPATH} && cd host/etc/containerd/certs.d/${REGISTRYPATH}
  • Create hosts.toml and add regsitry URL by executing the following command
cat >hosts.toml<<EOL
server = "http://${REGISTRYPATH}"
[host."http://${REGISTRYPATH}"]
  skip_verify = true
EOL
  • Exit from node debugger by cmd exit

2. Setup Builder Pod

  • In builder-pod.yaml file update your ENDPOINT URL in this line
  • Run kubectl apply -f builder-pod.yaml
  • This will build the dockerfile and push to the registry

3. Setup Pull pod/ peer pod

  • In peer-pod.yaml file update your ENDPOINT URL in this line
  • Run kubectl apply -f peer-pod.yaml
  • This will create a pod with image from in-cluster registry

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published