• Kubernetes: Pod Security

    4 min read

    kubernetes security Pod Security Standards namespace

    Security is one of the key concerns when running workloads on Kubernetes. To help teams safeguard their cluster environments, Kubernetes offers Pod Security Standards (PSS). These standards define how to enforce security controls for your pod workloads.

    02/09/2024

    Read more...
  • Kubernetes: Tunneling through a Pod with socat

    2 min read

    kubernetes Pod tunneling socat port-forward

    When you need to connect to some service as if you were in the same network as the Kubernetes cluster, you can use a Pod with socat to create a tunnel to the service.

    28/08/2024

    Read more...
  • Kubernetes: Configuring Topology Spread Constraints to tune Pod scheduling

    2 min read

    kubernetes pod affinity Topology Spread Constraints

    Ensuring high availability and fault tolerance in a Kubernetes cluster is a complex task: One important feature that allows us to addresses this challenge is Topology Spread Constraints.

    10/07/2023

    Read more...
  • Set the default container for kubectl

    2 min read

    kubernetes Pod default container kubectl

    One of the many improvements we get in Kubernetes 1.27 is the ability to set what's the default container:

    apiVersion: v1
    kind: Pod
    metadata:
      name: multi-container-pod
    spec:
      containers:
      - image: alpine:latest
        name: one
        command:
        - sh
        - -c
        - 'while true; do echo one; sleep 1m; done'
      - image: alpine:latest
        name: two
        command:
        - sh
        - -c
        - 'while true; do echo two; sleep 2m; done'
      - image: alpine:latest
        name: three
        command:
        - sh
        - -c
        - 'while true; do echo tree; sleep 3m; done'
    

    01/06/2023

    Read more...
  • Kubernetes: Pod failinig with: exec user process caused "exec format error"

    2 min read

    kubernetes exec format error pod

    A Pod can fail to run with the following error:

    standard_init_linux.go:178: exec user process caused "exec format error"
    

    24/11/2022

    Read more...

Older content...

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