Skip to content

adonis0147/helm-zookeeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helm-zookeeper

Usage

macOS

Prerequisites

brew install qemu socket_vmnet helm

Setup

# Start minikube
minikube start --driver qemu --network socket_vmnet --cpus "$(($(nproc) / 2))" --memory "$(nproc)g"

# Build the image and load it to minikube
docker/build_image.sh

helm install --name-template=zookeeper .

Access Services

# Set route up
sudo route -n delete 10.244.0.0/16
sudo route -n add 10.244.0.0/16 "$(minikube ip)"

# Don't kill this process
minikube tunnel

Test

ping zk-0.zookeeper.default.svc.cluster.local

Linux

Prerequisites

Setup

# Start minikube
minikube start --driver docker --cpus "$(($(nproc) / 2))" --memory "$(nproc)g"

# Build the image and load it to minikube
docker/build_image.sh

helm install --name-template=hadoop .

Access Services

# Set DNS up
interface="$(netstat -nr | grep "$(minikube ip | sed -n 's/\(.*\)\..*/\1.0/p')" |
    awk '{print $NF}')"
sudo resolvectl dns "${interface}" \
    "$(kubectl get -n kube-system service --no-headers | awk '{print $3}')"
sudo resolvectl domain "${interface}" cluster.local

# Set route up
sudo route del -net 10.244.0.0 netmask 255.255.0.0
sudo route add -net 10.244.0.0 netmask 255.255.0.0 gw "$(minikube ip)"

# Don't kill this process
minikube tunnel

Test

ping zk-0.zookeeper.default.svc.cluster.local

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published