Setting kubectl context via env var

This page summarizes the projects mentioned and recommended in the original post on /r/kubernetes

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • direnv

    unclutter your .profile

  • I use two local kind clusters, and I use .envrc (direnv) to set env vars via cd.

  • kubectl

    Issue tracker and mirror of kubectl code

  • I have read this issue, and up to now it seems not possible to change the kubectl context via an env var: https://github.com/kubernetes/kubectl/issues/1154

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • kubectx

    Faster way to switch between clusters and namespaces in kubectl

  • check out kubectx/kubens https://github.com/ahmetb/kubectx very handy tool to permanently switch context/namespace

  • kubie

    A more powerful alternative to kubectx and kubens

  • Kubie is what you need.

  • kubeswitch

    The kubectx for operators.

  • You can just install kubeswitch , it's easy to use and it's better than kubectx and kubie

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts