To save ourselves from having to add --namespace <desired namespace> for all kubectl commands we use, we've added a tool called Kubens to okctl venv.

What it means for you

By running kubens <namespace> inside okctl venv, Kubens will ensure that all kubectl commands is executed inside the selected namespace.

In other words, if you are going to work inside a specific namespace, you can select that namespace with Kubens and omit the namespace flag for kubectl from that point on.

# Usage
kubens <desired namespace>
# Example
kubens kube-system

You can also run kubens without any arguments to get a list of available namespaces. If you have fzf installed, you'll be able to select a namespace through fuzzy find.

Additional information