Difference between revisions of "-c"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
* <code>[[kubectl exec -it]] your-pod -c [[your-container]]</code> | * <code>[[kubectl exec -it]] your-pod -c [[your-container]]</code> | ||
* <code>[[kubectl logs]] my-pod -c [[my-container]]</code> | * <code>[[kubectl logs]] my-pod -c [[my-container]]</code> | ||
+ | |||
+ | |||
+ | == Related == | ||
+ | [[kubectl get pods POD_NAME_HERE -o jsonpath='{.spec.containers[*].name}']] |
Revision as of 19:44, 23 August 2022
python -c
kubectl exec -it your-pod -c your-container
kubectl logs my-pod -c my-container
Related
[[kubectl get pods POD_NAME_HERE -o jsonpath='{.spec.containers[*].name}']]
Advertising: