Skip to content

Commit 76b4155

Browse files
authored
Add AppDB multi-cluster sample (#262)
1 parent 67f85b9 commit 76b4155

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
apiVersion: mongodb.com/v1
2+
kind: MongoDBOpsManager
3+
metadata:
4+
name: <myopsmanager>
5+
spec:
6+
replicas: 1
7+
version: <opsmanagerversion>
8+
adminCredentials: <adminusercredentials> # Should match metadata.name
9+
# in the Kubernetes secret
10+
# for the admin user
11+
12+
externalConnectivity:
13+
type: LoadBalancer
14+
security:
15+
certsSecretPrefix: <prefix> # Required. Text to prefix
16+
# the name of the secret that contains
17+
# Ops Manager's TLS certificate.
18+
tls:
19+
ca: "om-http-cert-ca" # Optional. Name of the ConfigMap file
20+
# containing the certificate authority that
21+
# signs the certificates used by the Ops
22+
# Manager custom resource.
23+
24+
applicationDatabase:
25+
topology: MultiCluster # if you want to deploy AppDB deployment accross multiple clusters
26+
clusterSpecList:
27+
# distribution of AppDB nodes across multiple Kubernetes clusters
28+
- clusterName: cluster1.example.com
29+
members: 4
30+
- clusterName: cluster2.example.com
31+
members: 3
32+
- clusterName: cluster3.example.com
33+
members: 2
34+
version: "4.4.0-ubi8"
35+
security:
36+
certsSecretPrefix: <prefix> # Required. Text to prefix to the
37+
# name of the secret that contains the Application
38+
# Database's TLS certificate. Name the secret
39+
# <prefix>-<metadata.name>-db-cert.
40+
tls:
41+
ca: "appdb-ca" # Optional. Name of the ConfigMap file
42+
# containing the certicate authority that
43+
# signs the certificates used by the
44+
# application database.

0 commit comments

Comments
 (0)