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
!!! warning "If your deployment uses Group Replication as the cluster type, you must pause the cluster before patching to enable encryption."
263
+
264
+
After you add the required secret, unpause the cluster to resume normal operation.
262
265
263
266
## Reference the Secret in your Custom Resource manifest
264
267
265
268
Now, reference the Vault Secret in the Operator Custom Resource manifest. Note that the Secret name is the one you specified in the `metadata.name` field when you created a Secret.
266
269
267
-
Since this is a running cluster, we will apply a patch:
270
+
1. Export the namespace where the cluster is deployed as an environment variable:
271
+
272
+
```bash
273
+
export ps-cluster-namespace = <cluster-namespace>
274
+
```
275
+
276
+
2. Update the cluster configuration. Since this is a running cluster, we will apply a patch.
277
+
278
+
=== "Group replication"
279
+
280
+
1. Pause the cluster:
281
+
282
+
``` bash
283
+
kubectl patch ps ps-cluster1 \
284
+
--namespace $<ps-cluster-namespace> \
285
+
--type=merge \
286
+
--patch '{"spec": {"pause": true}}'
287
+
```
288
+
289
+
2. Apply the patch referencing your Secret. Note for MySQL 8.0 the default Secret name is `ps-cluster1-vault` and for MySQL 8.4 - `ps-cluster1-vault-84`. Use the following command as an example and specify the Secret name for the MySQL version you're using:
Apply the patch referencing your Secret. Note for MySQL 8.0 the default Secret name is `ps-cluster1-vault` and for MySQL 8.4 - `ps-cluster1-vault-84`. Use the following command as an example and specify the Secret name for the MySQL version you're using:
0 commit comments