I'm new to Kubernetes and I'm looking for suggestions on the best places to store images for creating containers in a production environment. Should I use Artifactory for storing images and then pull them for the container, or would it be better to keep them in GitHub?
6 Answers
Start simple! You can use Docker Hub, which allows one free private repo and lets you manage multiple images with tags. If you're using GitHub for CI/CD, their container registry could work, although note that private repos aren't free. Otherwise, go with whatever your provider offers or set up your own registry.
If you're running in the cloud, I recommend using the cloud provider's registry like Amazon ECR for AWS or Google Cloud's Artifact Registry. If you're self-hosting, consider using something like Nexus or Harbor.
If you already have Artifactory, definitely use that to store your images!
You can create your own registry, but if your images aren't super proprietary, just stick with GitHub or Docker Hub. They are usually the simplest solutions!
Not a tricky question at all! Remember, GitHub has its own Docker registry called GitHub Packages or GHCR. You typically don’t need to go for third-party services. If you deploy to AWS or GCP without giving Kubernetes access to GitHub, you can set up a proxy registry to pull images from GHCR.
You should really use a container registry. Quay is a good option, and all major cloud providers have their own offerings too. I've had success with Nexus as well. Harbor seems to be popular, although we haven't deployed it yet.

Related Questions
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux