How to view the logs of microservices

skycli app get-k8s-credentials

You can use kubectl to view logs as usual. To do this, you typically need to run kubectl config set-cluster, kubectl config set-user and kubectl config set-context. skycli has command to abstract all these details.

The version of kubectl must be >= 1.15

$ skycli --app yourapp app get-k8s-credentials
# The necessary configuration was written to KUBECONFIG.
# Follow the instruction in the output to
# switch kubectl context if you wish.

Then you can verify the configuration was correctly set by skycli

$ kubectl config view

First you need to know the name of the pods

$ kubectl get pod

Finally you can view the logs with

$ kubectl logs mypod

‚Äč