GCP 실습 QWIKLABS 에러 해결

3 attemps limit

GCP 실습 QWIKLABS 시도는 세번으로 제한되어있다. 왜 세번안에 통과를 못했느냐, Instruction 을 따르지 않을 경우 자동으로 lab이 종료되기도 한다 😥..
→ QWIKLABS 문의를 남기면 support 팀에서 도와줘 실습을 다시할 수 있었다 !

  • Submit a request to Qwiklabs Support

  • Support 팀 답변
    Coursera에 대응이 느리다는 수강생들의 항의글을 많이 있었지만, 나의 경우 하루 정도 뒤에 답변이 바로 왔다.

ML Pipelines on Google Cloud

Continuous Training with TensorFlow, PyTorch, XGBoost, and Scikit Learn Models with Kubeflow and AI Platform Pipelines | Qwiklabs

  • Creating a cluster error
# Instruction code
gcloud container clusters create cluster-1 --zone us-central1-a --cluster-version 1.18.17 --machine-type n1-standard-2 --enable-basic-auth --scopes=https://www.googleapis.com/auth/cloud-platform

WARNING: Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: [https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication](https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication)  
WARNING: Currently VPC-native is the default mode during cluster creation for versions greater than 1.21.0-gke.1500. To create advanced routes based clusters, please pass the `--no-enable-ip-alias` flag  
WARNING: Starting with version 1.18, clusters will have shielded GKE nodes by default.  
WARNING: Your Pod address range (`--cluster-ipv4-cidr`) can accommodate at most 1008 node(s).  
WARNING: Starting with version 1.19, newly created clusters and node-pools will have COS\_CONTAINERD as the default node image when no image type is specified.  
ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=No valid versions with the prefix "1.18.17" found.

Instruction Code 대로 하니 에러가 발생했고 cloud shell 코드를 작성하지 않고 직접 클러스터를 생성하다가 랩이 종료되기도 했다. 다음 코드를 사용하면 Instruction 조건에 맞는 cluster-1을 생성할 수 있다.

  • Solution
gcloud container clusters create cluster-1 --zone us-central1-a --machine-type n1-standard-2 --no-enable-basic-auth --scopes=https://www.googleapis.com/auth/cloud-platform
WARNING: Starting in January 2021, clusters will use the Regular release channel by default when `--cluster-version`, `--release-channel`, `--no-enable-autoupgrade`, and `--no-enable-autorepair` flags are not specified.  
WARNING: Currently VPC-native is the default mode during cluster creation for versions greater than 1.21.0-gke.1500. To create advanced routes based clusters, please pass the `--no-enable-ip-alias` flag  
WARNING: Starting with version 1.18, clusters will have shielded GKE nodes by default.  
WARNING: Your Pod address range (`--cluster-ipv4-cidr`) can accommodate at most 1008 node(s).  
WARNING: Starting with version 1.19, newly created clusters and node-pools will have COS\_CONTAINERD as the default node image when no image type is specified.  
Creating cluster cluster-1 in us-central1-a...done.  
Created \[[https://container.googleapis.com/v1/projects/qwiklabs-gcp-00-15ec888f5060/zones/us-central1-a/clusters/cluster-1\]](https://container.googleapis.com/v1/projects/qwiklabs-gcp-00-15ec888f5060/zones/us-central1-a/clusters/cluster-1%5D).  
To inspect the contents of your cluster, go to: [https://console.cloud.google.com/kubernetes/workload\_/gcloud/us-central1-a/cluster-1?project=qwiklabs-gcp-00-15ec888f5060](https://console.cloud.google.com/kubernetes/workload_/gcloud/us-central1-a/cluster-1?project=qwiklabs-gcp-00-15ec888f5060)  
kubeconfig entry generated for cluster-1.  
NAME: cluster-1  
LOCATION: us-central1-a  
MASTER\_VERSION: 1.21.5-gke.1302  
MASTER\_IP: 34.72.27.231  
MACHINE\_TYPE: n1-standard-2  
NODE\_VERSION: 1.21.5-gke.1302  
NUM\_NODES: 3  
STATUS: RUNNING