Installing PostgreSQL on Kubernetes Using CloudNativePG (CNPG)

Create CNPG Directory & postgres.yaml Manifest —————————————————————– Create a directory for CNPG configuration and add the postgres.yaml file: vi postgres.yaml —————————————————————–Cluster 1 — app-db-cluster (Application Database)—————————————————————–apiVersion: postgresql.cnpg.io/v1kind: Clustermetadata:  name: app-db-cluster  namespace: prod-databasespec:  instances: 2  imageName: ghcr.io/cloudnative-pg/postgresql:16.2  affinity:    nodeSelector:      role: “database”    tolerations:      – key: “database”        operator: “Equal”        value: “true”        effect: “NoSchedule”  bootstrap:    initdb:      database: appdb      owner: … Read more

Installation of Kubernetes -k3s

Master Worker Master Node Taint and label Install helm To use the inbuilt registries Install AWS ClI to pull images Pull Images sh get_images.sh check images [rocky@k3s-master ~]$ sudo /usr/local/bin/ctr -a /var/run/k3s/containerd/containerd.sock -n k8s.io image check | grep -i local | awk ‘{print $1}’ Worker Node Create PV and VG Configuire EBS Ingress Controller Deploy … Read more

CNPG Disk Error

Fixing CNPG PostgreSQL CrashLoopBackOff: A Deep Dive into PVC Resize Failure & Disk Pressure on OpenEBS LVM LocalPV A Real-World Production Issue & How We Resolved It In this article, I’ll walk you through a production-grade debugging scenario where our CloudNativePG (CNPG) PostgreSQL cluster went into a full outage. Both the primary and replica pods … Read more

Categories ASM