Skip to content

cloud-native-aixmarseille/2025-12-cloudnativepg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

CNPG

Meetup 2025-12-cloudnativepg

Create a backuped Postgres cluster

k apply -f postgres.yaml

Create some datas

CREATE TABLE test_restauration (
    id SERIAL PRIMARY KEY,
    nom VARCHAR(100) NOT NULL,
    date_creation TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    description TEXT
);

INSERT INTO test_restauration (nom, description)
VALUES ('Test de restauration', 'Cette ligne a été ajoutée avant la restauration du cluster.');

SELECT * FROM test_restauration;

Start a manual backup

k cnpg backup chatbot

Promote another primary node

k cnpg promote chatbot chatbot-3

Delete the cluster

k delete -f postgres.yaml

Restore the cluster

k apply -f postgres-recovery.yaml

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published