https://rancher.com/ logo
Title
j

jolly-tailor-68729

05/22/2023, 8:42 PM
I'm running a local cluster with k3d and I am having a hard time understanding how my Docker pull rate from an unauthenticated account is being using. I am signed in to Docker Desktop and I have registries with auth setup in my k3d-config.
kind: Simple
apiVersion: <http://k3d.io/v1alpha4|k3d.io/v1alpha4>
metadata:
  name: k3s-default
servers: 1
agents: 3
image: rancher/k3s:v1.24.8-k3s1
...
registries:
  create:
    name: registry.localhost
    hostPort: "8000"
  config: |
    mirrors:
      <http://docker.io|docker.io>:
        endpoint:
        - "<http://host.k3d.internal:6000>"
    configs:
      <http://docker.io|docker.io>:
        auth:
          username: <USER>
          password: <PASSWORD>
I believe I have figured this out. I am required to use a secret with the docker credentials. Then use imagePullSecrets with it.