• kubectl: Streaming Logs from Multiple Pods

    2 min read

    kubectl logs Kubernetes Pod streaming troubleshooting

    When troubleshooting applications in Kubernetes, you often need to monitor logs from multiple pods simultaneously. The kubectl logs command provides powerful options to stream logs from several pods at once using label selectors.

    In this post, we'll explore how to use kubectl logs with the selector flag to monitor multiple pods in real-time.

    15/05/2025

    Read more...
  • kubectl-eks: Managing Amazon EKS Clusters

    5 min read

    kubectl plugin custom command AWS EKS Kubernetes

    Managing Kubernetes clusters on AWS Elastic Kubernetes Service (EKS) can be challenging, especially when dealing with multiple clusters across different regions and accounts. The kubectl-eks plugin simplifies this process by providing convenient commands to list, inspect, and switch between EKS clusters.

    29/01/2025

    Read more...
  • Using kubectl to edit the status of an object

    3 min read

    kubernetes kubectl subresource status

    As of kubectl v1.24, it is possible to patch subresources using the --subresource flag. This is useful for updating the status of an object, for example.

    18/03/2024

    Read more...
  • Add new line when printing data using jsonpath

    2 min read

    kubectl jsonpath output formatting new lines custom delimiters

    When we print values using jsonpath we'll get all the values in a single line (actually, it won't even bother adding the newline character at the end of the list):

    $ kubectl get ns -o jsonpath='{ .items[*].metadata.name }'
    default dynamodb-operator ec2-operator iam-operator kube-node-lease kube-public kube-system local-path-storage testvault
    

    06/06/2023

    Read more...
  • Managing Environment Variables with kubectl

    2 min read

    kubernetes kubectl environment variable set unset

    In today's highly dynamic and containerized environments, managing environment variables is crucial for configuring applications effectively. With the Kubernetes command-line tool, kubectl, you can imperatively set or remove environment variables for your existing objects.

    21/05/2023

    Read more...

Older content...

From pet to cattle
Treat your kubernetes clusters like cattle, not pets