在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):mongodb/mongodb-enterprise-kubernetes开源软件地址(OpenSource Url):https://github.com/mongodb/mongodb-enterprise-kubernetes开源编程语言(OpenSource Language):Dockerfile 62.5%开源软件介绍(OpenSource Introduction):MongoDB Enterprise Kubernetes OperatorWelcome to the MongoDB Enterprise Kubernetes Operator. The Operator enables easy deploy of the following applications into Kubernetes clusters:
The Operator requires access to one of our database management tools - Ops Manager or Cloud Manager - to deploy MongoDB instances. You may run Ops Manager either inside or outside Kubernetes, or may use Cloud Manager (cloud.mongodb.com) instead. This is an Enterprise product, available under the Enterprise Advanced license. We also have a Community Operator. Support, Feature Requests and CommunityThe Enterprise Operator is supported by the MongoDB Support Team. If you need help, please file a support ticket. If you have a feature request, you can make one on our Feedback Site You can discuss this integration in our new Community Forum - please use the tag kubernetes-operator VideosHere are some talks from MongoDB Live 2020 about the Operator:
DocumentationMongoDB Resource Specification Ops Manager Resource Specification Troubleshooting Kubernetes Operator Known Issues for Kubernetes Operator RequirementsPlease refer to the Installation Instructions to see which Kubernetes and Openshift versions the Operator is compatible with To work with MongoDB resource this Operator requires Ops Manager (Ops Manager can be installed into the same Kubernetes cluster by the Operator or installed outside of the cluster manually) or Cloud Manager.
InstallationCreate Kubernetes NamespaceThe Mongodb Enterprise Operator is installed, into the
To use a different namespace, update the yaml files' Installation using yaml filesCreate CustomResourceDefinitions
Operator Installation
To install the Operator using yaml files, you may apply the config directly from github;
or can clone this repo, make any edits you need, and apply it from disk:
Installation using the Helm ChartMongoDB's official Helm Charts are hosted at https://github.com/mongodb/helm-charts MongoDB ResourceThis section describes how to deploy MongoDB instances. This requires a working Ops or Cloud Manager installation. See below for instructions on how to configure Ops Manager. Adding Ops Manager CredentialsFor the Operator to work, you will need the following information:
Note: When creating API credentials, you must allow the Pod IP range of your Kubernetes cluster to use the credentials - otherwise, API requests from the Operator to Ops Manager will be rejected.
You can get the Pod IP range of your kubernetes cluster by executing the command: This is documented in greater detail in our installation guide ProjectsA
Apply this file to create the new
CredentialsFor a user to be able to create or update objects in this Ops Manager Project they need either a Public API Key or a
Programmatic API Key. These will be held by Kubernetes as a $ kubectl -n mongodb create secret generic my-credentials --from-literal="user=my-public-api-key" --from-literal="publicApiKey=my-private-api-key" Creating a MongoDB ResourceA MongoDB resource in Kubernetes is a MongoDB. We are going to create a replica set to test that everything is working as expected. There is a MongoDB replica set yaml file in If you have a Project with the name
MongoDBOpsManager ResourceThis section describes how to create the Ops Manager Custom Resource in Kubernetes. Note, that this requires all the CRDs and the Operator application to be installed as described above. Create Admin Credentials SecretBefore creating the Ops Manager resource you need to prepare the information about the admin user which will be created automatically in Ops Manager. You can use the following command to do it: $ kubectl create secret generic ops-manager-admin-secret --from-literal=Username="[email protected]" --from-literal=Password="Passw0rd." --from-literal=FirstName="User" --from-literal=LastName="Name" -n <namespace> Note, that the secret is needed only during the initialization of the Ops Manager object - you can remove it or change the password using Ops Manager UI after the Ops Manager object is created. Create MongoDBOpsManager ResourceUse the file $ kubectl apply -f samples/ops-manager/ops-manager.yaml -n <namespace> Note, that it can take up to 8 minutes to initialize the Application Database and start Ops Manager. Accessing the Ops Manager UI using your web browserIn order to access the Ops Manager UI from outside the Kubernetes cluster, you must enable You will be able to fetch the URL to connect to Ops Manager UI from the Removing the Operator, Databases and Ops Manager from your Kubernetes clusterAs the Operator manages MongoDB and Ops Manager resources, if you want to remove them from your Kubernetes cluster, database instances and Ops Manager must be removed before removing the Operator. Removing the Operator first, or deleting the namespace will cause delays or stall the removal process of MongoDB objects, requiring manual intervention. Here is the correct order to completely remove the Operator and the services managed by it:
ContributingFor PRs to be accepted, all contributors must sign our CLA. Reviewers, please ensure that the CLA has been signed by referring to the contributors tool (internal link). |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论