сервис_postgresql

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_postgresql [2025/05/13 14:11]
val [pg_restore]
сервис_postgresql [2025/10/06 06:34] (current)
val [Kubernetes]
Line 55: Line 55:
  
   * [[https://​habr.com/​ru/​companies/​oleg-bunin/​articles/​766898/​|Операторы в Kubernetes]] и [[https://​habr.com/​ru/​companies/​flant/​articles/​684202/​|Обзор операторов PostgreSQL для Kubernetes. Часть 3: CloudNativePG]]   * [[https://​habr.com/​ru/​companies/​oleg-bunin/​articles/​766898/​|Операторы в Kubernetes]] и [[https://​habr.com/​ru/​companies/​flant/​articles/​684202/​|Обзор операторов PostgreSQL для Kubernetes. Часть 3: CloudNativePG]]
 +
 +  * Dynamic Volume Provisioning [[Система Kubernetes#​rancher local-path-provisioner]]
  
 <​code>​ <​code>​
Line 90: Line 92:
   storage:   storage:
     size: 10Gi     size: 10Gi
 +#    storageClass:​ local-path
 </​code><​code>​ </​code><​code>​
 kube1:​~/​my-pgcluster#​ kubectl create ns my-pgcluster-ns kube1:​~/​my-pgcluster#​ kubectl create ns my-pgcluster-ns
Line 337: Line 340:
 kube1:​~/​my-pgcluster#​ kubectl -n my-pgcluster-ns apply -f my-scheduled-backup.yaml kube1:​~/​my-pgcluster#​ kubectl -n my-pgcluster-ns apply -f my-scheduled-backup.yaml
  
-kube1# kubectl -n my-pgcluster-ns describe ​backup ​my-scheduled-backup+kube1# kubectl -n my-pgcluster-ns describe ​backups.postgresql.cnpg.io ​my-scheduled-backup
  
-kube1# kubectl -n my-pgcluster-ns get backup+kube1# kubectl -n my-pgcluster-ns get backups.postgresql.cnpg.io
 </​code>​ </​code>​
  
Line 347: Line 350:
  
 <​code>​ <​code>​
-kube1:~/my-pgcluster#​ kubectl -n my-pgcluster-ns create secret generic minio-secret \+kube1:~# kubectl create ns my-pgcluster-ns 
 + 
 +kube1:~# kubectl -n my-pgcluster-ns create secret generic minio-secret \
   --from-literal=ACCESS_KEY_ID=root \   --from-literal=ACCESS_KEY_ID=root \
   --from-literal=ACCESS_SECRET_KEY=strongpassword   --from-literal=ACCESS_SECRET_KEY=strongpassword
сервис_postgresql.1747134713.txt.gz · Last modified: 2025/05/13 14:11 by val