Re: [kubernetes-users] How to execute command in a pod (kubernetes) using API?

2017-07-28 Thread Rodrigo Campos
If it wasn't resolved as it's not in the documentation wiki (sorry, away from laptop now) you can probably check how kubectl exec does it. It might not be the simpler code, but it may shed some light On Friday, July 28, 2017, Madhukar Nayakbomman wrote: > Hi Robinly, > > How did you work through

[kubernetes-users] Re: How to execute command in a pod (kubernetes) using API?

2017-07-28 Thread Madhukar Nayakbomman
Hi Robinly, How did you work through this issue? Is there any API which we can use for executing a command in a container? Thanks, Madhukar On Tuesday, February 28, 2017 at 1:30:09 AM UTC-8, Robinly wrote: > > I want to execute command in a container using k8s API, don't use any > libraries or

Re: [kubernetes-users] SSL endpoints: certs w/o IP SANs ok?

2017-07-28 Thread John Morris
I've verified that both etcd2 and etcd3 are fine using FQDNs in TLS endpoint urls. As for k8s, is it possible/does it make sense to use an FQDN for $KUBERNETES_SERVICE_HOST? It seems it's possible to get the basic k8s cluster going with certs that have no IP SANs, but the fun stops with the

Re: [kubernetes-users] kubectl-yaml (two containers & two replica) httpd & mysql

2017-07-28 Thread Snd LP
thanks for your suggestion, so it seems replicas run if it's just httpd without mysql inside yaml. Am I (1) supposed to setup mysql completely for container to run? using spec? (2) is it regular practice to including everything in one yaml or separate them? assuming they need to talk to each othe

Re: [kubernetes-users] kubectl-yaml (two containers & two replica) httpd & mysql

2017-07-28 Thread Rodrigo Campos
Have you checked the logs? Kubectl logs -c On Friday, July 28, 2017, Snd LP wrote: > For a development requirement, I'm trying to spin up two containers of > httpd and mysql with replica of 2 each. (2 * 2 = 4). > > However, my yaml file is failing with this. I'm not being picky with spec > or

[kubernetes-users] kubectl-yaml (two containers & two replica) httpd & mysql

2017-07-28 Thread Snd LP
For a development requirement, I'm trying to spin up two containers of httpd and mysql with replica of 2 each. (2 * 2 = 4). However, my yaml file is failing with this. I'm not being picky with spec or other requirements but what in this yaml can cause containers to crash? Feedback appreciated.