You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
az extension add --upgrade --name amg --yes --allow-preview false
54
54
```
55
55
56
+
As a prerequisite for utilizing kubectl, it is essential to first install [Krew][install-krew], followed by the installation of the [CNPG plugin][cnpg-plugin]. This will enable the management of the PostgreSQL operator using the subsequent commands.
Create a resource group to hold the resources you create in this guide using the [`az group create`][az-group-create] command.
@@ -112,7 +130,7 @@ The CNPG operator automatically generates a service account called *postgres* th
112
130
--kind StorageV2 \
113
131
--query 'provisioningState' \
114
132
--output tsv
115
-
```
133
+
```
116
134
117
135
1. Create the storage container to store the Write Ahead Logs (WAL) and regular PostgreSQL on-demand and scheduled backups using the [`az storage container create`][az-storage-container-create] command.
118
136
@@ -124,7 +142,7 @@ The CNPG operator automatically generates a service account called *postgres* th
124
142
```
125
143
126
144
> [!NOTE]
127
-
> If you encounter the error message: `The request may be blocked by network rules of storage account. Please check network rule set using 'az storage account show -n accountname --query networkRuleSet'. If you want to change the default action to apply when no rule matches, please use 'az storage account update'.`. Please verify user permissions for Azure Blob Storage and, if **necessary**, elevate your role to `Storage Blob Data Owner` using the commands provided below.
145
+
> If you encounter the error message: `The request may be blocked by network rules of storage account. Please check network rule set using 'az storage account show -n accountname --query networkRuleSet'. If you want to change the default action to apply when no rule matches, please use 'az storage account update'`. Please verify user permissions for Azure Blob Storage and, if **necessary**, elevate your role to `Storage Blob Data Owner` using the commands provided below.
128
146
129
147
```azurecli-interactive
130
148
az role assignment list --scope $STORAGE_ACCOUNT_PRIMARY_RESOURCE_ID --output table
@@ -507,3 +525,5 @@ Now that you've created the require infrastructure, [deploy a highly available P
When successfully connected to the primary read-write endpoint, the PostgreSQL function returns `f` for *false*, indicating that the current connection is writable.
@@ -790,9 +796,10 @@ In this section, you trigger a sudden failure by deleting the pod running the pr
790
796
791
797
```azurecli-interactive
792
798
kubectl cnpg status $PG_PRIMARY_CLUSTER_NAME --namespace $PG_NAMESPACE
0 commit comments