Opiniones sobre Crea e implementa una imagen de Docker para un clúster de Kubernetes: lab de desafío

33731 opiniones

prince k. · Se revisó hace 10 días

Nidhi T. · Se revisó hace 10 días

Ketan G. · Se revisó hace 10 días

# 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. · Se revisó hace 10 días

Rajdeep S. · Se revisó hace 11 días

Jerzayl B. · Se revisó hace 11 días

Oleg N. · Se revisó hace 11 días

AMIT K. · Se revisó hace 11 días

Sayan B. · Se revisó hace 11 días

siddhi k. · Se revisó hace 11 días

Mayuresh K. · Se revisó hace 11 días

Kundan P. · Se revisó hace 11 días

Shoyeb Mahmud G. · Se revisó hace 11 días

Shubham G. · Se revisó hace 11 días

Subha P. · Se revisó hace 11 días

Dileep B. · Se revisó hace 11 días

Very Good

Vempada L. · Se revisó hace 11 días

Abhinandan P. · Se revisó hace 11 días

Sachin P. · Se revisó hace 11 días

Mariya K. · Se revisó hace 11 días

shailesh b. · Se revisó hace 11 días

Mudra U. · Se revisó hace 11 días

Anish B. · Se revisó hace 11 días

Aravind T. · Se revisó hace 11 días

Pragyan S. · Se revisó hace 11 días

No garantizamos que las opiniones publicadas provengan de consumidores que hayan comprado o utilizado los productos. Google no verifica las opiniones.