CKA

Declarative commands

백셀건전지 2021. 9. 2. 17:59
  • kubectl apply가 대표적인 declarative commands
  • kubectl apply -f pod.yaml 실행하면 cluster 내부 메모리에 live object configuration에는 status라는 정보가 추가됨
  • Last applied configuration은 local file을 json 형태로 변환하여 저장하고 있음. 이전의 리소스 정보와 현재의 정보를 비교하여 어느 부분이 삭제되었는지 확인하는 용도
  • Last applied configuration은 Live object configuration 의 metadata.annotation.kubectl.kubernetes.io/last-applied-configuration에 저장되어 있음.
  • imperative commands는 last applied configuration 을 수정하지 않음.

'CKA' 카테고리의 다른 글

Labels & Selectors  (0) 2021.09.05
Manual Scheduling  (0) 2021.09.03
Imperative commands  (0) 2021.09.02
Services  (0) 2021.09.02
Namespace  (0) 2021.09.01