Udemy Labs - Certified Kubernetes Application Developer - PODS 오답노트

hyereen·2025년 1월 16일

Kubernetes

목록 보기
1/53

2
pod 생성할때는 kubectl run pod
create는 안된다

9

Events:
  Type     Reason     Age                  From               Message
  ----     ------     ----                 ----               -------
  Normal   Scheduled  10m                  default-scheduler  Successfully assigned default/webapp to controlplane
  Normal   Pulling    10m                  kubelet            Pulling image "nginx"
  Normal   Pulled     10m                  kubelet            Successfully pulled image "nginx" in 157ms (157ms including waiting). Image size: 72080558 bytes.
  Normal   Created    10m                  kubelet            Created container nginx
  Normal   Started    10m                  kubelet            Started container nginx
  Normal   Pulling    10m (x3 over 10m)    kubelet            Pulling image "agentx"
  Warning  Failed     10m (x3 over 10m)    kubelet            Failed to pull image "agentx": failed to pull and unpack image "docker.io/library/agentx:latest": failed to resolve reference "docker.io/library/agentx:latest": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
  Warning  Failed     10m (x3 over 10m)    kubelet            Error: ErrImagePull
  Warning  Failed     9m33s (x6 over 10m)  kubelet            Error: ImagePullBackOff
  Normal   BackOff    51s (x43 over 10m)   kubelet            Back-off pulling image "agentx"

권한이 없는거라고 생각해서 communicate가 안되는거라고 생각했는데
해당 이미지가 도커 허브에 없는게 답이라고 함

12

문제를 잘 읽자...

kubectl run redis --image=redis123 --dry-run=client -o yaml > redis-definition.yaml

0개의 댓글