I am wonder, whether it could work..
We have services FOO and BAR, they are running it the same cluster with Docker Registry. Let's imagine this cluster is for production, not for development
We have CI/CD system which is responsible for building images and pushing them to docker registry.
Docker registry is used only in kubernetes private network, we wont push or pull images outside of cluster, because... Why should i do that?
+-----------------------------------------------+
| |
| KUBERNETES |
| +-------+ |
| | VCS | +----------+ |
| | <----------+ | |
| | | | CI/CD | |
| +-------+ +-------+ | |
| | +----------+ |
| | |
| | +-----+ |
| +--------v-----+ <-----+FOO | |
| | INSECURE | +-----+ |
| | DOCKER | +-------+ |
| | REGISTRY | <---------+BAR | |
| +--------------+ +-------+ |
+-----------------------------------------------+
^
|
|
+
USERS
Is it possible to create docker registry with self signed certificate, and setup kubernetes to trust this registry?
Or this is overhead and it's better just use good certificate and go over public network?
Where do you store production ready docker images and where for staging?