Upload a file: gcloud compute scp /home/paede/Downloads/drecs_2020-12-02.sql emarketing:~
gcloud compute instances create gcelab2 –machine-type n1-standard-2 –zone us-central1-c
gcloud compute ssh gcelab2 –zone us-central1-c
gcloud compute project-info describe –project <your_project_ID>
gcloud compute instances create –help
gcloud components list
gcloud beta interactive
gcloud container clusters create [CLUSTER-NAME]
gcloud container clusters get-credentials [CLUSTER-NAME]
kubectl create deployment hello-server –image=gcr.io/google-samples/hello-app:1.0
kubectl expose deployment hello-server –type=LoadBalancer –port 8080
kubectl get service
gcloud container clusters delete [CLUSTER-NAME]
cat << EOF > startup.sh #! /bin/bash apt-get update apt-get install -y nginx service nginx start sed -i — ‘s/nginx/Google Cloud Platform – ‘”\$HOSTNAME”‘/’ /var/www/html/index.nginx-debian.html EOF
gcloud compute instance-templates create nginx-template \ –metadata-from-file startup-script=startup.sh
gcloud compute target-pools create nginx-pool
gcloud compute instance-groups managed create nginx-group \ –base-instance-name nginx \ –size 2 \ –template nginx-template \ –target-pool nginx-pool
gcloud compute instances list
gcloud compute firewall-rules create www-firewall –allow tcp:80
gcloud compute forwarding-rules create nginx-lb \ –region us-central1 \ –ports=80 \ –target-pool nginx-pool
gcloud compute forwarding-rules list
gcloud compute http-health-checks create http-basic-check
gcloud compute instance-groups managed \ set-named-ports nginx-group \ –named-ports http:80
gcloud compute backend-services create nginx-backend \ –protocol HTTP –http-health-checks http-basic-check –global
gcloud compute url-maps create web-map \ –default-service nginx-backend
gsutil mb gs://<BUCKET_NAME>
echo INFRACLASS_PROJECT_ID=$INFRACLASS_PROJECT_ID >> ~/infraclass/config
source infraclass/config echo $INFRACLASS_PROJECT_ID
export Project1=sdjfalkjdfasljfaö
echo $Project1