Categories
docker Kubernetes

Kubernetes: Kompose

Kompose is a conversion tool for Docker Compose to container orchestrators such as Kubernetes (or OpenShift). In this example, I’ll be using a Mac along with Minikube. I’ll be exposing a NodePort in order to view the services within a browser. http://kompose.io/ https://github.com/kubernetes/kompose/releases Install macOS: Homebrew brew install kompose Create docker-comose.yaml vi docker-compose.yamlversion: ‘3’services: httpd: […]

Categories
docker Kubernetes Linux

Create a Kubernetes Cluster using kubeadm on CentOS 7

Requirements I’m writing the requirements here, but will go through all the steps below. https://kubernetes.io/docs/setup/independent/install-kubeadm/ Operating System: CentOS 7 2 GB or more of RAM per machine (any less will leave little room for your apps) 2 CPUs or more Full network connectivity between all machines in the cluster (public or private network is fine) […]

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

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