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> | ||
+ | |||
+ | * <code>[[bash -c]]</code> | ||
== Related == | == Related == | ||
[[kubectl get pods]] POD_NAME_HERE -o [[jsonpath]]='{.spec.containers[*].name}' | [[kubectl get pods]] POD_NAME_HERE -o [[jsonpath]]='{.spec.containers[*].name}' |
Revision as of 17:06, 18 October 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: