On Wed, Jun 07, 2017 at 09:27:53AM -0300, Rodrigo Campos wrote:
> On Wednesday, June 7, 2017, <dobk...@gmail.com> wrote:
> 
> > I am looking for an option to run shell command on node through
> > Kubernetes. Is this supported? Unfortunately, I can't find an example on
> > the Internet, but it's strange since Kubernetes has access and enough
> > permissions to do that.
> >
> > Why do I need it? My application doesn't have a direct access to nodes in
> > a cluster, it can access only Kubernetes API because of security reasons.
> > The application manages and monitors Nodes and Pods, so there is only one
> > way to execute operations on Pods and Nodes: Kubernetes API.
> 
> 
> Nodes or pods?
> 
> You can execute on pods via kubectl exec.
> 
> On nodes, I don't think there is any way. You just a daemonSet with
> hostpath or host network or something like that.
> 
> But you usually don't want to just exec something. You want something
> self-healing and immutable pods. So, for pods you should consider build and
> deploy again, and for nodes a daemonSet that constantly run and checks all
> it needs and acts accordingly.

Oh, you can use fabric, that supports a bastion host and even use the coreOS
integration. See: https://github.com/coreos/fabric-kubernetes-nodes


But for some things, self-healing might be way better :)

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to