• Creating a fake kubeconfig using kubectl

    1 min read

    If we allow a pod to interact with the cluster's API, as long as we have kubectl installed on the container, we don't really need to worry about the kubeconfig file. Although some applications might complain is they don't find it, so we might need to create a fake kubeconfig just to make them happy

    20/10/2021

    Read more...
  • Update local kubeconfig to connect to an AWS EKS cluster

    2 min read

    If we want to connect to an AWS EKS cluster using kubectl we need to update our kubeconfig (~/.kube/config) To do se we can use awscli

    04/10/2021

    Read more...
  • What's the meaning of the sections of a kubeconfig file?

    2 min read

    kubernetes kubeconfig format

    The configuration file kubeconfig (~/.kube/config) is used to get access to a Kubernetes cluster. It looks like a Kubernetes object that defines the cluster, the user and the context to use:

    apiVersion: v1
    kind: Config
    preferences: {}
    
    clusters:
    (...)
    
    users:
    (...)
    
    contexts:
    (...)
    

    Let's take a minikube kubeconfig as an example

    29/06/2021

    Read more...

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