Categories
Kubernetes

Kubernetes: WordPress on GKE using Cloud SQL

Create MySQL database Click CREATE INSTANCE. Choose MySQL. Choose an Instance ID and Root password. Click Create. Click on the USERS tab. Click Create user account. Insert wordpress as the User name and create a Password. Click CREATE. Feel free to use openssl to create a password. openssl rand -base64 32ux9ftpLM6YSB8gnCB+LOomCqp+gPlnk63JJEzCEp1Uo= Click the DATABASES tab. […]

Categories
docker Kubernetes

Kubernetes: Horizontal Pod Autoscaler using GKE

Clone git repository https://github.com/itsmetommy/kubernetes-hpa-example-gke Create namespace kubectl create -n itsmetommy Create kubectl create -f . Get kubectl -n itsmetommy get all -l app=hpa-exampleNAME READY STATUS RESTARTS AGEpod/hpa-example-6cd7bf9947-q62vh 1/1 Running 0 5mNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGEservice/hpa-example LoadBalancer 10.43.29.175 35.230.80.192 80:30636/TCP 5mNAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGEdeployment.apps/hpa-example 1 1 1 1 5mNAME DESIRED CURRENT READY AGEreplicaset.apps/hpa-example-6cd7bf9947 […]

Categories
docker Kubernetes

Kubernetes: Cluster Backup with Heptio Ark on GCP

Heptio Ark is a utility for managing disaster recovery, specifically for your Kubernetes cluster resources and persistent volumes. https://www.heptio.com I will be showing you how to install Ark Client and Server on a Mac. Then I’ll show you how to install Ark on GCP and configure a backup and restore. Install Ark Client brew install […]