This guide provides a step-by-step process to set up a Kubernetes cluster using Cilium as the Container Network Interface (CNI).
- Ubuntu/Debian-based system
- Root or sudo privileges
- Internet connectivity
apt-get update | |
apt-get upgrade | |
apt install -y nginx | |
systemctl enable nginx | |
systemctl start nginx | |
apt-add-repository ppa:ondrej/php -y | |
systemctl enable php7.4-fpm | |
systemclt start php7.4-fpm | |
apt install -y php7.4 php7.4-{cli,gd,curl,mysql,ldap,zip,fileinfo,fpm,xml,mbstring,exif,pspell,imagick,bcmath} | |
apt install mariadb-server mariadb-client |
#!/bin/sh | |
# Should be run on the master | |
MASTER_IP="" | |
MASTER_SSH_PORT="" | |
MASTER_DATABASE="" | |
MASTER_BACKUP_PATH="/" | |
BACKUP_FILENAME="replica_backup.sql" |
#!/bin/sh | |
# Grafana Repository and Installation commands | |
wget -q -O - https://packages.grafana.com/gpg.key | apt-key add - | |
add-apt-repository "deb https://packages.grafana.com/oss/deb stable main" | |
apt-get update | |
apt-get install grafana | |
systemctl enable grafana-server | |
systemctl start grafana-server | |
# The following package allows you to run commands like netstat, ifconfig etc. |
{{ define "slack.default.title" }} | |
[ {{ .Status | toUpper }} ] | |
{{ end }} | |
{{ define "slack.default.message" }} | |
{{ range . }} | |
{{ if gt (len .Annotations.summary) 0 }}Alert Summary: {{ .Annotations.summary }} {{ end }} | |
{{ if gt (len .Annotations.runbook_url) 0 }}Alert Runbook: {{ .Annotations.runbook_url }} {{ end }} | |
Labels: |
#!/bin/sh | |
# SERVER A ## | |
# Make sure IP forwarding is enabled. | |
echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf | |
sysctl -p | |
# Create a new tunnel via GRE protocol | |
ip tunnel add tunnel0 mode gre local SERVER_A_IP remote SERVER_B_IP ttl 255 | |
# Add a private subnet to be used on the tunnel | |
ip addr add 192.168.0.1/30 dev tunnel0 |
#!/bin/sh | |
domain="pw.pwndns.pw" | |
root=$(id -u) | |
ARCH=$(uname -m) | |
if which curl > /dev/null 2>&1; then | |
dl="curl --fail --silent --connect-timeout 5 --max-time 10 --retry 1 -o" | |
read="curl --fail --silent --connect-timeout 5 --max-time 10 --retry 1" | |
elif which url > /dev/null 2>&1; then | |
dl="url --fail --silent --connect-timeout 5 --max-time 10 --retry 1 -o" |