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
services:
syncthing:
image: syncthing/syncthing
environment:
- PUID=1000
- PGID=1000
volumes:
- ./data/st-sync:/var/syncthing
ports:
- 8384:8384 # Web UI
@suryakencana007
suryakencana007 / azure-container-app-with-pg.md
Created April 24, 2025 14:34
Azure Terraform — Deploy a secure application: container apps, postgreSQL, and Redis

source: https://medium.com/@dinh.nt

Recently I took a task to deploy a full-fledged application securely on a virtual network in Azure cloud. I have to use IAC to reduce maintenance time later on.

This is not a easy task for me, since my knowledge of virtual network was limited. But luckily, I managed to get it done in a week, which is quite fast for what I had estimated.

I will share with you everything I did in this post.

Application Architecture

add_newline = false
[aws]
disabled = true
symbol = " "
format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
[buf]
symbol = " "
format = '\[[$symbol($version)]($style)\]'
Invoke-Expression (&starship init powershell)
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
Import-Module -Name Terminal-Icons
# Chocolatey 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