Skip to content

Commit a4e0c8c

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 a4e0c8c

2 files changed

Lines changed: 22 additions & 25 deletions

File tree

README.md

Lines changed: 22 additions & 17 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,14 +112,7 @@ 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
113118
# Create the pg-eu PostgreSQL cluster for chaos testing

clusters/cnpg-config.yaml

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

0 commit comments

Comments
 (0)