对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

配置加密

Kubernetes 操作符 支持将 Ops Manager 配置为通过HTTPS 运行。

Enable HTTPS before deploying your Ops Manager resources to avoid a situation where the Kubernetes Operator reports your resources' status as Failed.

Kubernetes Operator 支持TLS加密。 在 MongoDB 部署中使用TLS ,通过网络加密数据。

以下示例中的配置为副本集启用TLS 。 启用TLS后,副本集成员与客户端之间的所有流量都使用TLS证书进行加密。

要了解有关使用TLS保护 MongoDB 部署的更多信息,请参阅部署副本集。

The default TLS mode is requireTLS. You can customize it using the spec.additionalMongodConfig.net.ssl.mode configuration parameter, as shown in the following abbreviated example.

1apiVersion: mongodb.com/v1
2kind: MongoDB
3metadata:
4name: my-tls-enabled-rs
5spec:
6 type: ReplicaSet
7 members: 3
8 version: 8.0.0
9
10 opsManager:
11 configMapRef:
12 name: my-project
13 credentials: my-credentials
14
15 security:
16 tls:
17 enabled: true
18 ca: <custom-ca>
19
20 ...
21 additionalMongodConfig:
22 net:
23 ssl:
24 mode: "preferSSL"

请参阅 TLS 示例目录中的 replica-set.yaml 中的完整 TLS 配置示例。此目录还包含适用于分片的集群和独立运行运行部署的 TLS 配置示例。

给本页内容打分

在此页面上