kubectl get pods --all-namespaces -o widereturns a list of the pods, from this you can find the <app-pod-name> and the <app-pod-namespace> and plug them in below
kubectl log <app-pod-name> -n<app-pod-namespace> -capp >> mule.logWhich you can the sftp off the controller
kubectl exec -it test-api-kit-testcase-78c7f64c74-gqkk6 -nc02acd76-ede4-4781-9480-fee183883f18 -capp -- /bin/bashThis give you command line access and per any other Mule runtime, the log files are located under $MULE_HOME/logs.
kubectl cp <app-pod-namespace>/<app-pod-name>:/opt/mule/logs/* /tmp/*Which you can then sftp off the controller
find . -name <app-name>which will return out put similar to the following.
./var/lib/gravity/local/packages/unpacked/gravitational.io/planet/5.5.31-11312/rootfs/var/lib/kubelet/pods/efbda1cf-0f96-11ea-918f-0285ef255828/volumes/kubernetes.io~empty-dir/overlay/opt/mule/apps/<app-name> ./var/lib/gravity/local/packages/unpacked/gravitational.io/planet/5.5.31-11312/rootfs/var/lib/kubelet/pods/efbda1cf-0f96-11ea-918f-0285ef255828/volumes/kubernetes.io~empty-dir/overlay/opt/mule/.mule/<appname>That points you the shared directory where the Mule Runtime is installed, the logs would be stored in a location similar to this
/var/lib/gravity/local/packages/unpacked/gravitational.io/planet/5.5.31-11312/rootfs/var/lib/kubelet/pods/efbda1cf-0f96-11ea-918f-0285ef255828/volumes/kubernetes.io~empty-dir/overlay/opt/mule/logs
001116919

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.