Skip to content

Commit

Permalink
Add AppDB multi-cluster sample (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
irajdeep committed Sep 1, 2023
1 parent 67f85b9 commit 76b4155
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions samples/appdb_multicluster/ops-manager-multi-cluster-appdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: mongodb.com/v1
kind: MongoDBOpsManager
metadata:
name: <myopsmanager>
spec:
replicas: 1
version: <opsmanagerversion>
adminCredentials: <adminusercredentials> # Should match metadata.name
# in the Kubernetes secret
# for the admin user

externalConnectivity:
type: LoadBalancer
security:
certsSecretPrefix: <prefix> # Required. Text to prefix
# the name of the secret that contains
# Ops Manager's TLS certificate.
tls:
ca: "om-http-cert-ca" # Optional. Name of the ConfigMap file
# containing the certificate authority that
# signs the certificates used by the Ops
# Manager custom resource.

applicationDatabase:
topology: MultiCluster # if you want to deploy AppDB deployment accross multiple clusters
clusterSpecList:
# distribution of AppDB nodes across multiple Kubernetes clusters
- clusterName: cluster1.example.com
members: 4
- clusterName: cluster2.example.com
members: 3
- clusterName: cluster3.example.com
members: 2
version: "4.4.0-ubi8"
security:
certsSecretPrefix: <prefix> # Required. Text to prefix to the
# name of the secret that contains the Application
# Database's TLS certificate. Name the secret
# <prefix>-<metadata.name>-db-cert.
tls:
ca: "appdb-ca" # Optional. Name of the ConfigMap file
# containing the certicate authority that
# signs the certificates used by the
# application database.

0 comments on commit 76b4155

Please sign in to comment.