• 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...
  • Kubernetes Pod: Share a temporal Volume across containers

    2 min read

    kubernetes volume pod

    If we need to be able to share some data across containers (one generates the data and the other one consumes it) we can use an emptyDir to create a Volume to mount on both containers.

    30/06/2021

    Read more...

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