Skip to content

Instantly share code, notes, and snippets.

View suryakencana007's full-sized avatar
🛴
Never End Learning

Nanang Suryadi suryakencana007

🛴
Never End Learning
View GitHub Profile
{
"extensions": [
{
"id": "10",
"lang": "de",
"source": "Wie Manga!"
},
{
"id": "100019686565354829",
"lang": "de",

Network Observability

SNMP

Telegraf

Fluentbit

add_newline = false
[aws]
disabled = true
symbol = " "
format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
[buf]
symbol = " "
format = '\[[$symbol($version)]($style)\]'
@suryakencana007
suryakencana007 / vm-contabo-K3s-multi-nodes.md
Last active May 26, 2022 17:39
Setup K3s HA with embed db (etcd)

K3s on VM Contabo

Before we create K3s node on contabo vm, we need to setup static routes so all our vm can communicate each other

Creating static routes

Static routes reference

Here i used ubuntu latest 22.04 distro we need to configure netplan and add static routes to it.

NFS VM

multipass launch --name k3s-nfs --cpus 1 --mem 1024M --disk 60G

Create Cluster

minikube start -p k3s-local-cluster --cpus 2 --memory 4g --disk-size 40g --cni flannel
kubectx k3s-local-cluster
kubectl label nodes k3s-local-cluster k8s.shipper.id/worker-group=ephemeral-workers
@suryakencana007
suryakencana007 / platform-managerial-resources.md
Last active March 7, 2022 16:32
Management And Technical Platform Stuff

Platform Stuff

Jobs Detail

What You Will do

We are seeking an experienced, talented Platform Engineer to join the engineering team at Shipper in Indonesia or remotely anywhere around the world. You'll be bringing your skills and expertise to design, build and scale our highly available and distributed SaaS platform and its numerous applications that make our business possible and essential to many.

You will be working in an Agile and test-driven environment, given the autonomy to decide the best way to design, ship and support the system. You will use the best tools for the job and follow industry best practices to ship a product that is truly valuable to our users and partners.
@suryakencana007
suryakencana007 / consul-vault.md
Created February 1, 2022 14:50
kubernetes vault ha with consul

Secret

kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" -o go-template="{{.data.password | base64decode}}"

Unseal vault key

init and store unseal key and root token

@suryakencana007
suryakencana007 / kubernetes-dashboard.md
Created January 10, 2022 05:30
Kubernetes Dashboard

Install Kubernetes Dashboard

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml

Patch the dashboard to allow skipping login

kubectl patch deployment kubernetes-dashboard -n kubernetes-dashboard --type 'json' -p '[{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--enable-skip-login"}]'

Install Metrics Server

kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.5.2/components.yaml

Patch the metrisc server to work with insecure TLS