De Wiki inetshell
Saltar a: navegación, buscar

Listar imagenes[editar]

https://stackoverflow.com/questions/54778825/where-would-i-get-a-listing-of-the-actual-compute-engine-image-names

gcloud compute images list

Instalar en CentOS[editar]

https://cloud.google.com/sdk/downloads#yum

Iniciar por SSH[editar]

gcloud compute ssh [email protected] --project=project-name

Desactivar google startup-scripts al arranque[editar]

CentOS 7[editar]

systemctl disable google-startup-scripts.service
systemctl disable google-shutdown-scripts.service


Google Container Registry[editar]

Enable[editar]

https://stackoverflow.com/tags/gcloud/hot?filter=year

 gcloud services enable containerregistry.googleapis.com 

https://medium.com/google-cloud/google-container-registry-4aca1fc6cf74

https://cloud.google.com/sdk/gcloud/reference/container/images/delete

Google Cloud DNS[editar]

Exportar zona[editar]

https://cloud.google.com/sdk/gcloud/reference/dns/record-sets/export

gcloud dns record-sets export records.yaml --zone zone-name --project project-id

Importar zona[editar]

https://cloud.google.com/sdk/gcloud/reference/dns/record-sets/import

gcloud dns record-sets import records.yaml --zone zone-name --project project-id

Crear zona[editar]

1. on project, create dns zone:
gcloud beta dns --project=example-id managed-zones create example-com --description="hello world" --dns-name=zone.example-com

2. get NS records:
gcloud dns record-sets list --zone=example-com --name=zone.example-com. --type=NS --format="table[no-heading](rrdatas)"

3. add DNS records on hosting zone
gcloud dns --project=host-example-com record-sets transaction start --zone=example-com
gcloud dns --project=host-example-com record-sets transaction add ns-cloud-d1.googledomains.com. ns-cloud-d2.googledomains.com. ns-cloud-d3.googledomains.com. ns-cloud-d4.googledomains.com. --name=zone.example.com. --ttl=60 --type=NS --zone=example-com
gcloud dns --project=host-example-com record-sets transaction execute --zone=example-com