You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create "k8sconfig"-file containing cluster different from what you have in ~/.kube/config
Run example "getting-started" using "skaffold dev --kubeconfig k8sconfig"
Note how the image is build and deployed but no output from the container
mv ~/.kube/config ~/.kube/config_bk
mv k8sconfig ~/.kube/config
Run "skaffold dev" and you should get output from the container
From --help:
--kubeconfig='': Path to the kubeconfig file to use for CLI requests."
So it says --kubeconfig is used when deploying, but I would assume it is also used for getting output from containers ?
I discovered this by inserting the following at pkg/skaffold/kubernetes/watcher.go:79 and noticed it wasn't listing pods from my k8sconfig cluster by from the cluster defined in ~/.kube/config.
Our local cluster detection doesn't respect --kubeconfig either but this is #4347.
@tejal29#4477 is different in that we're not validating the provided kube-context and as '' is not matched as a local cluster then builds are happening in the local docker daemon rather than the minikube hosted daemon. In this case, we seem to have code invoking subcommands with --context but not also passing along --kubeconfig.
Expected behavior
Skaffold deploys pod and shows stdout from the container
Actual behavior
Skaffold deploys the pod but does not show stdout from the cont
Information
Steps to reproduce the behavior
From --help:
So it says --kubeconfig is used when deploying, but I would assume it is also used for getting output from containers ?
I discovered this by inserting the following at pkg/skaffold/kubernetes/watcher.go:79 and noticed it wasn't listing pods from my k8sconfig cluster by from the cluster defined in ~/.kube/config.
The text was updated successfully, but these errors were encountered: