• Kubernetes: Search for rule granting certain action

    3 min read

    kubernetes role clusterrole rule lookup

    To be able to audit access permissions of users un a Kubernetes cluster we might be interested in searching for Roles or ClusterRoles that grants access to a certain object:

    27/02/2023

    Read more...
  • ArgoCD: Create Applications based on Pull Requests

    4 min read

    argocd kubernetes ApplicationSet pull request github

    One of the key features of ArgoCD is the ApplicationSet, which provides a way to group multiple applications together and deploy them as a single unit. This allows you to manage and deploy multiple applications as a single entity, making it easier to coordinate deployments across multiple teams and applications.

    We have several ways of generating Applications using and ApplicationSet, one of them is using the repositories Pull Requests.

    22/02/2023

    Read more...
  • AWS Console: Assuming roles

    2 min read

    AWS console IAM role assume

    If you are working with Amazon Web Services (AWS), you may have heard the term "assuming a role" in the context of one role using another role. This phrase refers to the process of temporarily taking on a specific set of permissions or privileges within an AWS account, in order to perform certain actions or access specific resources.

    Since when we are using the AWS console we are using a specific role to have access, we can assume another role as well.

    21/02/2023

    Read more...
  • Unable to reach LocalStack when running it with colima

    3 min read

    LocalStack colima could not connect to LocalStack health endpoint

    If we try to run localstack using colima we might face the following error:

    $ localstack status services
     ERROR: could not connect to LocalStack health endpoint at http://localhost:4566
    

    20/02/2023

    Read more...
  • Retrive the Windows uptime using the CLI

    2 min read

    Windows uptime net stats srv systeminfo

    System uptime can be useful for both casual competitions among friends to see who has the system with the longest uptime, as well as for more practical purposes such as identifying if a problem is caused by a system restart. In this article, we will explore two methods for obtaining the uptime on Windows systems.

    16/02/2023

    Read more...
  • Makefile's PHONY targets

    2 min read

    make Makefile .PHONY target

    When we create Makefile targets, we are actually defining "file targets": Make will try to create these files running the commands we are defining:

    target:
      command
    

    But sometimes we want to create some targets that do not represent physical files in the file system. A good example of that are the "clean" targets (as in make clean)

    15/02/2023

    Read more...
  • AWS Lambda: fork/exec /var/task/demo: exec format error: PathError null

    2 min read

    AWS Lambda format error

    Executing a lambda function we might find that if fails with the following error:

    2023-02-04T21:15:33.723+01:00 START RequestId: 7cb12d0d-1e8c-4a8d-485a-0f5dced9a545 Version: $LATEST
    2023-02-04T21:15:33.723+01:00 fork/exec /var/task/demo: exec format error: PathError null
    2023-02-04T21:15:33.724+01:00 END RequestId: 7cb12d0d-1e8c-4a8d-485a-0f5dced9a545
    

    13/02/2023

    Read more...
  • AWS CLI in alpine

    1 min read

    alpine awscli pip

    The AWS CLI is a command line interface for interacting with AWS services. To install it in an Alpine-based container we can use pip instead of going thru all the trouble of downloading a zip and install it by running some script.

    09/02/2023

    Read more...
  • NFS: no_root_squash vs root_squash

    2 min read

    NFS no_root_squash root_squash

    NFS (Network File System) protocol allows users to share files and directories over a network. When exporting a directory over NFS, there are two options that can be specified to control the behavior of root users: no_root_squash and root_squash.

    08/02/2023

    Read more...
  • Cross-compiling Go programs for multiple architectures and platforms

    2 min read

    Golang compile cross-compile multiarch GOOS GOARCH

    One of Go's great features is the ability to cross-compile your code for different platforms and architectures, allowing you to run your applications on a variety of systems.

    To do so we won't need to install emulators or additional tools, we are just going to use the go command

    07/02/2023

    Read more...

Older content...

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