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