• How docker generates container's names

    2 min read

    docker names

    Everytime you create a container using docker, if not already set using --name, docker chooses a name for you: you can expect two words with a underscore:

    $ docker run --rm -d alpine sleep 24h
    38c4cc4e87762fc113ef174e9a4989e13d21037678abd3fe73840b825f14c7bf
    $ docker ps
    CONTAINER ID   IMAGE                          COMMAND                  CREATED         STATUS                PORTS                    NAMES
    38c4cc4e8776   alpine                         "sleep 24h"              5 seconds ago   Up 3 seconds                                   romantic_shtern
    

    For this example it was chosen romantic_shtern, but it can use a great variety of words:

    $ docker ps --all | grep -v "Up" | awk '{ print $NF }'
    NAMES
    mystifying_poitras
    suspicious_shtern
    focused_chatelet
    keen_mendel
    happy_jackson
    xenodochial_margulis
    kind_blackburn
    gallant_pascal
    trusting_thompson
    (...)
    

    So, how does Docker generate names for it's containers?

    01/08/2022

    Read more...
  • 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...

More recent...

Older content...