CLI
Usage
LocalOps CLI ops
can be used to get shell access to the underlying kubernetes cluster of an environment.
To get shell access, you have to
- Login to your Localops account
- Use
ops
cli to set kubernetes context of kubectl cli to point at the environment’s kubernetes cluster. - Then Use
kubectl
to inspect the cluster.
Login to LocalOps
Login to LocalOps account using your email address.
Set kubernetes context
Use this commnd updates your local current context to point at the environment’s kubernetes cluster.
To get env-id
, visit your environment dashboard and see “Shell” tab.
Use Kubectl
After update-kubeconfig
command succeeds, you can use any kubectl command to inspect pods, deployments, jobs and
everything else running in your LocalOps environment.
For example, to see all cluster resources: