Check that there is a tagged image in gcr.io for echo-app:v2 Echo-app:v2 is running on the Kubernetes cluster The Kubernetes cluster deployment reports 2 replicas. The application must respond to web requests with V2.0.0
1. 파일 압축 풀기 및 Docker Build
- 압축 풀기
tar -xvzf resources-ehco-web-v2.tar.gz
- PROJECT_ID 환경변수 등록
export PROJECT_ID=$(gcloud info --format='value(config.project)')
- Image 를 Google Container Registry 에 push
2. Version 수정
- echo-web-deployment.yml 파일 수정
아래에 있는 1.0 을 v2 로 변경한다.
- Image push
docker push gcr.io/${PROJECT_ID}/echo-web:v2
그리고 나서 화면에서 Action 에 있는 Rolling update 를 클릭한다.
Rolling Update 에서 image 는 조금전에 push 한 v2 이미지를 사용한다. 그리고 Update 클릭
- Scale 변경
Action 메뉴에서 Scale 을 클릭한후 Replicas 값을 2 로 입력한다.
완료가 되면 위에 보이는 Replicas 정보가 아래와 같이 변경된다.
Deployment Details 화면에 있는 yaml 탭에 가서 파일 내용을 살펴보면 spec.replicas 가 2 로 변경 되어 있는것을 볼 수 있다.
An application image with a v1 tag has been pushed to the gcr.io repository A new Kubernetes cluster exists (zone: us-central1-a) Check that an application has been deployed to the cluster Test that a service exists that responds to requests like Echo-app
A new non-default VPC has been created The new VPC contains a new non-default subnet within it A firewall rule exists that allows TCP port 3389 traffic ( for RDP ) A Windows compute instance called vm-bastionhost exists that has a public ip-address to which the TCP port 3389 firewall rule applies. A Windows compute instance called vm-securehost exists that does not have a public ip-address The vm-securehost is running Microsoft IIS web server software.