• terraform: create an array of resources using for_each

    3 min read

    terraform for_each

    If we need to create multiple resources of the same kind based on a set of objects, we can use the for_each keyword for creating them.

    08/06/2021

    Read more...
  • Retrieve Oracle's versions using a SQL query

    3 min read

    One of the first things we might want to know about an Oracle database we have just connected is what version it is running. We can retrieve this information using an SQL query

    07/06/2021

    Read more...
  • What's a kubernetes DaemonSet?

    2 min read

    kubernetes DaemonSet

    When it comes to kubernetes objects, maybe the one that is quite common but still causes a lot of confusion is the DaemonSet. What's it's function?

    04/06/2021

    Read more...
  • tail multiple kubernetes pods

    2 min read

    stern kubernetes pods

    While debugging issues we might need to be able to see the output from multiple pods (or multiple) at the same time to be able to understand how they are interacting. Stern allows you to tail multiple pods on Kubernetes and even multiple containers within the pod

    03/06/2021

    Read more...
  • kubernetes: enforce resource limits using LimitRange

    3 min read

    LimitRange enforce kubernetes resource limits

    If we want to make sure the resources for a given namespace are controlled yet we want to be able to give full control to whoever is creating objects in that namespace, we can use LimitRange to enforce some resource constraints:

    • We can enforce a minimum and maximum (and it's default value) for compute resources per Pod or Container or storage request per PersistentVolumeClaim in the namespace
    • We can also enfornce a ratio between request and limit for a resource (so that we are not abusing the control setting limits that are too wide) Set default request/limit for compute resources in a namespace and automatically inject them to Containers at runtime.

    This is implemented as an admission controller that observes the incoming requests and makes sure that it does not violate any of the constraints enumerated in the LimitRange object within it's namespace.

    02/06/2021

    Read more...

More recent...

Older content...