Kubernetes

Kubernetes StatefulSet with ZooKeeper

Kubernetes StatefulSet with ZooKeeper as an example

Background

We were having a hard time deploying Kafka to Kubernetes. It worked fine when we were doing development and integration. We started with Minikube for local development.

If you are not interested in the background and want to skip to the meat of the matter go ahead and skip ahead.

We created a MicroSerivce that uses Kafka in Spring Boot. We ran Kafka in minikube with Helm 2. By the way, Minikube is a mini Kubernetes that easily runs on macOS, Linux, and Windows. Minikube is great for local application development and supports a lot of Kubernetes. It is great for local testing and we also used it for integration testing.

Continue reading

kubectl cheatsheet (OSX/Mac)

These k8s/helm/OSX install notes are reproduced from Rick Hightower profile with permission of Rick Hightower.

Shell completion is a must while you are learning Kubernetes.

kubectl: shell completion

Shell Autocompletion set up guide

In 2019, Apple announced that macOS Catalina would now use Zsh (Z Shell) as the default shell, replacing bash. The zsh extends Bourne shell has improvements with features of Bash, ksh, and tcsh.

Add autoload -Uz compinit; compinit; source <(kubectl completion zsh) to .zshrc if you are using bash still follow the instructions at shell Autocompletion set up guide just use the bash tab on that web page.

Continue reading

Set up Kubernetes on Mac: Minikube, Helm, etc.

Set up docker, k8s and helm on a Mac Book Pro (OSX)

These k8s/helm/OSX install notes are reproduced from Rick Hightower with permission of Rick Hightower.

Install docker

 brew install docker

Install docker desktop for Mac.

Minikube

Use the version of k8s that the stable version of helm can use.

Install minikube

brew cask install minikube

Install hyperkit

brew install hyperkit

Run minikube that is compatible with the last stable helm relesae running on hyperkit

minikube start --kubernetes-version v1.15.4 --vm-driver=hyperkit --cpus=4 --disk-size='100000mb' --memory='6000mb'
  • minikube
  • start start mini kube
  • Use k8s compatible with helm 2 --kubernetes-version v1.15.4
  • Use the hyper kit driver --vm-driver=hyperkit
  • Use 4 of 8 virtual cores (MacBook Pro comes with 16 virtual cores and 8 cores) --cpus=4
  • Allocate 10GB of disk space --disk-size='100000mb' (Might need more
  • Use 6 GB of memory --memory='6000mb'

Helm Install

Install helm or just follow this guide on Helm install on a Mac.

Continue reading

                                                                           

Apache Spark Training
Kafka Tutorial
Akka Consulting
Cassandra Training
AWS Cassandra Database Support
Kafka Support Pricing
Cassandra Database Support Pricing
Non-stop Cassandra
Watchdog
Advantages of using Cloudurable™
Cassandra Consulting
Cloudurable™| Guide to AWS Cassandra Deploy
Cloudurable™| AWS Cassandra Guidelines and Notes
Free guide to deploying Cassandra on AWS
Kafka Training
Kafka Consulting
DynamoDB Training
DynamoDB Consulting
Kinesis Training
Kinesis Consulting
Kafka Tutorial PDF
Kubernetes Security Training
Redis Consulting
Redis Training
ElasticSearch / ELK Consulting
ElasticSearch Training
InfluxDB/TICK Training TICK Consulting