UNCLASSIFIED

Commit 2d53ef1d authored by alexander.klepal's avatar alexander.klepal
Browse files

Merge branch 'correction-1.5.3' into 'development'

Correction 1.5.3

See merge request !3
parents 64d8d739 373d0994
Pipeline #365406 failed with stages
in 28 seconds
...@@ -9,7 +9,7 @@ metadata: ...@@ -9,7 +9,7 @@ metadata:
name: my-replica-set name: my-replica-set
spec: spec:
members: 3 members: 3
version: 4.4.0-ent version: 4.2.1-ent
type: ReplicaSet type: ReplicaSet
opsManager: opsManager:
...@@ -18,18 +18,3 @@ spec: ...@@ -18,18 +18,3 @@ spec:
credentials: my-credentials credentials: my-credentials
persistent: false persistent: false
podSpec:
# 'podTemplate' allows to set custom fields in PodTemplateSpec (https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#podtemplatespec-v1-core)
# for the Database StatefulSet.
podTemplate:
spec:
containers:
- name: mongodb-enterprise-database
resources:
limits:
cpu: "2"
memory: 700m
requests:
cpu: "1"
memory: 500m
...@@ -12,7 +12,7 @@ spec: ...@@ -12,7 +12,7 @@ spec:
mongodsPerShardCount: 3 mongodsPerShardCount: 3
mongosCount: 2 mongosCount: 2
configServerCount: 3 configServerCount: 3
version: 4.4.0-ent version: 4.2.1-ent
type: ShardedCluster type: ShardedCluster
# Before you create this object, you'll need to create a project ConfigMap and a # Before you create this object, you'll need to create a project ConfigMap and a
# credentials Secret. For instructions on how to do this, please refer to our # credentials Secret. For instructions on how to do this, please refer to our
...@@ -27,40 +27,3 @@ spec: ...@@ -27,40 +27,3 @@ spec:
# testing only, and must not be used in production. 'false' will disable # testing only, and must not be used in production. 'false' will disable
# Persistent Volume Claims. The default is 'true' # Persistent Volume Claims. The default is 'true'
persistent: false persistent: false
configSrvPodSpec:
podTemplate:
spec:
containers:
- name: mongodb-enterprise-database
resources:
limits:
cpu: "2"
memory: 700m
requests:
cpu: "1"
memory: 500m
shardPodSpec:
podTemplate:
spec:
containers:
- name: mongodb-enterprise-database
resources:
limits:
cpu: "2"
memory: 700m
requests:
cpu: "1"
memory: 500m
mongosPodSpec:
podTemplate:
spec:
containers:
- name: mongodb-enterprise-database
resources:
limits:
cpu: "1"
memory: 200m
requests:
cpu: "0.5"
memory: 100m
\ No newline at end of file
...@@ -8,7 +8,7 @@ kind: MongoDB ...@@ -8,7 +8,7 @@ kind: MongoDB
metadata: metadata:
name: my-standalone name: my-standalone
spec: spec:
version: 4.4.0-ent version: 4.2.1-ent
type: Standalone type: Standalone
# Before you create this object, you'll need to create a project ConfigMap and a # Before you create this object, you'll need to create a project ConfigMap and a
# credentials Secret. For instructions on how to do this, please refer to our # credentials Secret. For instructions on how to do this, please refer to our
...@@ -23,18 +23,3 @@ spec: ...@@ -23,18 +23,3 @@ spec:
# testing only, and must not be used in production. 'false' will disable # testing only, and must not be used in production. 'false' will disable
# Persistent Volume Claims. The default is 'true' # Persistent Volume Claims. The default is 'true'
persistent: false persistent: false
podSpec:
# 'podTemplate' allows to set custom fields in PodTemplateSpec (https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#podtemplatespec-v1-core)
# for the Database StatefulSet.
podTemplate:
spec:
containers:
- name: mongodb-enterprise-database
resources:
limits:
cpu: "2"
memory: 700m
requests:
cpu: "1"
memory: 500m
\ No newline at end of file
apiVersion: mongodb.com/v1
kind: MongoDB
metadata:
name: my-replica-set-options
spec:
members: 3
version: 4.2.8-ent
type: ReplicaSet
opsManager:
configMapRef:
name: my-project
credentials: my-credentials
persistent: true
# optional. Allows to pass custom MongoDB process configuration
additionalMongodConfig:
systemLog:
logAppend: true
verbosity: 4
operationProfiling:
mode: slowOp
apiVersion: mongodb.com/v1
kind: MongoDB
metadata:
name: my-sharded-cluster-options
spec:
version: 4.2.8-ent
type: ShardedCluster
opsManager:
configMapRef:
name: my-project
credentials: my-credentials
persistent: true
shardCount: 2
mongodsPerShardCount: 3
mongosCount: 2
configServerCount: 1
mongos:
# optional. Allows to pass custom configuration for mongos processes
additionalMongodConfig:
systemLog:
logAppend: true
verbosity: 4
configSrv:
# optional. Allows to pass custom configuration for Config Server mongod processes
additionalMongodConfig:
operationProfiling:
mode: slowOp
shard:
additionalMongodConfig:
# optional. Allows to pass custom configuration for Shards mongod processes
storage:
journal:
commitIntervalMs: 50
---
apiVersion: mongodb.com/v1
kind: MongoDBOpsManager
metadata:
name: ops-manager
spec:
# the number of Ops Manager instances to run. Set to value bigger
# than 1 to get high availability and upgrades without downtime
replicas: 3
# the version of Ops Manager distro to use
version: 4.4.1
# optional. Specify the custom cluster domain of the Kubernetes cluster if it's different from the default one ('cluster.local').
# This affects the urls generated by the Operator.
# This field is also used for Application Database url
clusterDomain: mycompany.net
# the name of the secret containing admin user credentials.
# Either remove the secret or change the password using Ops Manager UI after the Ops Manager
# resource is created!
adminCredentials: ops-manager-admin-secret
# the application database backing Ops Manager. Replica Set is the only supported type
# Application database has the SCRAM-SHA authentication mode always enabled
applicationDatabase:
members: 3
persistent: true
# optional. Allows to pass custom flags that will be used
# when launching the mongodb agent. All values must be strings
agent:
startupOptions:
serverSelectionTimeoutSeconds: "20"
...@@ -5,7 +5,7 @@ metadata: ...@@ -5,7 +5,7 @@ metadata:
name: ops-manager-backup name: ops-manager-backup
spec: spec:
replicas: 1 replicas: 1
version: 4.4.1 version: 4.2.12
adminCredentials: ops-manager-admin-secret adminCredentials: ops-manager-admin-secret
# optional. Enabled by default # optional. Enabled by default
......
...@@ -5,7 +5,7 @@ metadata: ...@@ -5,7 +5,7 @@ metadata:
name: ops-manager-external name: ops-manager-external
spec: spec:
replicas: 1 replicas: 1
version: 4.4.1 version: 4.2.12
adminCredentials: ops-manager-admin-secret adminCredentials: ops-manager-admin-secret
configuration: configuration:
......
...@@ -4,7 +4,7 @@ metadata: ...@@ -4,7 +4,7 @@ metadata:
name: ops-manager-ignore-ui name: ops-manager-ignore-ui
spec: spec:
replicas: 1 replicas: 1
version: 4.4.1 version: 4.2.12
adminCredentials: ops-manager-admin-secret adminCredentials: ops-manager-admin-secret
configuration: configuration:
......
...@@ -4,7 +4,7 @@ metadata: ...@@ -4,7 +4,7 @@ metadata:
name: ops-manager-localmode name: ops-manager-localmode
spec: spec:
replicas: 2 replicas: 2
version: 4.4.1 version: 4.2.12
adminCredentials: ops-manager-admin-secret adminCredentials: ops-manager-admin-secret
configuration: configuration:
# this enables local mode in Ops Manager # this enables local mode in Ops Manager
......
---
apiVersion: mongodb.com/v1
kind: MongoDBOpsManager
metadata:
name: ops-manager
spec:
replicas: 1
version: 4.4.1
adminCredentials: ops-manager-admin-secret
applicationDatabase:
members: 3
version: 4.2.6-ent
persistent: true
# The statefulSet entry will modify the way the StatefulSet holding the
# Ops Manager and Backup Daemon Pods will be created. In this case we can
# specify a non-default SecurityContext.
statefulSet:
spec:
template:
spec:
securityContext:
fsGroup: 5000
runAsUser: 5000
...@@ -4,7 +4,7 @@ metadata: ...@@ -4,7 +4,7 @@ metadata:
name: ops-manager-pod-spec name: ops-manager-pod-spec
spec: spec:
replicas: 1 replicas: 1
version: 4.4.1 version: 4.2.12
adminCredentials: ops-manager-admin-secret adminCredentials: ops-manager-admin-secret
configuration: configuration:
mms.testUtil.enabled: "true" mms.testUtil.enabled: "true"
......
...@@ -5,7 +5,7 @@ metadata: ...@@ -5,7 +5,7 @@ metadata:
name: ops-manager-scram name: ops-manager-scram
spec: spec:
replicas: 1 replicas: 1
version: 4.4.1 version: 4.2.12
adminCredentials: ops-manager-admin-secret adminCredentials: ops-manager-admin-secret
# the application database backing Ops Manager. Replica Set is the only supported type # the application database backing Ops Manager. Replica Set is the only supported type
......
...@@ -4,7 +4,7 @@ metadata: ...@@ -4,7 +4,7 @@ metadata:
name: ops-manager-tls name: ops-manager-tls
spec: spec:
replicas: 1 replicas: 1
version: 4.4.1 version: 4.2.12
adminCredentials: ops-manager-admin-secret adminCredentials: ops-manager-admin-secret
configuration: configuration:
......
...@@ -9,7 +9,7 @@ spec: ...@@ -9,7 +9,7 @@ spec:
replicas: 3 replicas: 3
# the version of Ops Manager distro to use # the version of Ops Manager distro to use
version: 4.4.1 version: 4.2.12
# optional. Specify the custom cluster domain of the Kubernetes cluster if it's different from the default one ('cluster.local'). # optional. Specify the custom cluster domain of the Kubernetes cluster if it's different from the default one ('cluster.local').
# This affects the urls generated by the Operator. # This affects the urls generated by the Operator.
...@@ -33,9 +33,5 @@ spec: ...@@ -33,9 +33,5 @@ spec:
# The bundled MongoDB binary will be used if omitted and no download from the Internet will happen # The bundled MongoDB binary will be used if omitted and no download from the Internet will happen
version: 4.2.6-ent version: 4.2.6-ent
persistent: true persistent: true
# optional. Allows to pass custom MongoDB process configuration
additionalMongodConfig:
operationProfiling:
mode: slowOp
podSpec: podSpec:
cpu: '0.25' cpu: '0.25'
#!/usr/bin/env bash #!/usr/bin/env bash
set -Eeou pipefail
# #
# mdb_operator_diagnostic_data.sh # mdb_operator_diagnostic_data.sh
# #
...@@ -70,7 +68,7 @@ if [ ${private_mode} == 0 ]; then ...@@ -70,7 +68,7 @@ if [ ${private_mode} == 0 ]; then
fi fi
echo "++ Versions" echo "++ Versions"
mdb_operator_pod=$(kubectl -n "${namespace}" get pods -l "controller=${operator_name}" -o name | cut -d'/' -f 2) mdb_operator_pod=$(kubectl -n "${namespace}" get pods -l "app=${operator_name}" -o name | cut -d'/' -f 2)
echo "+ Operator Pod: pod/${mdb_operator_pod}" echo "+ Operator Pod: pod/${mdb_operator_pod}"
mdb_operator_filename="operator.yaml" mdb_operator_filename="operator.yaml"
...@@ -180,7 +178,7 @@ echo "+ Certificates (no private keys are captured)" ...@@ -180,7 +178,7 @@ echo "+ Certificates (no private keys are captured)"
csr_filename="csr.text" csr_filename="csr.text"
kubectl get csr | grep "${namespace}" kubectl get csr | grep "${namespace}"
echo "+ Saving Certificate state into ${csr_filename}" echo "+ Saving Certificate state into ${csr_filename}"
kubectl describe "$(kubectl get csr -o name | grep "${namespace}")" kubectl describe "$(kubectl get csr -o name | grep ${namespace})"
echo "++ MongoDBUser Resource Status" echo "++ MongoDBUser Resource Status"
mdbusers_filename="mdbu.yaml" mdbusers_filename="mdbu.yaml"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment