Skip to content

Instantly share code, notes, and snippets.

Avatar
🎓
Still Learning

Gilang Virga Perdana gilangvperdana

🎓
Still Learning
View GitHub Profile
View sysctl.conf
net.ipv4.ip_nonlocal_bind=1
net.ipv6.ip_nonlocal_bind=1
net.bridge.bridge-nf-call-iptables=1
net.bridge.bridge-nf-call-ip6tables=1
net.ipv4.neigh.default.gc_thresh1=128
net.ipv4.neigh.default.gc_thresh2=28672
net.ipv4.neigh.default.gc_thresh3=32768
net.ipv6.neigh.default.gc_thresh1=128
net.ipv6.neigh.default.gc_thresh2=28672
net.ipv6.neigh.default.gc_thresh3=32768
@gilangvperdana
gilangvperdana / README.md
Last active Nov 14, 2022
Setup RKE Cluster on Ubuntu 20.04LTS
View README.md

Brief

RKE a.k.a Rancher Kubernetes Engine are Kubernetes Deployer by Rancher. Now we will create RKE cluster on Ubuntu 20.04 LTS

Environment

  • 2x Ubuntu 20.04LTS
  • 16GB RAM
  • 50GB Storage
  • 4VCPU
@gilangvperdana
gilangvperdana / README.md
Last active Nov 14, 2022
Kubernetes with KubeSpray on BareMetal Ubuntu Server 20.04 LTS
View README.md

Kubernetes with KubeSpray on BareMetal Ubuntu Server 20.04 LTS

Provisioning Kubernetes Cluster BareMetal with KubeSpray

Environment

2x Ubuntu Server 20.04LTS
@gilangvperdana
gilangvperdana / README.md
Last active Nov 12, 2022
SMTP Client on our Ubuntu Server
View README.md

Goals

  • Can use SMTP platform on our ubuntu server

Install SSMTP

sudo apt-get install ssmtp

Configure Account

@gilangvperdana
gilangvperdana / README.md
Created Nov 12, 2022
Nova Timeout Cause Cinder Very Slow
View README.md

Brief

If you meet a problem when create instance with Volume then Instance created failed, you can use this workaround. The point is just increase timeout of Nova compute service when creating instance to 1h30m or 90minutes.

Env :

  • Kolla Ansible Xena Deplyoment

Execute on all of Compute Node :

nano /etc/kolla/nova-compute/nova.conf
@gilangvperdana
gilangvperdana / README.md Step by step to Monitoring OpenStack Instances with Service Discovery Prometheus and Grafana
View README.md

Monitoring Instances with Prometheus and Grafana

Download Prometheus Server

cd /tmp
wget -c https://github.com/prometheus/prometheus/releases/download/v2.13.1/prometheus-2.13.1.linux-amd64.tar.gz

Extract Prometheus Server

View README.md

Automaticly delete image dangling on Docker Image

  • Create script
nano dockerimageprune.sh
#!/bin/bash

docker image prune -a -f
@gilangvperdana
gilangvperdana / README.md
Created Oct 29, 2022
Alert when Network Floating on Openstack is Unreachable
View README.md

Brief

This script just a simple logic, when vRouter on Openstack not reachable script will execute Network Agent Report to Telegram

Use

  • 172.20.1.230 is your vRouter
  • TELEGRAM_BOT_TOKEN is your
  • CHAT_ID is your Telegram CHAT ID

Create Network Agent Watchers

@gilangvperdana
gilangvperdana / README.md
Last active Oct 26, 2022
Remote Ubuntu Desktop with TightVNC
View README.md

TightVNC

Make your ubuntu server to GUI Based

Installation

sudo apt install xfce4 xfce4-goodies -y 
sudo apt install tightvncserver -y 
vncserver
@gilangvperdana
gilangvperdana / README.md
Created Oct 24, 2022
Convert ISO to QCOW2
View README.md

ISO to QCOW2 Convert

When you run OS with format .iso on baremetal, you must convert it to qcow2 to run on Cloud

Goals

  • Convert from .iso to .qcow2

Convert with Qemu-utils

  • Prepare utils
apt update -y