Thanks Tim and Ahmet, that is exactly what I was looking for. I am
basically circumventing kubernetes and going straight to the minimize
backend.
Now everything makes sense.
On Fri, Jun 2, 2017 at 6:27 PM 'Ahmet Alp Balkan' via Kubernetes user
discussion and Q
On Fri, Jun 2, 2017 at 7:40 AM, Diego Lapiduz wrote:
>
> The weird thing is that Kubernetes is the backend in both cases, I am just
> using the Docker API in one case and the kubernetes one in the other.
>
To be clear, the statement that you're using Kubernetes backend in both
To refine this. Kubectl does an API call. That API call does an etcd
write and sync. Then the API has to notify the watching kubelet, which has
to ultimately do that docker run.
So, by definition, it can't be as fast because kunernetes is an async
decoupling ON TOP of the thing you're
To echo what Matthias has said, Kubernetes is doing a lot more housekeeping
work behind the scenes than just docker run.
You can see Kube is adding about one second of overhead. If your containers
typically run for a just a second or two, that is probably not a good fit
for Kube (or even
Thanks Matthias, yes this is a bit of a problem for my use case. Ideally
I'd like to run a fresh container every time that is why I am trying to do
this.
The weird thing is that Kubernetes is the backend in both cases, I am just
using the Docker API in one case and the kubernetes one in the other.
Is this difference a problem for your use case? Kubernetes does do more
work before a pod starts. If you need low-latency execution you'll have to
use long-running worker processes of some form. Once it's started, it
should be just as fast.
On Fri, Jun 2, 2017 at 2:13 PM Diego Lapiduz
This is a very short lived task (just runs `echo hello`) so the only thing
I really care about is getting that `hello` back.
This is what I did in text format:
```
➜ eval $(minikube docker-env)
➜ time docker run dlapiduz/hello-world
hello
docker run dlapiduz/hello-world 0.07s user 0.02s
It runs faster or it starts faster? The gif clear too quickly for me to
see.
On Thu, Jun 1, 2017 at 9:09 PM, Diego Lapiduz wrote:
> Hi y'all, (k8s noob here so forgive me if this is something that I am
> doing obviously wrong)
>
> I am trying to run a short lived task and I
Hi y'all, (k8s noob here so forgive me if this is something that I am doing
obviously wrong)
I am trying to run a short lived task and I am trying to move from Docker
Swarm to Kubernetes. An interesting issue that I am finding is that running
the same Docker image on the same minikube cluster