Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use latest distribution image as internal docker registry #18

Closed
3 tasks done
kwiatekus opened this issue Apr 8, 2024 · 2 comments
Closed
3 tasks done

Use latest distribution image as internal docker registry #18

kwiatekus opened this issue Apr 8, 2024 · 2 comments
Assignees

Comments

@kwiatekus
Copy link
Contributor

kwiatekus commented Apr 8, 2024

Description
Assess compatibility of the current configuration (chart) with the latest stable distribution version.
https://github.com/distribution/distribution/releases

  • sync the distribution image into kyma registry via image-syncer
  • Make necessary changes in the chart so that update of the Docker Registry container image to the latest version is possible.
  • Update security configuration (sec-scan-config file)

Reason
We need to upgrade our internal Docker Registry workload to the latest version of CNCF distribution to ensure compatibility with modern tools, security enhancements, and performance improvements.

Related issues
kyma-project/kyma#18555

@pPrecel pPrecel self-assigned this Apr 30, 2024
@pPrecel
Copy link
Contributor

pPrecel commented Apr 30, 2024

Compatibility check:

I've checked our docker-registry chart with the newer registry image (registry:3.0.0-alpha.1) and it's working really well.

  • The new registry is OK with old images in PVC (built by the old registry)
  • Functions are up and running (kaniko can push, k8s can pull images)
  • Security aspects are still on the please (still secret with username and password are needed to push/pull image)
  • The new cli (v3) can work with this registry (image-import)

The only doubt I see is that the registry 3.0.0 is still in alpha stage and we should not use it on production (or even for dev purposes) because API can be still changed and everything I describe above may not work.

@pPrecel
Copy link
Contributor

pPrecel commented Apr 30, 2024

Right now it's not possible to simply migrate to image-syncer because used by our image of docker-registry has an additional apache2-utils package installed we use to generate htpasswd file. I see a possibility to create a new image with apache2-utils installed on Alpine Linux and use it as an init container for the registry. But it needs more love and care than simply change the registry image name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants