MongoDB Ops Manager adding annotations/labels to k8s service

When using the k8s manifest, how does one add labels and annotations to the generated service “ops-manager-svc”?

apiVersion: mongodb.com/v1
kind: MongoDBOpsManager
metadata:
  name: ops-manager
  namespace: default
spec:
  version: 4.2.6
  adminCredentials: xxxxxxxxxxxx

  applicationDatabase:
    members: 3
    version: 4.2.2
    persistent: true
    podSpec:
      persistence:
        single:
          storage: XXGi

Hello @Phil_Rumble
Welcome to the community forum!!

Could you please let us know the way you have tried to add the annotations and labels to the yaml file.

Also, if you can share why are the annotations and labels needed for the ops manager service file.

Thanks
Aasawari

1 Like