Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/squids-io/mongodb-kubernetes-operator

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/squids-io/mongodb-kubernetes-operator

  • v0.0.4
  • Source
  • Go
  • Socket score

Version published
Created
Source

MongoDB Community Kubernetes Operator

This is a Kubernetes Operator which deploys MongoDB Community into Kubernetes clusters.

This codebase is currently pre-alpha, and is not ready for use.

If you are a MongoDB Enterprise customer, or need Enterprise features such as Backup, you can use the MongoDB Enterprise Operator for Kubernetes.

Installation

Prerequisites

Before you install the MongoDB Community Kubernetes Operator, you must:

  1. Install kubectl.
  2. Have a Kubernetes solution available to use. If you need a Kubernetes solution, see the Kubernetes documentation on picking the right solution. For testing, MongoDB recommends Kind.
  3. Clone this repository.
    git clone https://github.com/mongodb/mongodb-kubernetes-operator.git
    

Installing the MongoDB Community Kubernetes Operator

The MongoDB Community Kubernetes Operator is a Custom Resource Definition and a controller.

To install the MongoDB Community Kubernetes Operator:

  1. Change to the directory in which you cloned the repository.
  2. Install the Custom Resource Definitions. a. Invoke the following kubectl command:
    kubectl create -f deploy/crds/mongodb.com_mongodb_crd.yaml
    
    b. Verify that the Custom Resource Definitions installed successfully:
    kubectl get crd/mongodb.mongodb.com
    
  3. Install the Operator. a. Invoke the following kubectl command to install the Operator in the specified namespace:
    kubectl create -f deploy --namespace <my-namespace>
    
    b. Verify that the Operator installed successsfully:
    kubectl get pods --namespace <my-namespace>
    

Usage

The /deploy/crds directory contains example MongoDB resources that you can modify and deploy.

Deploying a MongoDB Resource

To deploy your first replica set:

  1. Invoke the following kubectl command:
    kubectl apply -f deploy/crds/mongodb.com_v1_mongodb_cr.yaml --namespace <my-namespace>
    
  2. Verify that the MongoDB resource deployed:
    kubectl get mongodb --namespace <my-namespace>
    

Contributing

Please file issues before filing PRs. For PRs to be accepted, contributors must sign our CLA.

Reviewers, please ensure that the CLA has been signed by referring to the contributors tool (internal link).

License

The source code of this Operator is available under the Apache v2 license.

The MongoDB Agent binary in the agent/ directory may be used under the "Free for Commercial Use" license found in agent/LICENSE.

FAQs

Package last updated on 08 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc