Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Kafka! 😄

Shawn Seymour devshawn

💻
Kafka! 😄
View GitHub Profile
@devshawn
devshawn / INSTALL_MINIKUBE.MD
Last active Nov 6, 2021
Install Kubernetes on Ubuntu 18.04
View INSTALL_MINIKUBE.MD

Install Kubernetes on Ubuntu 18.04

Quick guide to install Kubernetes via Minikube on Ubuntu 18.04.

1. Install VirtualBox

Install VirtualBox to be used as the hypervisor.

sudo apt-get install -y virtualbox virtualbox-ext-pack
View kafka-gitops-demo.md

Kafka GitOps Demo

A demo with custom ACLs. Ensure you have kafka-gitops installed on your machine.

Setup

First, clone the kafka-gitops repository and start up the docker compose found here. This gives us a principal test to work with and set ACLs on.

Second, set environment variables so kafka-gitops can connect to the cluster:

View docker-compose-kafka-1.yml
version: '3'
services:
zookeeper:
image: zookeeper:3.4.9
hostname: zookeeper
ports:
- "2181:2181"
environment:
ZOO_MY_ID: 1
View docker-compose-kafka-3.yml
version: '3'
services:
zookeeper:
image: zookeeper:3.4.9
hostname: zookeeper
ports:
- "2181:2181"
environment:
ZOO_MY_ID: 1
View gitops-local-cluster.md

Kafka GitOps Local Cluster

  1. Ensure you have docker, docker-compose, and the Kafka CLI tools installed.
  2. Clone the [kafka-gitops][kafka-gitops] repository.
  3. Navigate into the docker folder, e.g. cd ./kafka-gitops/docker.
  4. Start up the Kafka cluster by running docker-compose up -d.
  5. Validate the logs look good by running docker-compose logs.
  6. Create a test topic by running the following:
View docker-compose-zookeeper.yml
version: '3'
services:
zookeeper:
image: zookeeper:3.4.9
hostname: zookeeper
ports:
- "2181:2181"
environment:
ZOO_MY_ID: 1
View keybase.md

Keybase proof

I hereby claim:

  • I am devshawn on github.
  • I am devshawn (https://keybase.io/devshawn) on keybase.
  • I have a public key ASCtDHwLxWi028RAc_0GqJShBqXtVDLePR7fYlogoRWUFAo

To claim this, I am signing this object: