Skip to content

Commit 286d02a

Browse files
committed
Add some vital details to guide for solving certificate sync issues
1 parent 4acf24a commit 286d02a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

docs/persistence/postgres/how-to/certification-sync-issues.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Delete database client certificate
2+
title: Certification sync issues
33
tags: [postgres, certificate, how-to]
44
---
55

@@ -10,7 +10,16 @@ Your deploy may fail with an error message such as the one below:
1010
MountVolume.SetUp failed for volume "sqeletor-sql-ssl-cert" : secret "sqeletor-<podname>" not found
1111
```
1212

13-
To delete the database client credentials for your application, in Google Cloud Console navigate to [Cloud SQL instances](https://console.cloud.google.com/sql/instances) -> <your_instance> -> Connections -> Security, and then scroll down to _Manage client certificates_ and delete your certificate there.
13+
This message can show up for a number of reasons (see our [troubleshooting guide](../../../workloads/how-to/troubleshooting.md)), so be sure to confirm that the certificate is the issue before proceeding.
14+
15+
```bash
16+
$ kubectl describe sqlsslcert -lapp=<your_app>
17+
```
18+
19+
Under `Events` you should see an error detailing the reason for the failure.
20+
If the error mentions an already existing certificate, you can delete it.
21+
22+
To delete the database client certificate for your application, in Google Cloud Console navigate to [Cloud SQL instances](https://console.cloud.google.com/sql/instances) -> <your_instance> -> Connections -> Security, and then scroll down to _Manage client certificates_ and delete your certificate there.
1423

1524
This can also be done using the `gcloud`-cli.
1625

@@ -19,4 +28,4 @@ $ gcloud sql ssl client-certs delete COMMON_NAME --instance=INSTANCE
1928
```
2029

2130
_COMMON_NAME_ is usually equal to _INSTANCE_, which is usually equal to application name.
22-
Run `kubectl describe sqlsslcert <certificate>` to find _COMMON_NAME_ and _INSTANCE_ for one specific certificate.
31+
The output of the `kubectl describe sqlsslcert` command you did earlier will contain the relevant values for _COMMON_NAME_ and _INSTANCE_.

0 commit comments

Comments
 (0)