pod restart with `imagePullPolicy: Always` and docker hub rate limits

by andy01
GNU/Linux ◆ xterm-256color ◆ bash 612 views

HEAD requests are used for obtaining the image reference and they aren’t triggering the Docker Hub rate limiter upon Pod restart with the imagePullPolicy: Always, as long as image reference haven’t been updated on the remote.

https://about.gitlab.com/blog/2020/11/18/docker-hub-rate-limit-monitoring/
https://gitlab.com/gitlab-de/check-docker-hub-limit

  • nginx.yaml
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: nginx-deployment
    spec:
      selector:
        matchLabels:
          app: nginx
      replicas: 1
      template:
        metadata:
          labels:
            app: nginx
        spec:
          containers:
          - name: nginx
            image: nginx:latest
            imagePullPolicy: Always
            ports:
            - containerPort: 80