[DOCS-13947] [MEKO] MongoDB Operator missing additional instructions to work with OpenShift. Need to generate Service Accounts for each namespace. Created: 26/Oct/20  Updated: 29/Oct/23  Resolved: 06/Jan/21

Status: Closed
Project: Documentation
Component/s: Kubernetes Operator
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Albert Wong (Inactive) Assignee: John Williams
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Sub-Tasks:
Key
Summary
Type
Status
Assignee
DOCS-14096 Backport DOCSP-13947 to v1.9 Sub-task Closed John Williams  
DOCS-14097 Backport DOCSP-13947 to v1.8 Sub-task Closed John Williams  
DOCS-14098 Backport DOCSP-13947 to v1.7 Sub-task Closed John Williams  
DOCS-14099 Backport DOCSP-13947 to v1.6 Sub-task Closed John Williams  
DOCS-14100 Backport DOCSP-13947 to v1.5 Sub-task Closed John Williams  
Participants:
Days since reply: 3 years, 12 weeks, 1 day ago
Epic Link: DOCSP-3291
Story Points: 3

 Description   

Description

MongoDB Operator missing additional instructions to work with OpenShift. When installing MongoDB Operator for all namespaces, you need to generate Service Accounts for each namespace that you want to use MongoDB.

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Albert Wong (Inactive) [ 17/Nov/20 ]

cross link to https://github.com/mongodb/mongodb-enterprise-kubernetes/issues/168

Comment by Albert Wong (Inactive) [ 28/Oct/20 ]

Here is the yaml that needs to executed to add service accounts for each namespace that wants to do a mongodb deploy when watch namespace is set to *

 

  1. Source: mongodb-enterprise-operator/templates/database-roles.yaml
    apiVersion: v1
    kind: ServiceAccount
    metadata:
    name: mongodb-enterprise-appdb
    namespace: ecommerce
  2. Source: mongodb-enterprise-operator/templates/database-roles.yaml
    apiVersion: v1
    kind: ServiceAccount
    metadata:
    name: mongodb-enterprise-database-pods
    namespace: ecommerce
  3. Source: mongodb-enterprise-operator/templates/database-roles.yaml
    apiVersion: v1
    kind: ServiceAccount
    metadata:
    name: mongodb-enterprise-ops-manager
    namespace: ecommerce
  4. Source: mongodb-enterprise-operator/templates/database-roles.yaml
    kind: Role
    apiVersion: rbac.authorization.k8s.io/v1
    metadata:
    name: mongodb-enterprise-appdb
    namespace: ecommerce
    rules:
  • apiGroups:
  • ""
    resources:
  • secrets
    verbs:
  • get
  1. Source: mongodb-enterprise-operator/templates/database-roles.yaml
    kind: RoleBinding
    apiVersion: rbac.authorization.k8s.io/v1
    metadata:
    name: mongodb-enterprise-appdb
    namespace: ecommerce
    roleRef:
    apiGroup: rbac.authorization.k8s.io
    kind: Role
    name: mongodb-enterprise-appdb
    subjects:
  • kind: ServiceAccount
    name: mongodb-enterprise-appdb
    namespace: ecommerce
Generated at Thu Feb 08 08:09:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.