Membangun dan Men-deploy Image Docker ke Cluster Kubernetes: Challenge Lab Ulasan
33370 ulasan
ROHAN J. · Diulas 5 hari lalu
Mohanasundaram M. · Diulas 5 hari lalu
Gyan Prakash S. · Diulas 5 hari lalu
lalit S. · Diulas 5 hari lalu
Partha Pradeep N. · Diulas 5 hari lalu
Devanshu B. · Diulas 5 hari lalu
Vashu G. · Diulas 5 hari lalu
Razaul B. · Diulas 5 hari lalu
Sanjoy P. · Diulas 5 hari lalu
Lee D. · Diulas 5 hari lalu
Vidya S. · Diulas 5 hari lalu
Devi Sharan G. · Diulas 5 hari lalu
Apurba M. · Diulas 5 hari lalu
Meet J. · Diulas 5 hari lalu
prince k. · Diulas 5 hari lalu
Nidhi T. · Diulas 5 hari lalu
Ketan G. · Diulas 5 hari lalu
# Extract region from zone (e.g., us-central1-a → us-central1) REGION="${ZONE%-*}" # Create GKE cluster gcloud beta container clusters create "echo-cluster" --project "$DEVSHELL_PROJECT_ID" --zone "$ZONE" --no-enable-basic-auth --cluster-version "latest" --release-channel "regular" --machine-type "e2-standard-2" --image-type "COS_CONTAINERD" --disk-type "pd-balanced" --disk-size "100" --metadata disable-legacy-endpoints=true --scopes "https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","https://www.googleapis.com/auth/trace.append" --num-nodes "3" --logging=SYSTEM,WORKLOAD --monitoring=SYSTEM --enable-ip-alias --network "projects/$DEVSHELL_PROJECT_ID/global/networks/default" --subnetwork "projects/$DEVSHELL_PROJECT_ID/regions/$REGION/subnetworks/default" --no-enable-intra-node-visibility --default-max-pods-per-node "110" --security-posture=standard --workload-vulnerability-scanning=disabled --no-enable-master-authorized-networks --addons HorizontalPodAutoscaling,HttpLoadBalancing,GcePersistentDiskCsiDriver --enable-autoupgrade --enable-autorepair --max-surge-upgrade 1 --max-unavailable-upgrade 0 --enable-managed-prometheus --enable-shielded-nodes --node-locations "$ZONE" # Set project ID export PROJECT_ID=$(gcloud info --format='value(config.project)') # Configure Docker auth gcloud auth configure-docker # Download and extract application gsutil cp gs://${PROJECT_ID}/echo-web.tar.gz . tar -xvzf echo-web.tar.gz cd echo-web # Build Docker image docker build -t echo-app:v1 . # Tag and push image docker tag echo-app:v1 gcr.io/${PROJECT_ID}/echo-app:v1 docker push gcr.io/${PROJECT_ID}/echo-app:v1 # Connect to cluster gcloud container clusters get-credentials echo-cluster --zone=$ZONE # Deploy application kubectl create deployment echo-app --image=gcr.io/${PROJECT_ID}/echo-app:v1 # Expose service kubectl expose deployment echo-app --name echo-web --type LoadBalancer --port 80 --target-port 8000 # Get external IP kubectl get service echo-web
Pushkar t. · Diulas 5 hari lalu
Rajdeep S. · Diulas 5 hari lalu
Jerzayl B. · Diulas 5 hari lalu
Oleg N. · Diulas 5 hari lalu
AMIT K. · Diulas 5 hari lalu
Sayan B. · Diulas 5 hari lalu
siddhi k. · Diulas 5 hari lalu
Mayuresh K. · Diulas 5 hari lalu
Kami tidak dapat memastikan bahwa ulasan yang dipublikasikan berasal dari konsumen yang telah membeli atau menggunakan produk terkait. Ulasan tidak diverifikasi oleh Google.