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
docker Kubernetes

Kubernetes: Weave Scope with Minikube

Weave Scope is a visualization and monitoring tool for Docker and Kubernetes. It provides a top down view into your app as well as your entire infrastructure, and allows you to diagnose any problems with your distributed containerized app, in real time, as it is being deployed to a cloud provider. https://www.weave.works/ https://www.weave.works/blog/weave-net-kubernetes-integration/ Create kubectl […]

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-master with Minikube

This will create a redis-master using Minikube (no slaves or sentinels). 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-redis-master Create kubectl -n itsmetommy apply -f . Example kubectl -n itsmetommy apply -f . service “redis-primary” created statefulset.apps […]

Categories
docker Kubernetes

Kubernetes: Learning with Minikube

If you haven’t already, check out my previous post Kubernetes: Getting Started with Minikube. helloworld — pod, service Create a folder and cd into it mkdir helloworld-example-01; cd helloworld-example-01 Create pod.yaml Creates 1 pod vi pod.yaml — apiVersion: v1 kind: Pod metadata: name: itsmetommy labels: app: helloworld spec: containers: – name: itsmetommy-httpd image: httpd ports: […]