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

[feat] pull-through caching/proxying for images #369

Closed

Conversation

DerekTBrown
Copy link
Contributor

Background

  • Motivation: [feature request] Pulling images from remote registries #355

  • In my "real" Kubernetes clusters, I use ECR as an image registry. Nodes are automatically authorized/configured to pull from ECR through a combination of IAM and containerd settings.

  • I want my Tilt Kubernetes clusters to mirror "real" clusters as much as possible. I want to avoid making Tilt-specific modifications to Kubernetes manifests to make them work (see discussion in [feature request] Pulling images from remote registries #355).

  • There currently isn't a way to achieve both of these goals simulaneously:

    • I could use some combination of docker pull && docker push or kind load, though this makes the Tilt configuration clunky.
    • I could provide imagePullSecrets, but this causes the Tilt configuration to deviate from the "real" configuration (and would require modifying hundreds of helm charts).
  • Note: I think there are other, similar usecases for providing cluster authentication credentials. For example, a user might want to avoid Docker registry ratelimits by providing a user token.

What does this PR do?

  • This PR adds the ability for a user to configure pull-through proxy/cache registries, which are attached to the kind cluster (possible in other cluster provisioners, but I have chosen this as a starting point).
  • Authentication can be passed to the proxy via the username and password properties, or via a templated env var to password.

@DerekTBrown DerekTBrown force-pushed the derektbrown_feat_pull_through branch from fee6a1a to f0e6c9d Compare November 27, 2024 05:49
@DerekTBrown DerekTBrown force-pushed the derektbrown_feat_pull_through branch from f0e6c9d to 0580f4b Compare November 27, 2024 07:00
@DerekTBrown DerekTBrown marked this pull request as draft November 27, 2024 08:22
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

Successfully merging this pull request may close these issues.

1 participant