...
Info | ||
---|---|---|
| ||
$Env:POD_NAME=$(kubectl get pods -o go-template --template '{{range .itemitems}}{{.metadata.name}}{{end}}') |
...
Info | ||
---|---|---|
| ||
kubectl logs $POD_NAME |
Anything that the application would normally send to STDOUT
becomes logs for the container within the Pod. We can retrieve these logs using the kubectl logs
command:
Executing command on the container
...