diff --git a/hugo/content/en/database_monitoring/setup_mysql/rds.md b/hugo/content/en/database_monitoring/setup_mysql/rds.md index 58356a20c30..d58b9a571b4 100644 --- a/hugo/content/en/database_monitoring/setup_mysql/rds.md +++ b/hugo/content/en/database_monitoring/setup_mysql/rds.md @@ -332,6 +332,54 @@ Using the [Operator instructions in Kubernetes and Integrations][3] as a referen kubectl apply -f datadog-agent.yaml ``` +#### Connecting over SSL + +If your RDS or Aurora MySQL instance requires SSL (for example, `rds.force_ssl` is enabled), store the CA certificate in a Kubernetes `Secret` and mount it into the pod that runs the cluster check—the cluster check runner if you use one, otherwise the Cluster Agent—so the MySQL check can reference it: + +```yaml +apiVersion: v1 +kind: Secret +metadata: + name: rds-ca-cert +type: Opaque +data: + ca-cert.pem: +``` + +```yaml +spec: + #(...) + override: + clusterChecksRunner: + volumes: + - name: rds-ca-cert + secret: + secretName: rds-ca-cert + containers: + agent: + volumeMounts: + - name: rds-ca-cert + mountPath: /etc/certs/rds-ca-cert + readOnly: true + clusterAgent: + extraConfd: + configDataMap: + mysql.yaml: |- + cluster_check: true + init_config: + instances: + - host: + port: + username: datadog + password: 'ENC[datadog_user_database_password]' + dbm: true + ssl: + ca: /etc/certs/rds-ca-cert/ca-cert.pem + aws: + instance_endpoint: + region: +``` + ### Helm 1. Complete the [Datadog Agent installation instructions][4] for Helm.