Skip to content

Commit b3469a8

Browse files
authored
Update sample files from MEKO (#1690)
1 parent 02d951b commit b3469a8

File tree

5 files changed

+21
-13
lines changed

5 files changed

+21
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
kubectl --context "${K8S_CLUSTER_0_CONTEXT_NAME}" create namespace "${OPERATOR_NAMESPACE}"
22
kubectl --context "${K8S_CLUSTER_0_CONTEXT_NAME}" label namespace "${OPERATOR_NAMESPACE}" istio-injection=enabled --overwrite
3+
4+
kubectl --context "${K8S_CLUSTER_1_CONTEXT_NAME}" create namespace "${OPERATOR_NAMESPACE}"
5+
kubectl --context "${K8S_CLUSTER_1_CONTEXT_NAME}" label namespace "${OPERATOR_NAMESPACE}" istio-injection=enabled --overwrite
6+
7+
kubectl --context "${K8S_CLUSTER_2_CONTEXT_NAME}" create namespace "${OPERATOR_NAMESPACE}"
8+
kubectl --context "${K8S_CLUSTER_3_CONTEXT_NAME}" label namespace "${OPERATOR_NAMESPACE}" istio-injection=enabled --overwrite

source/includes/code-examples/ops-manager-multi-cluster/code_snippets/0310_ops_manager_deploy_on_single_member_cluster.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: om
66
spec:
77
topology: MultiCluster
8-
version: 7.0.1
8+
version: "${OPS_MANAGER_VERSION}"
99
adminCredentials: om-admin-user-credentials
1010
security:
1111
certsSecretPrefix: cert-prefix
@@ -15,7 +15,7 @@ spec:
1515
- clusterName: "${K8S_CLUSTER_0_CONTEXT_NAME}"
1616
members: 1
1717
applicationDatabase:
18-
version: "6.0.5-ubi8"
18+
version: "${APPDB_VERSION}"
1919
topology: MultiCluster
2020
security:
2121
certsSecretPrefix: cert-prefix

source/includes/code-examples/ops-manager-multi-cluster/code_snippets/0320_ops_manager_add_second_cluster.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: om
66
spec:
77
topology: MultiCluster
8-
version: 7.0.1
8+
version: "${OPS_MANAGER_VERSION}"
99
adminCredentials: om-admin-user-credentials
1010
security:
1111
certsSecretPrefix: cert-prefix
@@ -17,7 +17,7 @@ spec:
1717
- clusterName: "${K8S_CLUSTER_1_CONTEXT_NAME}"
1818
members: 1
1919
applicationDatabase:
20-
version: "6.0.5-ubi8"
20+
version: "${APPDB_VERSION}"
2121
topology: MultiCluster
2222
security:
2323
certsSecretPrefix: cert-prefix

source/includes/code-examples/ops-manager-multi-cluster/code_snippets/0510_ops_manager_enable_s3_backup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: om
66
spec:
77
topology: MultiCluster
8-
version: 7.0.1
8+
version: "${OPS_MANAGER_VERSION}"
99
adminCredentials: om-admin-user-credentials
1010
security:
1111
certsSecretPrefix: cert-prefix
@@ -35,7 +35,7 @@ spec:
3535
mms.minimumTLSVersion: TLSv1.2
3636
mms.replyToEmailAddr: [email protected]
3737
applicationDatabase:
38-
version: "6.0.5-ubi8"
38+
version: "${APPDB_VERSION}"
3939
topology: MultiCluster
4040
security:
4141
certsSecretPrefix: cert-prefix

source/includes/code-examples/ops-manager-multi-cluster/env_variables.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
export MDB_GKE_PROJECT="scratch-kubernetes-team"
22
#export MDB_GKE_PROJECT={GKE project name}
33

4-
# Scripts will iterate over this number of clusters.
5-
export NUMBER_OF_K8S_CLUSTERS=3
6-
74
export NAMESPACE="mongodb"
85
export OPERATOR_NAMESPACE="mongodb-operator"
96
export OPERATOR_HELM_CHART=../../../helm_chart
107

118
# comma-separated key=value pairs
129
# export OPERATOR_ADDITIONAL_HELM_VALUES=""
1310

14-
# Adjust values for each cluster. The script will reference these variables to get values for n-th cluster.
11+
# Adjust the values for each Kubernetes cluster in your deployment.
12+
# The deployment script references the following variables to get values for each cluster.
1513
export K8S_CLUSTER_0="k8s-mdb-0"
1614
export K8S_CLUSTER_0_ZONE="europe-central2-a"
1715
export K8S_CLUSTER_0_NUMBER_OF_NODES=3
@@ -30,8 +28,8 @@ export K8S_CLUSTER_2_NUMBER_OF_NODES=1
3028
export K8S_CLUSTER_2_MACHINE_TYPE="e2-standard-4"
3129
export K8S_CLUSTER_2_CONTEXT_NAME="gke_${MDB_GKE_PROJECT}_${K8S_CLUSTER_2_ZONE}_${K8S_CLUSTER_2}"
3230

33-
# comment that to not create preemptible nodes
34-
# DO NOT USE preemptible on production
31+
# Comment out the following line so that the script does not create preemptible nodes.
32+
# DO NOT USE preemptible nodes in production.
3533
export GKE_SPOT_INSTANCES_SWITCH="--preemptible"
3634

3735
export S3_OPLOG_BUCKET_NAME=s3-oplog-store
@@ -42,6 +40,10 @@ export S3_ENDPOINT="minio.tenant-tiny.svc.cluster.local"
4240
export S3_ACCESS_KEY="console"
4341
export S3_SECRET_KEY="console123"
4442

45-
# change to external domain if needed
43+
# (Optional) Change the following setting when using the external URL.
4644
export OPS_MANAGER_EXTERNAL_DOMAIN="om-svc.${NAMESPACE}.svc.cluster.local"
4745

46+
export OPS_MANAGER_VERSION="7.0.1"
47+
export APPDB_VERSION="6.0.5-ubi8"
48+
49+

0 commit comments

Comments
 (0)