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

[FEATURE] Enable option to keep pull-through registry when deleting a cluster #1368

Closed
devantler opened this issue Oct 30, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@devantler
Copy link

Scope of your request

When I run k3d cluster delete cluster-name to remove a cluster it deletes all resources created for that cluster. It would be nice if there was a CLI option to make sure any pull-through registry is kept, as these have a lot of value to avoid rate limitswhen creating new clusters that pull the same images from Docker.

Describe the solution you'd like

Maybe something like this:

k3d cluster delete cluster-name --keep-registry docker-io

@devantler devantler added the enhancement New feature or request label Oct 30, 2023
@devantler
Copy link
Author

Nevermind, I was able to persist the volume by making it a named docker volume:

registries:
  create:
    name: docker-io
    proxy:
      remoteURL: https://registry-1.docker.io
    volumes:
      - local-docker-registry:/var/lib/registry
  config: |
    mirrors:
      "docker.io":
        endpoint:
          - http://docker-io:5000

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

No branches or pull requests

1 participant