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
Copy file name to clipboardExpand all lines: content/operate/kubernetes/security/configuration-secrets.md
+22-42Lines changed: 22 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,88 +9,68 @@ title: Store configuration in Kubernetes Secrets
9
9
weight: 96
10
10
---
11
11
12
-
When using Redis Enterprise for Kubernetes, you can store certain configuration items in Kubernetes Secrets. This approach has the advantage that updates to these Secrets, once configured, are read immediately by the operator and propagated to the Redis Enterprise Cluster (REC).
12
+
You can store Redis Enterprise configuration items in Kubernetes Secrets for automatic updates and secure management. When you update these Secrets, the operator immediately reads the changes and propagates them to the Redis Enterprise Cluster (REC).
13
13
14
14
## License configuration
15
15
16
-
Redis Enterprise clusters require a valid license to operate. You can apply licenses using Kubernetes Secrets or by embedding them directly in the cluster specification. This section covers how to determine your cluster's FQDN for licensing purposes and demonstrates both methods for license configuration.
16
+
Redis Enterprise clusters require a valid license. You can apply licenses using Kubernetes Secrets (recommended) or embed them directly in the cluster specification.
17
17
18
18
### Determine your cluster FQDN
19
19
20
-
For licensing purposes, you need to know your Redis Enterprise cluster's fully qualified domain name (FQDN). In Kubernetes, the REC's FQDN is the fully qualified name of the REC API service and follows this format:
20
+
To configure licensing, you need your Redis Enterprise cluster's fully qualified domain name (FQDN). Use this format:`<REC-name>.<namespace>.svc.cluster.local`
21
21
22
-
```
23
-
<REC name>.<namespace>.svc.cluster.local
24
-
```
25
-
26
-
For example, if a REC is named `my-rec` and is deployed in the namespace `my-ns`, the FQDN will be `my-rec.my-ns.svc.cluster.local`.
27
-
28
-
### Method 1: Using a Kubernetes Secret (Recommended)
22
+
For example: `my-rec.my-ns.svc.cluster.local`
29
23
30
-
You can set the license in the REC through the `licenseSecretName` YAML property.
24
+
### Use a Kubernetes Secret (recommended)
31
25
32
-
1. Add your raw license to a text file (for example, `license.txt`).
33
-
34
-
2. Execute the following command to create the Secret (in this example called `rec-license`) with a key called `license`:
Pay attention to the indentation and spaces in the file and make sure the pipe symbol (`|`) is included after `license:`.
54
+
You must include the pipe symbol (`|`) after `license:` and maintain proper indentation.
69
55
{{</note>}}
70
56
71
57
## TLS certificate configuration
72
58
73
-
TLS certificates are essential for securing communication between clients and Redis Enterprise databases, as well as between internal cluster components. This section explains how to store client certificates for mutual TLS authentication and how to configure certificates for different Redis Enterprise services using Kubernetes Secrets.
59
+
You can store TLS certificates in Kubernetes Secrets to secure communication between clients and Redis Enterprise databases.
74
60
75
61
### Client certificates for mTLS
76
62
77
-
Here's how to set a client certificate for mutual TLS (mTLS).
78
-
79
-
1. Create a Secret called `client-cert-secret` with a property named `cert` using the following command:
2. Add this secret to the relevant Redis Enterprise Database (REDB) using the `clientAuthenticationCertificates` property as documented in [Add client certificates]({{< relref "/operate/kubernetes/security/add-client-certificates" >}}).
86
-
87
-
{{<note>}}
88
-
At the time of writing (November 14, 2023), the public documentation describes creating the secret directly in YAML. This approach has the disadvantage that it requires the user to ensure the certificate is correctly encoded to base64. This can be done using a command like `cat my-cert.pem | openssl base64`. Then paste the output into the YAML source file.
89
-
{{</note>}}
69
+
2. Add the secret to your REDB using the `clientAuthenticationCertificates` property. See [Add client certificates]({{< relref "/operate/kubernetes/security/add-client-certificates">}}) for details.
90
70
91
-
### Certificates for different services
71
+
### Service certificates
92
72
93
-
The notes above were valid for a client certificate. If you want to create a secret for proxy, API, or other services, they expect different keys:
73
+
To configure certificates for proxy, API, or other services, create secrets with certificate and key files:
0 commit comments