Skip to content

Commit a79afce

Browse files
JuliaMongojwilliams-mongo
authored andcommitted
(DOCSP-15004) Fix Operator installation for cluster-wide scope (#566)
* (DOCSP-15004) Fix Operator installation for cluster-wide scope * Moved topic into standalone, added tabs * Adding draft review comments from Nikolas * Continued with draft review * Include copy review by Melissa * Fixed warnings and replaced rst gh roles. Ready to merge
1 parent a45779f commit a79afce

14 files changed

+520
-204
lines changed

conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,7 @@
236236
'wikipedia' : ('https://en.wikipedia.org/wiki%s', ''),
237237
'k8sdocs': ('https://kubernetes.io/docs%s', ''),
238238
'v1.2': ('https://docs.mongodb.com/kubernetes-operator/v1.2%s', ''),
239-
'gh' : ('https://github.com%s', ''),
240-
'gh-meko' : ('https://github.com/mongodb/mongodb-enterprise-kubernetes%s', ''),
239+
'github' : ('https://github.com%s', ''),
241240
'gopkg' : ('https://godoc.org%s',''),
242241
'npmjs' : ('https://www.npmjs.com/package%s',''),
243242
'osi' : ('https://opensource.org%s', ''),
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
kind: ServiceAccount
3+
apiVersion: v1
4+
metadata:
5+
name: mongodb-enterprise-appdb
6+
namespace: <namespace>
7+
---
8+
kind: ServiceAccount
9+
apiVersion: v1
10+
metadata:
11+
name: mongodb-enterprise-database-pods
12+
namespace: <namespace>
13+
---
14+
kind: ServiceAccount
15+
apiVersion: v1
16+
metadata:
17+
name: mongodb-enterprise-ops-manager
18+
namespace: <namespace>
19+
---
20+
kind: Role
21+
apiVersion: rbac.authorization.k8s.io/v1
22+
metadata:
23+
name: mongodb-enterprise-appdb
24+
namespace: <namespace>
25+
rules:
26+
- apiGroups:
27+
- ""
28+
resources:
29+
- secrets
30+
verbs:
31+
- get
32+
- apiGroups:
33+
- ""
34+
resources:
35+
- pods
36+
verbs:
37+
- patch
38+
---
39+
kind: RoleBinding
40+
apiVersion: rbac.authorization.k8s.io/v1
41+
metadata:
42+
name: mongodb-enterprise-appdb
43+
namespace: <namespace>
44+
roleRef:
45+
apiGroup: rbac.authorization.k8s.io
46+
kind: Role
47+
name: mongodb-enterprise-appdb
48+
subjects:
49+
- kind: ServiceAccount
50+
name: mongodb-enterprise-appdb
51+
namespace: <namespace>
52+
...
53+

source/includes/service-accounts-and-secrets-cluster-wide.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
apiVersion: v1
32
kind: ServiceAccount
3+
apiVersion: v1
44
metadata:
55
name: mongodb-enterprise-appdb
66
namespace: <namespace>
77
---
8-
apiVersion: v1
98
kind: ServiceAccount
9+
apiVersion: v1
1010
metadata:
1111
name: mongodb-enterprise-database-pods
1212
namespace: <namespace>
1313
---
14-
apiVersion: v1
1514
kind: ServiceAccount
15+
apiVersion: v1
1616
metadata:
1717
name: mongodb-enterprise-ops-manager
1818
namespace: <namespace>
@@ -29,6 +29,12 @@ rules:
2929
- secrets
3030
verbs:
3131
- get
32+
- apiGroups:
33+
- ""
34+
resources:
35+
- pods
36+
verbs:
37+
- patch
3238
---
3339
kind: RoleBinding
3440
apiVersion: rbac.authorization.k8s.io/v1
@@ -44,3 +50,4 @@ subjects:
4450
name: mongodb-enterprise-appdb
4551
namespace: <namespace>
4652
...
53+

source/includes/steps-install-prereqs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ content: |
1212
stepnum: 2
1313
level: 4
1414
ref: clone-k8s-repo
15-
title: "Clone the :gh:`MongoDB Enterprise Kubernetes Operator repository </mongodb/mongodb-enterprise-kubernetes>`."
15+
title: "Clone the :github:`MongoDB Enterprise Kubernetes Operator repository </mongodb/mongodb-enterprise-kubernetes>`."
1616
content: |
1717
1818
.. code-block:: sh
@@ -23,7 +23,7 @@ content: |
2323
2424
You can use `Helm <https://helm.sh/>`__ to install the
2525
|k8s-op-short|. To learn how to install Helm, see its
26-
:gh:`documentation on GitHub </kubernetes/helm>`.
26+
:github:`documentation on GitHub </kubernetes/helm>`.
2727
2828
---
2929
stepnum: 3

source/includes/steps-kind-quick-start.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
stepnum: 1
33
level: 4
44
ref: clone-k8s-repo-kind
5-
title: "Clone the :gh:`MongoDB Enterprise Kubernetes Operator repository </mongodb/mongodb-enterprise-kubernetes>`."
5+
title: "Clone the :github:`MongoDB Enterprise Kubernetes Operator repository </mongodb/mongodb-enterprise-kubernetes>`."
66
content: |
77
88
.. code-block:: sh

source/reference/k8s-operator-om-specification.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Ops Manager Resource Specification
1414
:depth: 2
1515
:class: singlecol
1616

17-
The :gh:`MongoDB Enterprise Kubernetes Operator </mongodb/mongodb-enterprise-kubernetes>`
17+
The :github:`MongoDB Enterprise Kubernetes Operator </mongodb/mongodb-enterprise-kubernetes>`
1818
creates a containerized |onprem| deployment from specification files
1919
that you write.
2020

source/reference/k8s-operator-specification.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ MongoDB Database Resource Specification
1616

1717
.. include:: /includes/admonitions/note-substitute-opsm-with-cloudm.rst
1818

19-
The :gh:`MongoDB Enterprise Kubernetes Operator </mongodb/mongodb-enterprise-kubernetes>`
19+
The :github:`MongoDB Enterprise Kubernetes Operator </mongodb/mongodb-enterprise-kubernetes>`
2020
creates |k8s| |k8s-statefulsets| from specification files that you
2121
wrote.
2222

source/reference/production-notes.txt

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,10 @@ sizes.
106106
storageClass: standard
107107

108108
For a full example of persistent volumes configuration, see
109-
:gh-meko:`replica-set-persistent-volumes.yaml </blob/master/samples/mongodb/persistent-volumes/replica-set-persistent-volumes.yaml>`
110-
in the :gh-meko:`Persistent Volumes Samples
111-
</tree/master/samples/mongodb/persistent-volumes>` directory. This
109+
:github:`replica-set-persistent-volumes.yaml
110+
</mongodb/mongodb-enterprise-kubernetes/blob/master/samples/mongodb/persistent-volumes/replica-set-persistent-volumes.yaml>`
111+
in the :github:`Persistent Volumes Samples
112+
</mongodb/mongodb-enterprise-kubernetes/tree/master/samples/mongodb/persistent-volumes>` directory. This
112113
directory also contains sample persistent volumes configurations for
113114
sharded clusters and standalone deployments.
114115

@@ -165,8 +166,8 @@ The following sections illustrate how to:
165166
- :ref:`set CPU and Memory for MongoDB Pods <mdb_pods_resources>`.
166167

167168
For the Pods hosting |onprem|, use the
168-
:gh-meko:`default resource limits configurations
169-
</blob/master/samples/ops-manager/ops-manager-pod-spec.yaml#L38-L46>`.
169+
:github:`default resource limits configurations
170+
</mongodb/mongodb-enterprise-kubernetes/blob/master/samples/ops-manager/ops-manager-pod-spec.yaml#L38-L46>`.
170171

171172
.. _operator_pod_resources:
172173

@@ -254,7 +255,8 @@ numbers in the configuration file for the |k8s-op-short| Pod.
254255

255256
For a full example of CPU and memory utilization resources and limits
256257
for the |k8s-op-short| Pod that satisfy parallel deployment of up to
257-
50 MongoDB replica sets, see the :gh-meko:`mongodb-enterprise.yaml </blob/master/mongodb-enterprise.yaml#L219-L235>`
258+
50 MongoDB replica sets, see the :github:`mongodb-enterprise.yaml
259+
</mongodb/mongodb-enterprise-kubernetes/blob/master/mongodb-enterprise.yaml#L219-L235>`
258260
file.
259261

260262
.. seealso::
@@ -324,14 +326,14 @@ replica set member in your deployment.
324326

325327
For a full example of CPU and memory utilization resources and limits
326328
for Pods hosting MongoDB replica set members, see the
327-
:gh-meko:`replica-set-podspec.yaml </blob/master/samples/mongodb/podspec/replica-set-podspec.yaml#L38-L45>`
328-
file in the the :gh-meko:`MongoDB Podspec Samples </tree/master/samples/mongodb/podspec>` directory.
329+
:github:`replica-set-podspec.yaml </mongodb/mongodb-enterprise-kubernetes/blob/master/samples/mongodb/podspec/replica-set-podspec.yaml#L38-L45>`
330+
file in the the :github:`MongoDB Podspec Samples </mongodb/mongodb-enterprise-kubernetes/tree/master/samples/mongodb/podspec>` directory.
329331

330332
This directory also contains sample CPU and memory limits
331333
configurations for Pods used for:
332334

333-
- A sharded cluster, in the :gh-meko:`sharded-cluster-podspec.yaml <blob/master/samples/mongodb/podspec/sharded-cluster-podspec.yaml#L62-91>`.
334-
- Standalone MongoDB deployments, in the :gh-meko:`standalone-podspec.yaml <blob/master/samples/mongodb/podspec/standalone-podspec.yaml#L36-39>`.
335+
- A sharded cluster, in the :github:`sharded-cluster-podspec.yaml </mongodb/mongodb-enterprise-kubernetesblob/master/samples/mongodb/podspec/sharded-cluster-podspec.yaml#L62-91>`.
336+
- Standalone MongoDB deployments, in the :github:`standalone-podspec.yaml </mongodb/mongodb-enterprise-kubernetesblob/master/samples/mongodb/podspec/standalone-podspec.yaml#L36-39>`.
335337

336338
.. seealso::
337339

@@ -386,8 +388,8 @@ availability zones configuration.
386388
- e2e-az2
387389

388390
See the full example of multiple availability zones configuration in
389-
:gh-meko:`replica-set-affinity.yaml </blob/master/samples/mongodb/affinity/replica-set-affinity.yaml>`
390-
in the :gh-meko:`Affinity Samples </tree/master/samples/mongodb/persistent-volumes>`
391+
:github:`replica-set-affinity.yaml </mongodb/mongodb-enterprise-kubernetes/blob/master/samples/mongodb/affinity/replica-set-affinity.yaml>`
392+
in the :github:`Affinity Samples </mongodb/mongodb-enterprise-kubernetes/tree/master/samples/mongodb/persistent-volumes>`
391393
directory.
392394

393395
This directory also contains sample affinity and multiple zones
@@ -466,8 +468,8 @@ To specify Pod affinity:
466468

467469
See the full example of multiple availability zones and node affinity
468470
configuration in
469-
:gh-meko:`replica-set-affinity.yaml </blob/master/samples/mongodb/affinity/replica-set-affinity.yaml>`
470-
in the :gh-meko:`Affinity Samples </tree/master/samples/mongodb/persistent-volumes>`
471+
:github:`replica-set-affinity.yaml </mongodb/mongodb-enterprise-kubernetes/blob/master/samples/mongodb/affinity/replica-set-affinity.yaml>`
472+
in the :github:`Affinity Samples </mongodb/mongodb-enterprise-kubernetes/tree/master/samples/mongodb/persistent-volumes>`
471473
directory.
472474

473475
This directory also contains sample affinity and multiple
@@ -563,8 +565,8 @@ parameter, as shown in the following abbreviated example.
563565
mode: "preferSSL"
564566

565567
See the full |tls| configuration example in
566-
:gh-meko:`replica-set.yaml </tree/master/samples/mongodb/tls/replica-set>`
567-
in the :gh-meko:`TLS </tree/master/samples/mongodb/tls>`
568+
:github:`replica-set.yaml </mongodb/mongodb-enterprise-kubernetes/tree/master/samples/mongodb/tls/replica-set>`
569+
in the :github:`TLS </mongodb/mongodb-enterprise-kubernetes/tree/master/samples/mongodb/tls>`
568570
samples directory. This directory also contains sample |tls| configurations for
569571
sharded clusters and standalone deployments.
570572

@@ -589,9 +591,9 @@ MongoDB users and the {+mdbagent+} instances.
589591
The |k8s-op-short| generates and distributes the certificate.
590592

591593
See the full X.509 certificates configuration examples in the
592-
:gh-meko:`x509 Authentication
593-
</tree/master/samples/mongodb/authentication/x509>` directory in
594-
the :gh-meko:`Authentication </tree/master/samples/mongodb/authentication>`
594+
:github:`x509 Authentication
595+
</mongodb/mongodb-enterprise-kubernetes/tree/master/samples/mongodb/authentication/x509>` directory in
596+
the :github:`Authentication </mongodb/mongodb-enterprise-kubernetes/tree/master/samples/mongodb/authentication>`
595597
samples directory. This directory also contains sample LDAP and SCRAM configurations.
596598

597599
Example Deployment CRD

source/reference/troubleshooting.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _k8s-troubleshooting:
22

3-
==================================
4-
Troubleshooting the |k8s-op-short|
5-
==================================
3+
===============================
4+
Troubleshoot the |k8s-op-short|
5+
===============================
66

77
.. default-domain:: mongodb
88

source/release-notes.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ Improvements
298298
- To manage Database Pod resources, use the
299299
:setting:`spec.podSpec.podTemplate` MongoDB Custom Resource attribute.
300300
For an example resource definition of each supported type, see the
301-
:gh:`samples/mongodb/podspec </mongodb/mongodb-enterprise-kubernetes/tree/master/samples/mongodb/podspec>`
301+
:github:`samples/mongodb/podspec </mongodb/mongodb-enterprise-kubernetes/tree/master/samples/mongodb/podspec>`
302302
directory. The following attributes are deprecated:
303303

304304
- :setting:`spec.podSpec.cpu`
@@ -385,7 +385,7 @@ Ops Manager Resource Changes
385385
- Allows the Application Database to be configured with SCRAM-SHA-256
386386
authentication when using |onprem| 4.4 or newer version.
387387
- Changes the validation of the |onprem| :setting:`spec.version` field
388-
to allow for tags that do not match the :gh:`semver </blang/semver>`
388+
to allow for tags that do not match the :github:`semver </blang/semver>`
389389
requirements. The :setting:`spec.version` field must start with the
390390
``Major.Minor.Patch`` string that represents the |onprem| version. To
391391
learn more about this field, see :ref:`k8s-om-specification`.
@@ -537,7 +537,7 @@ MongoDB Resource Changes
537537

538538
- Supports LDAP as an authorization mechanism for MongoDB database
539539
resources you deploy with the |k8s-op-short|. For more information,
540-
see the sample LDAP configurations on :gh:`GitHub
540+
see the sample LDAP configurations on :github:`GitHub
541541
</mongodb/mongodb-enterprise-kubernetes/tree/master/samples/mongodb/authentication/ldap>`
542542

543543
Bug Fixes
@@ -620,7 +620,7 @@ MongoDB Resource Changes
620620

621621
- Supports LDAP as an authentication mechanism for MongoDB database
622622
resources you deploy with the |k8s-op-short|. For more information,
623-
see the sample LDAP configurations on :gh:`GitHub
623+
see the sample LDAP configurations on :github:`GitHub
624624
</mongodb/mongodb-enterprise-kubernetes/tree/master/samples/mongodb/authentication/ldap>`.
625625

626626
.. note::
@@ -659,7 +659,7 @@ MongoDB Resource Changes
659659
- Provides additional options for more granular configuration of
660660
|mongod| / |mongos| processes. You can find an example of how to apply
661661
these options in the ``/samples/mongodb/mongodb-options`` file of the
662-
:gh:`MongoDB Enterprise Kubernetes Operator repository </mongodb/mongodb-enterprise-kubernetes>`.
662+
:github:`MongoDB Enterprise Kubernetes Operator repository </mongodb/mongodb-enterprise-kubernetes>`.
663663

664664
Bug Fixes
665665
`````````
@@ -869,7 +869,7 @@ Ops Manager Resource Changes
869869
- Removes the ``spec.backup.podSpec`` configuration setting. Use
870870
:opsmgrkube:`spec.backup.statefulSet.spec` instead.
871871

872-
See the :gh:`sample YAML files
872+
See the :github:`sample YAML files
873873
</mongodb/mongodb-enterprise-kubernetes/tree/master/samples>`
874874
for new feature usage examples.
875875

@@ -981,7 +981,7 @@ Bug Fixes
981981
- No longer starts monitoring and backup processes for the Application
982982
Database.
983983

984-
See the :gh:`sample YAML files
984+
See the :github:`sample YAML files
985985
</mongodb/mongodb-enterprise-kubernetes/tree/master/samples>` for new
986986
feature usage examples.
987987

@@ -1028,7 +1028,7 @@ Bug Fixes
10281028

10291029
- Enables the |k8s-op-short| to use the ``spec.clusterDomain`` setting.
10301030

1031-
See the :gh:`sample YAML files
1031+
See the :github:`sample YAML files
10321032
</mongodb/mongodb-enterprise-kubernetes/tree/master/samples>` for new
10331033
feature usage examples.
10341034

@@ -1080,7 +1080,7 @@ MongoDB Resource Changes
10801080
- Adds support for OpenShift (Red Hat UBI Images).
10811081

10821082
For more information on how to enable new features, see the sample YAML
1083-
files in the :gh:`samples directory
1083+
files in the :github:`samples directory
10841084
</mongodb/mongodb-enterprise-kubernetes/tree/master/samples/ops-manager>`.
10851085

10861086
Bug Fixes
@@ -1117,7 +1117,7 @@ MongoDB Resource Changes
11171117
accessible. You must :ref:`migrate to one resource per project
11181118
<migrate-single-cluster>`.
11191119

1120-
- Supports ``SCRAM-SHA`` authentication mode. See :gh:`the MongoDB
1120+
- Supports ``SCRAM-SHA`` authentication mode. See :github:`the MongoDB
11211121
Enterprise Kubernetes Operator GitHub repository
11221122
</mongodb/mongodb-enterprise-kubernetes/tree/master/samples/mongodb/authentication/scram>`
11231123
for examples.
@@ -1344,9 +1344,9 @@ This feature is an alpha release. It is not ready for production use.
13441344
:manual:`featureCompatibilityVersion </reference/command/setFeatureCompatibilityVersion>`.
13451345
- **Fix:** |tls| can be disabled in a deployment.
13461346
- **Improvement:** Adds
1347-
:gh-meko:`script </blob/master/support/mdb_operator_diagnostic_data.sh>`
1347+
:github:`script </blob/master/support/mdb_operator_diagnostic_data.sh>`
13481348
in the
1349-
:gh-meko:`support </tree/master/support>` directory that can gather
1349+
:github:`support </tree/master/support>` directory that can gather
13501350
information of your MongoDB resources in Kubernetes.
13511351
- **Improvement:** In a |tls| environment, the |k8s-op-short| can use a
13521352
custom |certauth|. All the certificates must be passed as |k8s-secret|
@@ -1432,7 +1432,7 @@ This feature is an alpha release. It is not ready for production use.
14321432
replica sets and sharded clusters. The |tls| certificates are created
14331433
automatically by the |k8s-op-short|. Refer to the sample
14341434
``.yaml`` files in the
1435-
:gh-meko:`GitHub repository </tree/master/samples>`
1435+
:github:`GitHub repository </tree/master/samples>`
14361436
for examples.
14371437

14381438
- Wide or asterisk roles have been replaced with strict listing of
@@ -1614,7 +1614,7 @@ This feature is an alpha release. It is not ready for production use.
16141614

16151615
- The Operator no longer creates the CustomResourceDefinition objects.
16161616
The user needs to create them manually. Download and apply
1617-
:gh:`this new yaml file </mongodb/mongodb-enterprise-kubernetes/blob/master/crds.yaml>`
1617+
:github:`this new yaml file </mongodb/mongodb-enterprise-kubernetes/blob/master/crds.yaml>`
16181618
(``crd.yaml``) to create/configure these objects.
16191619

16201620
- ClusterRoles are no longer required. How the Operator watches

0 commit comments

Comments
 (0)