Categories
General

Push to Google Cloud Registry

https://cloud.google.com/container-registry/docs/overview https://cloud.google.com/container-registry/docs/pushing-and-pulling Auth gcloud auth logingcloud auth configure-docker Pull # Option 1 – pull from Docker Hub docker pull [USERNAME]/[IMAGE]:[TAG] # Option 2 – pull from GCR docker pull [REPOSITORY_NAME]/[FOLDER]/[IMAGE]:[TAG] Example # Option 1 – pull from Docker Hub docker pull itsmetommy/go-guestbook:latest # Option 2 – pull from GCR docker pull us.gcr.io/[PROJECT_ID]/itsmetommy/go-guestbook:latest Tag Note: Use […]

Categories
General Linux

Auto-Renew Let’s Encrypt Wildcard Certificate using Google Cloud DNS

Let’s go over how to create a Wildcard Certificate that also auto-renews. Wildcards are challenged by DNS-01. This challenge asks you to prove that you control the DNS for your domain name by putting a specific value in a TXT record under that domain name. This requires DNS access, especially when you are automating the […]

Categories
Kubernetes

Kubernetes: Enable Istio on GKE using Terraform

I showed you how to create a GKE cluster with Terraform in a previous post. When I went to enable Istio, it wasn’t as simple as I thought. I ended up having to add an additional google-beta provider, along with having to add this google-beta provider within the google_container_cluster resource. Update gkecluster/provider.tf https://www.terraform.io/docs/providers/google/provider_versions.html You can […]

Categories
Kubernetes

Kubernetes: Create GKE Cluster with Terraform

Install brew install terraform Service Account IAM & admin > Service accounts, and click + CREATE SERVICE ACCOUNT. I gave the role Project > Editor for the simplicity of this demo, but feel free to lock it down. Click CONTINUE. OR if you are only creating a GKE cluster, you can simply assign the roles Kubernetes > Kubernetes […]

Categories
gcp

Managing Multiple Accounts in GCP

Add config. I like to name them based on my project name. gcloud config configurations create [CONFIG_NAME] Example gcloud config configurations create my-account Setup the new configuration. gcloud init List config. gcloud config configurations list NAME IS_ACTIVE ACCOUNT PROJECT DEFAULT_ZONE DEFAULT_REGION default False user1@domain1.com project-1 us-west1-a us-west1 my-account True user2@domain2.com project-2 us-west1-a us-west1 List active […]