-
-
Save rupinus85/1481a86705b05ffa88584af75477e14a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################ | |
# 사용자가 작성한 yaml의 설정을 이용하여 replace 할 경우, 자동 부여되는 default 설정 부분은 일부 변경됨(uid 같이 K8S에서 부여한 식별코드 등) | |
$ kubectl replace --force -f gs-spring-boot-docker-deployment.yaml | |
############################ | |
# 전체 설정(사용자가 작성한 yaml의 설정과 자동 부여되는 default 설정)을 이용하여 replace 할 경우 (= 설정을 그대로 유지한 상태로 Pod만 재생성) | |
$ kubectl get deployment gs-spring-boot-docker-deployment -o yaml | kubectl replace --force -f - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment