-
Notifications
You must be signed in to change notification settings - Fork 273
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
deploymentRegistry isn't used with buildMode of cluster-docker or kaniko #1034
Comments
(Sorry for the quantity of tickets - we're evaluating Garden on some internal projects so I'm going on a deep dive these past few days.) |
Hi @Eronarn. Not at all, they are most welcome! This one suggests that we need to improve our docs on the remote building functionality :) When you use As a workaround, you can use the So the steps would be:
Would that be sufficient in your case? Since we already have the mechanism for pulling the image from the in-cluster registry, we could also expose this as a specific command on the Kubernetes provider, if it's a common enough use-case. |
In our case, we're sending all traffic through a VPN. If we Also, this approach doesn't work well with the So we can use that workaround for now, but I think the ideal mode would involve one of:
That being said, I saw you also have an issue open to investigate Squash. Having better debugging options in k8s reduces the need to run containers locally (though I think that'll always be an occasional need). |
I think the option we'll likely use is to allow overriding As for your particular use-case, we're definitely looking towards ways to more easily debug stuff inside the cluster. That may include integrating Squash, and also #967. |
I also expected it to use a defined deploymentRegistry. My |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Previously we would always deploy and use the in-cluster registry when building in-cluster. Now we allow using the configured `deploymentRegistry`, which is often preferable (and more scalable) than using the simpler in-cluster registry. Closes #1034
Previously we would always deploy and use the in-cluster registry when building in-cluster. Now we allow using the configured `deploymentRegistry`, which is often preferable (and more scalable) than using the simpler in-cluster registry. Closes #1034
Previously we would always deploy and use the in-cluster registry when building in-cluster. Now we allow using the configured `deploymentRegistry`, which is often preferable (and more scalable) than using the simpler in-cluster registry. Closes #1034
Previously we would always deploy and use the in-cluster registry when building in-cluster. Now we allow using the configured `deploymentRegistry`, which is often preferable (and more scalable) than using the simpler in-cluster registry. Closes #1034
Previously we would always deploy and use the in-cluster registry when building in-cluster. Now we allow using the configured `deploymentRegistry`, which is often preferable (and more scalable) than using the simpler in-cluster registry. Closes #1034
Previously we would always deploy and use the in-cluster registry when building in-cluster. Now we allow using the configured `deploymentRegistry`, which is often preferable (and more scalable) than using the simpler in-cluster registry. Closes #1034
Previously we would always deploy and use the in-cluster registry when building in-cluster. Now we allow using the configured `deploymentRegistry`, which is often preferable (and more scalable) than using the simpler in-cluster registry. Closes #1034
Bug
Current Behavior
With a
garden.yml
Project like this:Remote builds will occur in the cluster, but the
deploymentRegistry
does not appear to get used (unlike a localbuildMode
). Instead, the push is to127.0.0.1:5000/staging/qf
. This prevents easily pulling the built image locally.Expected behavior
I can
docker pull
from the listeddeploymentRegistry
to test the remote-built image locally.Suggested solution(s)
The remote builder pushes to the in-cluster cache, but the in-cluster cache immediately starts a job to synchronize the push to the configured
deploymentRegistry
, so it will be available in both places.Alternately, make
deploymentRegistry
a property of thebuildMode
, and don't allow setting it forcluster-docker
andkaniko
buildMode
s (as it's confusing that it does nothing). In that case, allow configuring thedeploymentRegistry
so that it's not127.0.0.1:5000
, so that local users can download images directly from the remote cache.Additional context
In my case, the container is crash looping on Kubernetes and I want to rule out a code issue (or a sync issue, or something else specific to Garden) by running the same container with local, working config.
Your environment
The text was updated successfully, but these errors were encountered: