Domino on Linux/Unix, Troubleshooting, Best Practices, Tips and more ...

 
alt

Daniel Nashed

 

K3s, Podman and a registry

Daniel Nashed  4 September 2022 18:08:34


Rancher Desktop is a great all-in-one desktop environment.
When running it with the Docker back-end you have all in one environment for development and run-time.

For a server, K3s (https://k3s.io) is my platform of choice. It is production ready and easy to deploy.

For Kubernetes, you always need a registry to pull images.
As soon you need custom images, you will need a registry to upload and download your image.

K3s allows you to configure private registries.
You could use any registry. I am just running the registry Docker image on Podman in my environment.

What I am describing here is just for a simple server test environment.
In production I would usw a Harbor registry (https://goharbor.io).


1. Create a local registry


podman run -d -p 5000:5000 --restart=always --name registry registry:latest

---

2. Add the insecure registry to Podman


vi /etc/containers/registries.conf.d/localhost.conf

[[registry]]
location = "localhost:5000"
insecure = true

---

3. Tag image and push to registry


podman tag hclcom/domino:12.0.2EAP4 localhost:5000/hclcom/domino:latest
podman push localhost:5000/hclcom/domino:latest

---

4. K3s add custom registry


vi /etc/rancher/k3s/registries.yaml


mirrors:
  localhost:
    endpoint:
      - "http://localhost:5000"

systemctl restart k3s


You find details here:  https://rancher.com/docs/k3s/latest/en/installation/private-registry/


Comments
No Comments Found

Links

    Archives


    • [HCL Domino]
    • [Domino on Linux]
    • [Nash!Com]
    • [Daniel Nashed]