Categories
gcp

Google Cloud SQL database exports using Cloud Scheduler

This is going to be a quick and to the point blog. As many of you know (if you’re here at this point, I know you know), Google Cloud SQL backups are directly linked to the instance itself. WHAT!? That means if the instance is deleted, so are your backups. As a DevOps engineer, this […]

Categories
gcp Kubernetes

Install Spinnaker in GKE using Halyard (GCE) w/ a Persistent Disk

Create Halyard Instance w/ Persistent Disk Click CREATE INSTANCE. Important: Make sure to create your instance in the same network/zone as your Kubernetes cluster. Input Name, Region, Zone and Machine type. Select Ubuntu 18.04 LTS Minimal boot disk. Click Management, security, disks, networking, sole tenancy. Select the Disks tab. Under Additional disks, click the + […]

Categories
docker gcp Kubernetes Linux

Install Minikube on GCP CentosOS 7

Enable nested virtualization on an instance https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances Create a boot disk. gcloud compute disks create disk1 –image-project centos-cloud –image-family centos-7 –zone us-central1-a Create image with License. Note: This may take a minute. gcloud compute images create nested-vm-image –source-disk=disk1 –source-disk-zone=us-central1-a –licenses=https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx Delete source disk, as it is no longer needed. gcloud compute disks delete disk1 –zone […]

Categories
Kubernetes

Kubernetes: Automated DNS with External-DNS on GKE

Updated: 2020-06-17 I’ll be using a helm chart to install external-dns on my Kubernetes GKE cluster. https://github.com/bitnami/charts/tree/master/bitnami/external-dns Create zone https://cloud.google.com/dns/docs/quickstart Create GCP service account Create a GCP service account to enable an account to edit Cloud DNS. export PROJECT_NAME=[YOUR_PROJECT_NAME] # create service account gcloud iam service-accounts create k8s-external-dns \ –display-name=”Service Account to support ACME DNS-01 […]

Categories
gcp

Managing Multiple Accounts in GCP

Add an account. 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 account. gcloud auth list Credentialed Accounts ACTIVE ACCOUNT user1@domain1.com […]