K8s deployment of spring boot and nodejs


I have followed the demo to duplicate the jenkins browser and append :30741/
however, there is no respond from the server.

Please help

Hi @subhajeetsur,

Can you share the URL of the demo which you currently follow? We need more information in order to troubleshoot the issue.

Happy learning,
Trung.

vedio url: DevSecOps – Kubernetes DevOps & Security | KodeKloud

Thanks

Hello subhajeetsur,
Please, share the output of describe command. kubectl describe pod PODName Also, share the output of kubectl get pods -n kube-system and kubectl get nodes

Hello Ayman,

I tried to redo the demo, delete all the pods, service and deployments, and create again along with the demo, however i have a different outcome, the pods are pending even after a long wait. screenshot as follows:


Thanks for helping

Hi @subhajeetsur,
You have to inspect the pod by kubectl describe po <pod-name and have to check the reason why it’s in the pending state.
Delete all the pods won’t help.

Regards,

Are you trying this in your local system? If yes, then please share the k8s version and installation details.

Hello Ayman,

I tried to redo the demo, delete all the pods, service and deployments, and create again along with the demo, however i have a different outcome, the pods are pending even after a long wait. screenshot as follows:


I have notice devsecops-cloud not ready, what does it mean?
Thanks for helping

It looks like there is an issue with your cluster. As a test, deploy a simple nginx pod.

kubectl run nginx --image=nginx

If the above pod is in the pending state that means there is an issue with k8s cluster itself.

I noticed, you haven’t deployed a network addons hence coredns pods is in ContainerCreating state.

Please check the below reference page: -

Regards,



I have no problem running containers. the sonarqube container is running fine.
I only went through basic kuberbetes, the kubeadm is too difficult to understand and use for me now

Hello @subhajeetsur ,

Can you confirm the coredns pod running?
If you’re new to k8s, it is better to use minikube or Docker for Desktop k8s cluster instead of providing one with kubeadm.
KodeKloud also has a playground (What Are Cloud Playgrounds & Sandboxes? | KodeKloud) with a well-configured k8s cluster (single & multiple nodes), you can use it to follow the demo as well.

Happy learning,
Trung.