How can I read a file from a deployment's pods? More specifically, I want fabric8's kubernetes java client equivalent of the following command:
kubectl exec --stdin --tty deployment/otel-collector -n logcollection -- cat /otel-output/json-out.json
PS: you can ignore the --stdin
and --tty
flags.