I'm working on building some Docker images using GitHub Actions and I need to figure out the best way to get these images into a k3s cluster without spending any money. I'm particularly interested in how I can handle image retrieval or use a registry for this purpose without incurring costs. Any suggestions?
2 Answers
To deploy your images into the k3s cluster, you could set up a pod or deployment that pulls the image you need. Just make sure you have the correct permissions configured.
If your images are open source, you can simply push them to GitHub directly using an action. You actually don’t need a cluster to manage that. For private images, you can still use GitHub from a private repo, but keep in mind that there may be some costs involved. Regardless, pulling and storage in GitHub is free, so that’s a good option!
Exactly! If you're using GitHub Actions, definitely leverage the GitHub Container Registry; it keeps things straightforward.
Thanks for the tip! Just to clarify, I'm building the image with GitHub actions, but I need to store it somehow without paying for a service. Any thoughts on an internal registry?