Skip to content

K8s Supportยถ

๐Ÿ“… Lists all Kubernetes events in the kafka namespace, sorted by creation time. Useful for troubleshooting and seeing the order of events as they happened.

kubectl get events -n kafka --sort-by='.metadata.creationTimestamp'

๐Ÿ—‘๏ธ Deletes all jobs in the demo namespace that have not completed successfully (status.successful=0). Helps clean up failed jobs and keep the namespace tidy.

kubectl delete jobs -n demo --field-selector=status.successful=0

Debug PODยถ

YAML Manifestยถ

apiVersion: v1
kind: Pod
metadata:
  name: debug-tools
  namespace: default
  labels:
    app: debug-tools
spec:
  containers:
  - name: netshoot
    image: nicolaka/netshoot
    command: ["sleep", "infinity"]
    resources:
      requests:
        cpu: "100m"
        memory: "128Mi"
      limits:
        cpu: "500m"
        memory: "512Mi"
  restartPolicy: Never

Also Check Thisยถ