skip to Main Content

For EKS internal images including coredns, kubeproxy EKS uses ECR
but what about app images, if it is not explicitly defined on deployment file, what is default source for EKS to pull images from?
I.e. below is nginx deployment, and no explicit registry defined. Where does nginx image come from for this deployment?

apiVersion: apps/v1 
kind: Deployment
metadata:
  name: nginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
        version: "1.20"
    spec:
      containers:
      - name: nginx
        image: nginx:1.20

2

Answers


  1. In your example the nginx image would be pulled from Docker Hub.

    Login or Signup to reply.
  2. If you don’t specify a registry hostname, Kubernetes assumes that you mean the Docker public registry.

    Source: https://kubernetes.io/docs/concepts/containers/images/#image-names

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search