Example of Kubernetes Environment I Made For My Company

I recently resigned from my company. Before I submit my resignation email, I made a kubernetes environment end-to-end with the help of AI. I literally have so much fun with it. Claude gives very precise guide and information about the requirements I need. It gives information about what specification of my kubernetes environment needs, and made the command lines to be run on the servers.

The kubernetes is on premise, so we have full control of the environment.

What Are The Components?

Kubernetes composed by so many components of apps. Here are the lists of the application I used for my kubernetes.

PurposeAppsSetup Needed?
Server OSUbuntuMinimal, only apt update && apt upgrade and several utility libraries
Kubernetes UIRancherOnly 1 Rancher needed for many clusters
Kubernetes EngineRKE2/K3sNeed to setup once for all nodes
LoadBalancerHAProxySetup once for each clusters
Volume StorageLonghornSetup with Rancher
Image RepositoryHarborSetup on VM, connect via IP or domain
DatabasesPostgreSQL/MySQL/ClickhouseSetup on VM, connect via IP
MonitoringGrafanaSetup once at each cluster
LoggingPrometheus & LokiSetup at each nodes
Language or FrameworksPHP & LaravelYou can use any framework you want

Why Use Those Apps?

The guide was quite straightforward. Those apps was the first recommended apps by Claude. So basically we choose what apps was best for each component.

Rancher

Rancher is a UI-based Kubernetes Management System. We can perform project deployment, scaling, and container resource management through Rancher. It can be used either by UI or YAML format. There are also app extension we can use with Rancher such as Grafana, Prometheus, and Loki for additional metric monitoring, and Longhorn for volume storage.

Harbor

Harbor is used for image repository for container images. Works with docker CLI and desktop, we only need to input credentials and path domain.

HAProxy

HAProxy used as a loadbalancer for incoming and outgoing network for each nodes in a cluster. It displays sophisticated network data, but we only needed for the loadbalancing purposes. We uses loadbalancing metric on another platform.

Longhorn

Longhorn as a volume storage can be maintained with Rancher. It have an app extension which we can manage (add, delete, or restore) volume by UI.

Grafana

Grafana is a powerful monitoring tool. It only needed data source from metrics like Prometheus or Loki, then query it within the Grafana to display great dashboard.

Clickhouse

Clickhouse is a notable mention. It is a good and optimized database for storing big data and doing complex computation.

One comment

Leave a Reply

Your email address will not be published. Required fields are marked *