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