Difference between revisions of "Cloudnative-pg"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with "# Cloud Native PG https://cloudnative-pg.io/documentation/1.21/before_you_start/ https://cloudnative-pg.io/documentation/1.21/quickstart/ Simple ``` create ns testpg kubectl...")
 
Line 9: Line 9:
 
kubectl config set-context --current --namespace=testpg
 
kubectl config set-context --current --namespace=testpg
 
kubectl apply -f https://github.com/cloudnative-pg/cloudnative-pg/releases/download/v1.21.1/cnpg-1.21.1.yaml
 
kubectl apply -f https://github.com/cloudnative-pg/cloudnative-pg/releases/download/v1.21.1/cnpg-1.21.1.yaml
 +
kubectl get all -n cnpg-system
 
kubectl apply -f \
 
kubectl apply -f \
   https://cloudnative-pg.io/documentation/1.21/samples/cluster-example.yaml
+
   https://cloudnative-pg.io/documentation/1.21/samples/cluster-example.yaml  
 +
kubectl get pod
 
```
 
```
  

Revision as of 00:02, 10 December 2023

Cloud Native PG

https://cloudnative-pg.io/documentation/1.21/before_you_start/

https://cloudnative-pg.io/documentation/1.21/quickstart/

Simple

create ns testpg
kubectl config set-context --current --namespace=testpg
kubectl apply -f https://github.com/cloudnative-pg/cloudnative-pg/releases/download/v1.21.1/cnpg-1.21.1.yaml
kubectl get all -n cnpg-system
kubectl apply -f \
  https://cloudnative-pg.io/documentation/1.21/samples/cluster-example.yaml 
kubectl get pod

More Refs

https://cloudnative-pg.io/documentation/1.21/samples/cluster-example-replica-streaming.yaml

https://cloudnative-pg.io/documentation/1.21/monitoring/