hckr k8s pod¶
Kubernetes pod related commands
hckr k8s pod [OPTIONS] COMMAND [ARGS]...
delete¶
Delete a pod in given namespace and context (default: current context)
Example Usage:
$ hckr k8s pod delete <POD_NAME> --namespace default
Command Reference:
hckr k8s pod delete [OPTIONS] POD_NAME
Options
- -c, --context <context>¶
Kubernetes context to be used, [default: Current active context]
- -n, --namespace <namespace>¶
Kubernetes namespace
Arguments
- POD_NAME¶
Required argument
logs¶
Get logs from a pod in the given namespace and context (default: current context)
Example Usage:
$ hckr k8s pod logs <POD_NAME> --namespace default
Command Reference:
hckr k8s pod logs [OPTIONS] POD_NAME
Options
- -c, --context <context>¶
Kubernetes context to be used, [default: Current active context]
- -n, --namespace <namespace>¶
Kubernetes namespace
- --container <container>¶
Kubernetes container to check logs, If not provided hckr try to infer from pod
- -w, --watch¶
Whether to watch/follow logs
Arguments
- POD_NAME¶
Required argument
shell¶
Shell into a pod in the given namespace and context (default: current context)
Example Usage:
$ hckr k8s pod shell <POD_NAME> --namespace default
Command Reference:
hckr k8s pod shell [OPTIONS] POD_NAME
Options
- -c, --context <context>¶
Kubernetes context to be used, [default: Current active context]
- -n, --namespace <namespace>¶
Kubernetes namespace
- --container <container>¶
Kubernetes container to shell, If not provided hckr try to infer from pod
Arguments
- POD_NAME¶
Required argument
show¶
This Lists all Pods in a given namespace, If not passed ‘default’ namespace will be used
Example Usage:
$ hckr k8s pod show --namespace default
Command Reference:
hckr k8s pod show [OPTIONS]
Options
- -c, --context <context>¶
Kubernetes context to be used, [default: Current active context]
- -n, --namespace <namespace>¶
Kubernetes namespace
- -r, --records <records>¶
Number of records to show
- -w, --watch <watch>¶
This will enable continuous running of this command, every given of seconds