-
Notifications
You must be signed in to change notification settings - Fork 35
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
[question] Will Nomad Consul Connect Envoy proxy work with containerd driver? #59
Comments
@Oloremo Have you tried running it? You should be able to change the driver from |
Not yet, we're in the PoC stages with Nomad currently and I wonder if you folks tried it already and willing to share your experience. As you can see I wonder if we could use Nomad without the docker engine installed at all. |
No, We haven't tried it. Let me know how it goes when you try it, and if you run into any issues.
This is exactly the use-case for which |
Ok, we'll do some Consul Connect related experiments in Q1 2021 and I'll report back if it works. |
So I tried to run a countdash Nomad example for Service Mesh using a containerd-driver 0.7.0 and containerd runtime 1.4.3. It's started and envoy proxy side-car are starting and failing with:
Job spec:
|
Tried to add a
to a |
Ok so it's from envoy container entrypoint script: https://github.com/envoyproxy/envoy/blob/v1.16.0/ci/docker-entrypoint.sh Not sure why it's unable to execute it with containerd driver. |
@shishir-a412ed Sorry for the ping, I wasn't sure if you saw the test above |
@Oloremo Sorry, I should have responded earlier 🙂 . We are still working on the initial rollout, and currently integration with consul connect is not super high on the priority list. I will try to find some time this week and see if I can reproduce/debug this. |
Thanks for the reply! We'll wait. :) It's not super critical for us right now but we do want to use Service Mesh in the near future. |
@shishir-a412ed Sorry for the ping, just wanted to check if you had time to check on this. |
@Oloremo Sorry I have not been able to get to this. Did you try to debug more? e.g.
I ll try to see if I can find sometime to debug more, but I have been juggling with few other things. |
@Oloremo We are doing some internal work around consul service mesh (not using |
Appreciate that! I wasn't able to go back to that issue as well. Pls ping me if you'll need some additional testing. |
@Oloremo Also, looking at your Looking at the official docs: https://www.nomadproject.io/docs/job-specification/sidecar_task#default-envoy-configuration
When you specify:
Nomad will automatically launch the
and the dashboard service (downstream) will need to define
I ll take a deeper look over the weekend. |
With docker driver. |
@Oloremo aah I see! Makes sense 🙂 |
@shishir-a412ed Hey just wanted to say that we're still interested in that. :-) The only thing that stop us from moving to containerd plugin is Consul Connect |
@Oloremo Let me see if I can find sometime to progress this. |
Hi there. I happened to stumble upon this ticket. Setting the driver for job "example" {
datacenters = ["dc1"]
group "api" {
network {
mode = "bridge"
}
service {
name = "example-api"
port = "9001"
connect {
sidecar_service = {}
sidecar_task {
driver = "containerd-driver"
}
}
}
task "web" {
driver = "containerd-driver"
config {
image = "<image>"
}
}
}
} https://www.nomadproject.io/docs/job-specification/sidecar_task#driver |
@mister2d interesting! I'm trying to test it with: Jobspec
But I'm getting a:
|
I can confirm it works for me, I had docker job running consul connect before and the only thing i changed was the driver to containerd. Connect still works. I don't really know why but I'm happy. If you want to dig around my config then https://gitea.redalder.org/RedAlder/systems (I'm using a patched version of this repo that adds support for Nix flakes, the changes I made shouldn't affect consul connect though) |
@MagicRB it's a big repo and I clicked a few things and saw Docker as a driver. Anyway it's better to test and confirm by using a default countdash example as I did above. It would remove all other configurations and make it reproducible for anyone. |
Hello,
By default, Nomad launches the Envoy proxy as a docker container: https://www.nomadproject.io/docs/job-specification/sidecar_task#default-envoy-configuration
I wonder if it could successfully run with a
containerd
driver.The text was updated successfully, but these errors were encountered: