Skip to content

A self-hosted dev/test kubernetes environment with logging and monitoring enabled

License

Notifications You must be signed in to change notification settings

faiaz-halim/local-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup your local dev/test kubernetes cluster in 5 minutes!!*

*The above claim depends on your internet and processing power. ^-^

This repository exists only to get rid of the phrase, "But it works in my pc!" The cluster bootstrap mechanism currently supports debian based releases preferably Ubuntu. Windows and Mac docker desktop based installation is under consideration.

Components

Tool Version
Docker 25.0.3
Kubectl 1.29.2
KinD 0.21.0
Helm 3.14.2
Helmfile 0.162.0
Calico 3.25.0
Nfs-subdir-external-provisioner 4.0.18
Elasticsearch 8.12.2
Kibana 8.12.1
Fluent Bit 2.2.2
Prometheus 2.49.1
Grafana 10.3.3
Metric Server 0.7.0

Installation

Prerequisite

Make needs to be installed

sudo apt update
sudo apt install make

Fresh Install

Running this for the first time and don't have docker, kubectl, kind, helm, helmfile installed?

make first

General Install

Install the cluster with all components if you have docker, kubectl, kind, helm, helmfile installed already.

make up

Uninstall

Destroy the cluster and nfs configuration. This will not delete nfs shared directory contents.

make down

Important: Make sure to update server in nfs.yaml under dev/values directory. If you are not sure, reinstall the cluster with make down up

Install Applications

Optional: Point to this cluster's kubeconfig

export KUBECONFIG=~/.kube/config

If the applications are already available as a helm chart, add them in helmfile.yaml and run,

make apply

Alternatively apply application manifests with kubectl,

kubectl apply -f <your_yaml_manifest_file_or_directory>

Dashboards

Info: Port 30000-30020 and 32767 are already open. You can open more in cluster/kind-config.yaml as well.

Kibana

Get the elastic user password to access Kibana http://localhost:30000/

kubectl get secrets/elasticsearch-kibana -n platform --template='{{ index .data "kibana-password" | base64decode}}'

Grafana

Get the admin user password to access Grafana http://localhost:30001/

kubectl get secrets/prometheus-grafana -n platform --template='{{index .data "admin-password" | base64decode}}'

Prometheus

Prometheus dashboard at http://localhost:30002/

Alertmanager

Alertmanager dashboard at http://localhost:30003/

About

A self-hosted dev/test kubernetes environment with logging and monitoring enabled

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published