• Import files into objects using helm

    2 min read

    helm ConfigMap Secret file

    When writing helm charts being able to specify the files to use for ConfigMap or a Secret objects is way more convenient than having the object already rendered. Using .Files.Glob we can tell help to import a set of files into the object

    08/07/2022

    Read more...
  • Installing helm a k3s node: Kubernetes cluster unreachable

    2 min read

    k3s helm install Kubernetes cluster unreachable

    Some times for convenience we might want to install helm on one of the k3s nodes. If we do so we'll get the following error:

    # helm list Error: Kubernetes cluster unreachable: Get "http://localhost:8080/version": dial tcp 127.0.0.1:8080: connect: connection refused 

    07/07/2022

    Read more...
  • Setting custom tags on dynamically provisioned Volumes

    2 min read

    Since the version 1.6.0 of the EBS CSI driver it is now possible to define a set of custom tags to add the the volumes.

    06/07/2022

    Read more...
  • external DNS: Ignore Ingress object

    1 min read

    If we are using external DNS to create DNS records based on the configured Ingress objects we might face a situation where we have two Ingress objects with the same hosts configured:

    $ kubectl get ingress NAME CLASS HOSTS ADDRESS PORTS AGE repo-nginx <none> repo.pet2cattle.com 10.12.10.21 80 194d repo-alb <none> repo.pet2cattle.com 10.12.10.31 80, 443 115d 

    In a situation like this, we want to be able to tell external DNS to ignore one of them.

    05/07/2022

    Read more...
  • terraform graph: Getting a visual representation of terraform code

    2 min read

    terraform graph HCL

    Using the terraform graph we can theoretically get a visual representation of either the plan or the current configuration

    04/07/2022

    Read more...

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