Debugging Applications
Kubernetes provides tools to help troubleshoot and debug problems with applications.
Usually is getting familiar with how primitives objects interact with each other, checking the status of objects, and finally checking logs for any last resource clues.
Resources
-
Debugging ODO
OpenShift Toolkit is an IDE plugin available on VS Code and JetBrains IDEs, that allows you to do all things that
odo
does, i.e. create, test, debug and deploy cloud-native applications on a cloud-native environment in simple steps.
-
Debugging Applications
Read about how to debug applications that are deployed into Kubernetes and not behaving correctly.
-
Debugging Services
You've run your Pods through a Deployment and created a Service, but you get no response when you try to access it. What do you do?
-
Debugging Replication Controllers
Read about how to debug replication controllers that are deployed into Kubernetes and not behaving correctly.
References
MacOS/Linux/Windows command:
oc apply -f https://gist.githubusercontent.com/csantanapr/e823b1bfab24186a26ae4f9ec1ff6091/raw/1e2a0cca964c7b54ce3df2fc3fbf33a232511877/debugk8s-bad.yaml
Expose the service using port-forward
Try to access the service
Try Out these Commands to Debug
Activities
The continuous integration activities focus around Tekton the integration platform. These labs will show you how to build pipelines and test your code before deployment.
Task | Description | Link | Est. Time |
---|---|---|---|
Try It Yourself | |||
Debugging | Find which service is breaking in your cluster and find out why. | Debugging | 30 min |