From 845b4a23f88203c2ba0b001081db612bcbc1b5aa Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 2 Nov 2024 04:21:39 +0100 Subject: [PATCH] Doc cosmetic --- README.md | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6f65fe8..be44966 100644 --- a/README.md +++ b/README.md @@ -2,28 +2,39 @@ Ref: -Just run: ansible-playbook container_registry.yaml +## Run the playbook -~~~ +```bash +ansible-playbook container_registry.yaml +``` + +## Setup Make sure the local CA (domain.crt) is accepted on all the machines that will commit the images AND on all the target systems (the machines where the images will be deployed). Manually, for Debian: + +```bash HOST=k3s REGISTRY=tiptop:5000 ssh root@$HOST mkdir -p /etc/containers/certs.d/$REGISTRY scp certs/domain.crt root@$HOST:/etc/containers/certs.d/$REGISTRY/ +``` -~~~ +### Kubernetes -Next, add the credential to the kubernetes cluster: +Add the credential to the kubernetes cluster: + +```bash kubectl create secret docker-registry regcred --docker-server=tiptop:5000 --docker-username=admin --docker-password=admin -n default +``` -~~~ +## Use To push to the registry: -podman push docker://:5000/ -~~~ +```bash +podman push docker://:5000/ +``` To use it in Kubernetes, see