Deploying kubernetes dashboard

Preparation 1. Deploy metrics server First, we need to deploy metrics server before deploying kubernetes dashboard 1 kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml if you have a problem that metrics-server’s pod not running, probably because tls issue, so add --kubelet-insecure-tls on args section of deployment, then rollout restart it. Kubernetes dashboard 2. Deploy kubernetes dashboard 1 kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml 3. Make user credential Service account 1 2 3 4 5 6 7 kubectl apply -f - << EOF apiVersion: v1 kind: ServiceAccount metadata: name: admin-user namespace: kubernetes-dashboard EOF Cluster Role Binding 1 2 3 4 5 6 7 8 9 10 11 12 13 14 kubectl apply -f - << EOF apiVersion: rbac....

January 15, 2024 · 1 min · 182 words · Luqinthar Sudarsono

Simple VM utilization monitoring with Node Exporter and Prometheus

A simple way to keep an eye on your VMs is by using Node Exporter, and Prometheus. These tools are free and open-source. Node Exporter as an agent works inside your VM, collecting data like CPU usage, memory, disk, and network then sending those metrics to Prometheus. Prometheus as datasource, collecting every metrics from every agent store and keep them within range of time that has been set. 1. Setup node exporter Make user for node exporter systemd service...

January 11, 2024 · 4 min · 843 words · Luqinthar Sudarsono

Setup ubuntu local repository with apt-mirror

So, the repo that we will mirror is the whole focal repository from the official ubuntu Preparation Important: Make sure you have external disk with size minimum 500GB for the package 1. Install apt-mirror 1 2 3 4 # make sure you have an internet connection sudo apt update sudo apt install apt-mirror 2. Setup mirror.list 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 cd /etc/apt/ sudo nano mirror....

January 9, 2024 · 3 min · 453 words · Luqinthar Sudarsono

Squid Proxy on Alpine

So this time i’ll make proxy with squid on alpine container with docker, just allowing http and https port and certain site (.btech.id and youtube.com). Let’s start! 1. Pull the base image of alpine 1 docker pull alpine 2. Create Dockerfile 1 2 3 4 5 6 7 8 9 10 FROM alpine RUN apk update RUN apk add squid openrc curl wget busybox nano COPY squid.conf /etc/squid/squid.conf COPY list....

January 9, 2024 · 2 min · 250 words · Luqinthar Sudarsono

Wordpress kubernetes with external database and bind9

Setup Database server 1. Install mariadb or mysql 1 apt install mysql-server -y 2. Configure mysql-server to bind 0.0.0.0 1 vim /etc/mysql/mysql.conf.d/mysqld.cnf => bind-address to 0.0.0.0 3. Create new user for wordpress 1 2 3 mysql -u root CREATE USER 'wp-user'@'%' IDENTIFIED BY '<YOUR_PASSWORD>'; GRANT ALL PRIVILEGES ON *.* TO 'wp-user'@'%' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON *.* TO 'wp-user'@'%'; Setup bind9 4. Install bind9 1 apt install bind9 5....

January 9, 2024 · 3 min · 523 words · Luqinthar Sudarsono