인프런 커뮤니티 질문&답변
kubectl apply -f ~ 했을 시 에러
작성
·
2.1K
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
안녕하세요 강사 최일선입니다.
apply로 생성된 경우에 자동으로 생성되는 주석이 현재 패치를 진행하는 rc에는 없다고 경고를 띄우는 겁니다. 그래서 누락된 데이터가 있어서 패치를 자동으로 하겠다는 의미이니 크게 게의치 않으셔도 됩니다.
감사합니다.





