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 […]

Categories
docker Kubernetes

Kubernetes: Jenkins

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 git clone https://github.com/itsmetommy/kubernetes-jenkins.git Create kubectl apply -f . service/jenkins-master created statefulset.apps/jenkins-master created View Method 1 It should be the first URL. minikube -n itsmetommy service jenkins-master –url http://192.168.99.100:31147 http://192.168.99.100:30011 Method […]

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: Horizontal Pod Autoscaler using Minikube

Clone git repository https://github.com/itsmetommy/kubernetes-hpa-example-minikube Enable heapster & metrics-server Heapster is resource usage analysis and monitoring tool which collects compute resource usage. View minikube addons. minikube addons listaddon-manager: enabledcoredns: disableddashboard: enableddefault-storageclass: enabledefk: disabledfreshpod: disabledheapster: enabledingress: disabledkube-dns: enabledmetrics-server: enablednvidia-driver-installer: disablednvidia-gpu-device-plugin: disabledregistry: disabledregistry-creds: disabledstorage-provisioner: enabled Heapster and metrics-server should be enabled by default, but if they are disabled, […]

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 […]