-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AppDB multi-cluster sample (#262)
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
samples/appdb_multicluster/ops-manager-multi-cluster-appdb.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |