• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    미해결

kubectl apply -f ~ 했을 시 에러

20.12.21 10:26 작성 조회수 1.48k

0

prouser@master:~/yaml$ k apply -f http-go-rc-v2.yaml 
Warning: resource replicationcontrollers/http-go is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
replicationcontroller/http-go configured

이런식으로 Warning 이 발생했는데, 어떤 것 때문에 이런 Warning이 발생하나요?

답변 1

답변을 작성해보세요.

0

gasbugs님의 프로필

gasbugs

2020.12.21

안녕하세요 강사 최일선입니다.

apply로 생성된 경우에 자동으로 생성되는 주석이 현재 패치를 진행하는 rc에는 없다고 경고를 띄우는 겁니다.  그래서 누락된 데이터가 있어서 패치를 자동으로 하겠다는 의미이니 크게 게의치 않으셔도 됩니다.

감사합니다.