How can i run ksonnet command on kubernetes cluster from inside a container on the cluster

6/14/2018

I am trying to trigger ksonnet component deployment from within a container on a kubernetes cluster. The ks component prototype is on the node itself. I am just trying to execute ks generate and ks apply command on the node from inside a container on the node.

-- Abhishek Tiwari
ksonnet
kubernetes

2 Answers

6/14/2018

A container, or a pod do not have access to node resources. They are isolated. You have to run a pod with ksonnet, within the cluster, with kubectl run ...

-- suren
Source: StackOverflow

6/24/2018

ksonnet uses Kubernetes' client-go to determine cluster credentials. If this is not working properly, could you please create an issue in ksonnet issues

-- Bryan Liles
Source: StackOverflow