Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleWindows shell command
$Env:POD_NAME=$(kubectl get pods -o go-template --template '{{range .itemitems}}{{.metadata.name}}{{end}}')

echo $Env:POD_NAME

curl http://localhost:8001/api/v1/namespaces/default/pods/$Env:POD_NAME/proxy/

...

Info
titleshell command

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

...