Stay organized with collections
Save and categorize content based on your preferences.
Executing shell commands on your container
To troubleshoot some isses, you might have to access the container to execute commands directly
on the container itself. You can access a container through a bash shell or through PowerShell using the
kubectl exec command.
Use kubectl describe pods to find the name of the Pod in your cluster that you
want to connect to.
In the following example, the command lists the suitecrm-0 pod.
kubectl describe pods | grep Name
Name: suitecrm-0
Execute shell commands using one of the following methods:
Use kubectl exec to open a bash command shell where you can execute commands.
kubectl exec -it pod-name -- /bin/bash
The following example gets a shell to the suitecrm-0 pod: