• Kubernetes: Image pull policies

    2 min read

    imagePullPolicy pod kubernetes

    On Kubernetes we can configure using the Pod manifest under which conditions we want to query the container registry to pull images by using the imagePullPolicy setting. We can configure the it on several objects like Deployment, StatefulSet, Pod, Job... In fact, we can set it on any object that includes a Pod template

    apiVersion: v1
    kind: Pod
    metadata:
      name: test-pod
      namespace: demo
    spec:
      containers:
      - image: alpine
        imagePullPolicy: IfNotPresent
    (...)
    

    05/05/2021

    Read more...

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