File tree Expand file tree Collapse file tree 2 files changed +64
-4
lines changed Expand file tree Collapse file tree 2 files changed +64
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : v1
3
+ kind : ServiceAccount
4
+ metadata :
5
+ name : mongodb-enterprise-appdb
6
+ namespace : <namespace>
7
+ ---
8
+ apiVersion : v1
9
+ kind : ServiceAccount
10
+ metadata :
11
+ name : mongodb-enterprise-database-pods
12
+ namespace : <namespace>
13
+ ---
14
+ apiVersion : v1
15
+ kind : ServiceAccount
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
+ ---
33
+ kind : RoleBinding
34
+ apiVersion : rbac.authorization.k8s.io/v1
35
+ metadata :
36
+ name : mongodb-enterprise-appdb
37
+ namespace : <namespace>
38
+ roleRef :
39
+ apiGroup : rbac.authorization.k8s.io
40
+ kind : Role
41
+ name : mongodb-enterprise-appdb
42
+ subjects :
43
+ - kind : ServiceAccount
44
+ name : mongodb-enterprise-appdb
45
+ namespace : <namespace>
46
+ ...
Original file line number Diff line number Diff line change @@ -173,10 +173,24 @@ following adjustments:
173
173
helm_chart --show-only templates/database-roles.yaml | kubectl
174
174
apply -f -
175
175
176
- If you install a cluster-wide |k8s-op-short| without ``helm``, ensure
177
- that ``spec.template.spec.containers.name.env.name: WATCH_NAMESPACE`` is
178
- set to ``*`` in :gh:`mongodb-enterprise.yaml
179
- </mongodb/mongodb-enterprise-kubernetes/blob/master/mongodb-enterprise.yaml>`.
176
+ If you install a cluster-wide |k8s-op-short| without ``helm``:
177
+
178
+ - Ensure that ``spec.template.spec.containers.name.env.name:
179
+ WATCH_NAMESPACE`` is set to ``*`` in :gh:`mongodb-enterprise.yaml
180
+ </mongodb/mongodb-enterprise-kubernetes/blob/master/mongodb-enterprise.yaml>`.
181
+ - If you deploy the |k8s-op-short| to OpenShift, ensure that you
182
+ create all required local |k8s| service accounts and secrets. Use |oc|
183
+ or the OpenShift Container Platform UI to apply the following |yaml|
184
+ file before you deploy the |k8s-op-short|:
185
+
186
+ .. note::
187
+
188
+ In the sample |yaml| file, replace ``<namespace>`` with the
189
+ namespace that you want to deploy the |k8s-op-short| to.
190
+
191
+ .. literalinclude:: /includes/service-accounts-and-secrets-cluster-wide.yaml
192
+ :language: yaml
193
+ :linenos:
180
194
181
195
Customize the CustomResourceDefinitions that the |k8s-op-short| Watches
182
196
-----------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments