User manual

camel kubernetes logs

Print the logs of a Kubernetes pod

This command is provided by the kubernetes plugin. Install it with camel plugin add kubernetes.

Usage

camel kubernetes logs [options]

Options

Option Description Default Type

--container

Name identifying the pod container to grab the logs from.

String

--kube-config

Path to the kube config file to initialize Kubernetes client

String

--label

Label name and value used as a pod selector.

String

--name

The integration name. Use this when the name should not get derived otherwise.

String

--namespace,-n

Namespace to use for all operations

String

--tail

The number of lines from the end of the logs to show. Defaults to -1 to show all the lines.

-1

int

-h,--help

Display the help and sub-commands

boolean