An app that helps you monitor your Kubernetes cluster, debug critical deployments & gives recommendations for standard practices
2.11k
stars
289
forks
source link
Add support for KUBECONTEXT environment variable and --kubecontext option into botkube CLI #1456
Closed
mickael-ange closed 3 months ago
Overview
I'd like to be able to set the
KUBECONTEXT
when runningbotkube
CLI in order to connect to a specific k8s cluster configured in my~/.kube/config
Please add support for
KUBECONTEXT
environment variable and--kubecontext
option into botkube CLI.Related Slack discussion: https://botkube.slack.com/archives/C01CR1KS55K/p1718264010257599
Acceptance Criteria
Ideally we should be able to optionally set the
KUBECONTEXT
using a CLI option or an environment variable as follows:Reason
It is very convenient to switch context in the default
~/.kube/config
as we don't have to maintain several kubeconfig files.We can switch context with
kubectl
as follows.We can switch context with
helm
as follows.We can switch context with
ansible
as follows.Best regards Mickael