Skip to content

Commit 3067fd3

Browse files
committed
docs: removed operator configuration
With CNPG 1.28 there is no need to specify the TCP timeout for standbys. I have removed the two terminal story. Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
1 parent facc20a commit 3067fd3

2 files changed

Lines changed: 25 additions & 27 deletions

File tree

README.md

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,34 +63,46 @@ git clone https://github.com/cloudnative-pg/chaos-testing.git
6363
cd chaos-testing
6464
```
6565

66-
All subsequent commands reference files in this repository (experiments, scripts, monitoring configs). Keep this terminal window open.
66+
All subsequent commands reference files in this repository (experiments, scripts, monitoring configs).
6767

6868
### 1. Bootstrap the CNPG Playground
6969

7070
The upstream documentation provides detailed instructions for prerequisites and networking. Follow the setup instructions here: <https://github.com/cloudnative-pg/cnpg-playground#usage>.
7171

72-
**Open a new terminal** and run:
72+
Deploy the `cnpg-playground` project in a parallel folder to `chaos-testing`:
7373

7474
```bash
75+
cd ..
7576
git clone https://github.com/cloudnative-pg/cnpg-playground.git
7677
cd cnpg-playground
7778
./scripts/setup.sh eu # creates kind-k8s-eu cluster
78-
./scripts/info.sh # displays contexts and access information
79-
export KUBECONFIG=$PWD/k8s/kube-config.yaml
79+
```
80+
81+
Follow the instructions on the screen. In particular, make sure that you:
82+
83+
1. export the `KUBECONFIG` variable, as described
84+
2. set the correct context for kubectl
85+
86+
For example:
87+
88+
```
89+
export KUBECONFIG=<PATH_TO_CNPG_PLAYGROUND>/k8s/kube-config.yaml
8090
kubectl config use-context kind-k8s-eu
8191
```
8292

93+
If unsure, type:
94+
95+
```
96+
./scripts/info.sh # displays contexts and access information
97+
```
98+
8399
### 2. Install CloudNativePG and Create the PostgreSQL Cluster
84100

85101
With the Kind cluster running, install the operator using the **kubectl cnpg plugin** as recommended in the [CloudNativePG Installation & Upgrades guide](https://cloudnative-pg.io/documentation/current/installation_upgrade/). This approach ensures you get the latest stable operator version:
86102

87-
**In the cnpg-playground terminal:**
103+
**In the `cnpg-playground` folder:**
88104

89105
```bash
90-
# Re-export the playground kubeconfig if you opened a new shell
91-
export KUBECONFIG=$PWD/k8s/kube-config.yaml
92-
kubectl config use-context kind-k8s-eu
93-
94106
# Install the latest operator version using the kubectl cnpg plugin
95107
kubectl cnpg install generate --control-plane | \
96108
kubectl --context kind-k8s-eu apply -f - --server-side
@@ -100,16 +112,10 @@ kubectl --context kind-k8s-eu rollout status deployment \
100112
-n cnpg-system cnpg-controller-manager
101113
```
102114

103-
Apply the operator config map:
104-
105-
```bash
106-
kubectl apply -f clusters/cnpg-config.yaml
107-
kubectl rollout restart -n cnpg-system deployment cnpg-controller-manager
108-
```
109-
110-
**Switch back to the chaos-testing terminal:**
115+
**In the `chaos-testing` folder:**
111116

112117
```bash
118+
cd ../chaos-testing
113119
# Create the pg-eu PostgreSQL cluster for chaos testing
114120
kubectl apply -f clusters/pg-eu-cluster.yaml
115121

@@ -218,7 +224,7 @@ kubectl -n litmus delete chaosengine cnpg-jepsen-chaos-noprobes
218224
The **cnpg-playground** provides a built-in monitoring stack with Prometheus and Grafana. From the cnpg-playground directory:
219225

220226
```bash
221-
cd /path/to/cnpg-playground
227+
cd ../cnpg-playground
222228
./monitoring/setup.sh eu
223229
```
224230

@@ -231,7 +237,7 @@ Once installation completes, create the PodMonitor to expose CNPG metrics:
231237

232238
```bash
233239
# Switch back to chaos-testing directory
234-
cd /path/to/chaos-testing
240+
cd ../chaos-testing
235241

236242
# Apply CNPG PodMonitor
237243
kubectl apply -f monitoring/podmonitor-pg-eu.yaml

clusters/cnpg-config.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)