• Kubernetes: What's a PodDisruptionBudget?

    2 min read

    kubernetes Pod PodDisruptionBudget

    In Kubernetes we can configure a PodDisruptionBudgets (PDB) to tell the cluster for a given set of Pods how they can tolerate interruptions (such as application upgrades) maintaining it's general availability.

    This Kubernetes object has graduated to GA in Kubernetes v1.21

    03/08/2021

    Read more...
  • Kubernetes: cannot delete Pods with local storage

    2 min read

    kubernetes kubectl drain local storage emptyDir

    While draining a node it might fail with the message cannot delete Pods with local storage as follows:

    $ kubectl drain tycho.pet2cattle.com --ignore-daemonsets
    node/tycho.pet2cattle.com already cordoned
    error: unable to drain node "tycho.pet2cattle.com", aborting command...
    
    There are pending nodes to be drained:
     tycho.pet2cattle.com
    error: cannot delete Pods with local storage (use --delete-emptydir-data to override): spinnaker-ampa/spin-rosco-658fdb4694-v99jt
    

    02/08/2021

    Read more...
  • How to use the Datadog Python Library to send custom metrics

    3 min read

    Using the Datadog Python Library we can very easily inject metrics into Datadog. These metrics will fall into the "custom metrics" category. Let's check the python code needed to do so:

    16/07/2021

    Read more...
  • Kubernetes: Exposing a service listening to localhost using socat

    2 min read

    kubernetes socat

    On Kubernetes, if we want to publish a port that it's listening just to localhost without having to modify the container image we can create another container image to work as a TCP proxy using socat

    15/07/2021

    Read more...
  • Conditional expressions in helm

    2 min read

    helm expressions if else

    Maybe one of the main challenges about helm is the complexity of it's template rendering engine: It's not very intuitive

    14/07/2021

    Read more...

More recent...

Older content...