gabeduke/kubectl-iexec

By default use the namespace configured in Kubernetes context

Closed this issue · 4 comments

Thanks for writing the plugin. Currently, it works for me if I explicitly provide the namespace, otherwise, it just hangs. From the logs, it looks like the plugin is trying to fetch pod list info from all the namespaces which can be quite big and slow.

Flags:
      --all-namespaces             If present, tail across all namespaces. A specific namespace is ignored even if specified with --namespace.
  -n, --namespace string           Kubernetes namespace to use. Default to namespace configured in Kubernetes context

stern has the above options, which plays nicely with large k8s cluster.

Thanks for reporting this @ananthakumaran I'll try and get this fixed!

This is fixed on the master branch but I am going to fix CI and get a release published.

@ananthakumaran the newest release (v1.6.2) should fix this issue for you. Let me know if you have any issues!

@gabeduke Thanks for the quick fix. Verified and works as expected.