• Is it possible to escape from a container on Kubernetes?

    3 min read

    You might find some documents telling containers (this applies to docker and Kubernetes as well) are a chroot jail on steroids. One might end up thinking it might be as easy to escape from a root container as it is from a root chroot. But that's not true because it's just an analogy.


  • How helm values are stored on Kubernetes

    2 min read

    If we want to get the values we have set for a particular helm chart we can use the helm get values command. Where are these values stored?


  • Packer templates: Add more verbosity to shell provisioners

    2 min read

    If we use shell scripts as provisioners with packer errors can be confusing:

    ==> amazon-ebs: Terminating the source AWS instance...
    ==> amazon-ebs: Cleaning up any extra volumes...
    ==> amazon-ebs: No volumes to clean up, skipping
    ==> amazon-ebs: Deleting temporary security group...
    ==> amazon-ebs: Deleting temporary keypair...
    Build 'amazon-ebs' errored: Error removing temporary script at /tmp/script_9722.sh!
    ==> Some builds didn't complete successfully and had errors:
    --> amazon-ebs: Error removing temporary script at /tmp/script_9722.sh!
    ==> Builds finished but no artifacts were created.

    We can tell there is an error, but it's hard to tell what's going on


  • Terraform apply without updating modified resources

    2 min read

    When we are deploying infrastructure using terraform we need to understand that we should not be modifying what we have deployed, otherwise terraform will undo these changes if we apply it again. This is actually a good thing to make sure the code reflex the state of the infrastructure but sometimes can be a pain


  • Using the AWS termination handler together with Karpenter

    2 min read

    One of the advantages of using AWS Karpenter is that makes straightforward using spot instances. But how do we handle termination notices coming from AWS?



Older content...