IBM Support

How to capture Kubernetes infrastructure details for SDC

How To


Summary

How to capture Kubernetes infrastructure details for SDC

Objective

  • Capturing logs with help of kubectl command for kubernetes pod where SDC engine is running when issues are with infra.

  • Getting details of deployment and pods for understanding infrastructure of kubernetes on which SDC engine is running.

  • In this article you will get to know how to gather pod details, roles, logs, describe, node details, etc.

Steps

  • You can use below command as per the requirements of the troubleshooting of kubernetes deployment issues and for viewing logs.

  • Below commands would help you understand the architecture and details about the infrastructure of Kubernetes pod and deployment.

  1. For getting kubernetes pod logs :

    kubectl logs <pod_name>
    kubectl logs --since=6h <pod_name>  (will show logs for 6hours)
    kubectl logs --tail=50 <pod_name>
    kubectl logs -f <pod_name>       (Will show logs along with new logs printing)
    kubectl logs -c <container_name> <pod_name>  (Logs for container in pod)
    kubectl logs <pod_name> > pod.log       (will redirect the logs to a file for analysis)
  2. For getting details of deployment and pod :

kubectl get deployments -n <Namespace>
kubectl get pods -n <Namespace>
kubectl describe deployment <deployment-name> -n <Namespace>

kubectl get nodes
kubectl describe node <NODE_NAME>
  1. For getting role details in kubernetes cluster:

kubectl get roles -A
kubectl get rolebindings -A -o wide

kubectl describe role <role-name> -n <namespace>
kubectl describe clusterrole <clusterrole-name>

kubectl describe rolebinding <rolebinding-name> -n <namespace>
kubectl describe clusterrolebinding <clusterrolebinding-name>

Document Location

Worldwide

[{"Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSM21Y","label":"IBM StreamSets"},"ARM Category":[{"code":"","label":""}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

Modified date:
16 March 2025

UID

ibm17186359