• Operator-SDK: Set custom fields for kubectl get

    2 min read

    Kubernetes Operator-SDK CustomResourceDefinition additionalPrinterColumns get fields

    When writing a custom Kubernetes operator using operator-sdk we might want to change the fields are show when running kubectl get:

    $ kubectl get example
    NAME   AGE
    demo   4h20m
    

    To do so, we'll need to add the additionalPrinterColumns field the the CustomResourceDefinition, but since we are using operator-sdk to take care of this, we'll need to use some annotations in the resource definition file.

    15/05/2023

    Read more...
  • Velero: Backup and restore

    4 min read

    Kubernetes backup velero aws backup restore schedule

    Just in the same way we backup physical servers, we need to backup Kubernetes workloads to be able to restore it to its previous state: We'll need make sure we are going to be able to restore the objects of any namespace and it's data (PersistentVolumes)

    08/05/2023

    Read more...
  • Kustomize: Escape Forward Slash (/)

    2 min read

    Kustomize patches escape forward slash ~1 notation annotation path

    While writing Kustomize patches you might come across is the need to escape certain characters, such as the forward slash (/). This can be a bit tricky since the common conventions on how to escape a character don't apply here.

    03/05/2023

    Read more...
  • Docker ENTRYPOINT vs CMD

    3 min read

    Docker ENTRYPOINT CMD Dockerfile

    Docker is a popular tool for deploying and running applications in a containerized environment. One of the important features of Docker is the ability to define a command to be executed when a container is started. This command can be specified in the Dockerfile using two keyword: ENTRYPOINT and CMD.

    02/05/2023

    Read more...
  • Deploying Cloud Resources with Pulumi and LocalStack

    2 min read

    Pulumi AWS LocalStack golang

    Pulumi is a powerful infrastructure as code tool that allows developers to deploy and manage cloud resources using familiar programming languages. However, when it comes to using Pulumi with LocalStack, there are some changes that need to be made to make Pulumi be able to reach LocalStack.

    25/04/2023

    Read more...

More recent...

Older content...