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: kafka-zookeeper on GKE (Google Kubernetes Engine)

Goal: Create a zookeeper and kafka cluster, add brokers, remove brokers, clean up. If you wish to use your own namespace for this installation, be sure to replace itsmetommy with your own. Create namespace kubectl create ns itsmetommy Clone git repository https://github.com/itsmetommy/kubernetes-kafka-zookeeper Create kubectl apply -f . Example kubectl apply -f . service “kafka-svc” created poddisruptionbudget.policy “kafka-pdb” created […]

Categories
docker Kubernetes

Kubernetes: redis-cluster on GKE (Google Kubernetes Engine)

My goal was to create a redis-cluster with one command. I was able to accomplish this by using a kubernetes job. It wasn’t the ideal solution due to all the additional Terminated: Error pods it leaves behind, but it is however a solution. There are two things you need to pay attention to. namespace: itsmetommy […]

Categories
docker Kubernetes

Kubernetes: redis-master on GKE (Google Kubernetes Engine)

If you wish to use your own namespace for this installation, be sure to replace itsmetommy with your own. Create namespace kubectl create ns itsmetommy This will create a stateful redis-master with a persistent drive on GKE (no slaves or sentinels). Clone git repository https://github.com/itsmetommy/kubernetes-redis-master Create kubectl -n itsmetommy apply -f . Example kubectl -n itsmetommy apply -f . […]