Categories
Kubernetes

Kubernetes: Can you keep a secret?

Can you keep a Secret? Kubernetes can. https://kubernetes.io/docs/concepts/configuration/secret/ There are a few ways to create secrets within Kubernetes. What we will learn Default Service Account and Secret Create from a literal command Create from a file Create from a folder Create from a YAML file Copy a secret from one namespace to another Encoding and […]

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

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