kubectl exec

Description

Execute a command in a container.

Command
kubectl exec
Examples
Execute command in pod
kubectl exec my-pod -- ls /app
Open shell in pod
kubectl exec -it my-pod -- /bin/bash
Parameters
Parameter Type Required Description
-it string No Interactive terminal
-c string No Container name
Command Info
Category: Debugging
Type: Kubernetes
Views: 12
Status: Active
Tags
execute debug container