Kubernetes Pod verification¶
Kubernetes Pod verification is the process of confirming that application containers have been successfully deployed and are operating correctly within a cluster.^[400-devops__07-Monitoring-and-Observability__k8s-istio__samples__bookinfo__README.md]
Procedure¶
Verification typically begins with applying the resource definitions to the cluster.^[400-devops__07-Monitoring-and-Observability__k8s-istio__samples__bookinfo__README.md]
- Deploy resources: Use
kubectl applyto create the necessary services and deployments from your configuration files.^[400-devops__07-Monitoring-and-Observability__k8s-istio__samples__bookinfo__README.md] - Check status: Run
kubectl get podsto list all pods and verify they have reached theRunningstate.^[400-devops__07-Monitoring-and-Observability__k8s-istio__samples__bookinfo__README.md]
Validation Methods¶
Once pods are running, functionality can be verified either through the command line or a browser.
CLI Verification¶
You can verify internal connectivity by executing a command inside a running Pod.^[400-devops__07-Monitoring-and-Observability__k8s-istio__samples__bookinfo__README.md] For example, using kubectl exec to run a curl command against a service ensures the application is responding on the expected network.^[400-devops__07-Monitoring-and-Observability__k8s-istio__samples__bookinfo__README.md]
External Verification¶
For applications with external endpoints, you can verify the service by accessing the specific URL and port exposed by the Ingress or load balancer in a web browser.^[400-devops__07-Monitoring-and-Observability__k8s-istio__samples__bookinfo__README.md]
Sources¶
^[400-devops__07-Monitoring-and-Observability__k8s-istio__samples__bookinfo__README.md]