Quick actions

cmd+k|ctrl+k

Navigation

Languages

CKA Commands

Snippet info

Language

Bash

Visibility

public

Author

bilalbox

Created

2019-12-23T02:25:01Z

Updated

2019-12-23T04:07:39Z

# Check logs for a given pod
kubectl logs "$(kubectl get pods -o jsonpath='{.items[0].metadata.name}')"

# Run commands within a given pod
kubectl exec -it "$(kubectl get pods -o jsonpath='{.items[0].metadata.name}')" -- nginx -v

#
INFO