Regarding Leverage Toolbox versions
To have this feature available, Leverage Toolbox versions
1.2.7-0.1.7 and up, or
1.3.5-0.1.7 and up must be used.
kubectl command is a wrapper for a containerized installation of kubectl. It provides the kubectl executable with specific configuration values required by Leverage.
It transparently handles authentication, whether it is Multi-Factor or via Single Sign-On, on behalf of the user in the commands that require it. SSO Authentication takes precedence over MFA when both are active.
The sub-commands can only be run at layer level and will not run anywhere else in the project.
configure can only be run at an EKS cluster layer level. Usually called
The command can also be invoked via its shortened version
Configuring on first use
To start using this command, you must first run
leverage kubectl configure on a
to set up the credentials on the proper config file.
leverage kubectl [commands] [arguments]
All arguments given are passed as received to kubectl.
leverage kubectl get pods --namespace monitoring
leverage kubectl shell
Open a shell into the Kubectl container in the current directory.
leverage kubectl configure
Add the cluster from the EKS layer into your kubectl config file.
aws eks update-kubeconfig ....