Skip to content

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]

  1. Deploy resources: Use kubectl apply to create the necessary services and deployments from your configuration files.^[400-devops__07-Monitoring-and-Observability__k8s-istio__samples__bookinfo__README.md]
  2. Check status: Run kubectl get pods to list all pods and verify they have reached the Running state.^[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]