Tectonic provides access to application logs both in Console and with
This guide continues from the previous tutorial, where we installed a simple application.
Use Tectonic Console to view application logs.
https://my-cluster.example.comto open the Console and log in.
Console will display available information for the pod, including CPU, memory, and logging stats. Click Logs to confirm the output is the same as that shown using
kubectl get pods to view the cluster's pods.
$ kubectl get pods NAME READY STATUS RESTARTS AGE simple-deployment-4098151155-494nl 1/1 Running 0 1m simple-deployment-4098151155-n8bqr 1/1 Running 0 1m simple-deployment-4098151155-p680w 1/1 Running 0 1m
Copy one of the pod's names, and append it to the
kubectl logs -f command.
kubectl logs -f simple-deployment-4098151155-n8bqr 10.2.1.1 - - [15/Aug/2017:21:30:32 +0000] "GET / HTTP/1.1" 200 576 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36" "127.0.0.1"
Open the app in your browser by visiting my-cluster.example.com/simple-deployment. There is a one in three chance that any visit to the page will hit any one of the three available pods. Refresh the page several times to increase the likelihood that the selected pod will produce log messages.