RANCHER – add a catalog repository with self-signed certificate

In my rancher cluster I deployed a Gogs instance to have a git repository, than try to create a catalog but I can’t add it to rancher because of its self signed certificate.

Here is a work-around

On the rancher server container

On the linux mache that host the rancher server container (host)

Copy the file created by dpkg-reconfigure

Copy the mysql data folder if rancher servers run without and external data directory for mysql or without an external mysql. This is only for backup, but please make sure you also have a valid backup before continue!!!

Again: be sure to have a valid backup, the copy of mysql dir is only a workaround and my not work!!!

Move on with the changes

Now you can add it

 

 

Posted in Docker, Rancher, Tutorial.