{"id":25823376,"url":"https://github.com/saada/mongodb-operator","last_synced_at":"2025-08-22T02:06:08.526Z","repository":{"id":146317486,"uuid":"133246933","full_name":"saada/mongodb-operator","owner":"saada","description":"Kubernetes (k8s) MongoDB operator written in Go with operator-framework.","archived":false,"fork":false,"pushed_at":"2018-05-13T14:57:51.000Z","size":13,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-22T02:03:06.953Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saada.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-13T14:57:38.000Z","updated_at":"2020-06-21T19:01:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf06e7be-bcc5-419e-a53c-e3eaee93d334","html_url":"https://github.com/saada/mongodb-operator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saada/mongodb-operator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saada%2Fmongodb-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saada%2Fmongodb-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saada%2Fmongodb-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saada%2Fmongodb-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saada","download_url":"https://codeload.github.com/saada/mongodb-operator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saada%2Fmongodb-operator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271574431,"owners_count":24783319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-28T11:54:01.470Z","updated_at":"2025-08-22T02:06:08.516Z","avatar_url":"https://github.com/saada.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mongodb-operator\n\nInspired by [Sundeep Dinesh's talk](https://www.youtube.com/watch?v=m8anzXcP-J8) on his experiment called [mongo-k8s-sidecar](https://github.com/thesandlord/mongo-k8s-sidecar).\nIn this video, he mentions next steps for the project including creating an Operator. This is the manifestation of his vision.\n\n## Stability\n\nLimited Alpha\n\n## Features\n\n* Built with [operator-sdk](https://github.com/operator-framework/operator-sdk)\n\n## Supported Topologies\n\n* Single mongod\n\n```yml\napiVersion: \"saada.mongodb.operator/v1alpha1\"\nkind: \"MongoService\"\nmetadata:\n  name: \"MyMongoService\"\nspec:\n  replicas: 1\n```\n\n## Upcoming Features\n\n* Configurable Volumes\n* Client driven index creation\n* Failover Replicasets\n* [Backups](https://medium.com/google-cloud/mgob-a-mongodb-backup-agent-for-kubernetes-cfc9b30c6c92)\n* Automatic arbiter pod deployment while a statefulset is down\n\n## Upcoming Deployment Topologies\n\n* Replicaset\n\n```yml\napiVersion: \"saada.mongodb.operator/v1alpha1\"\nkind: \"MongoService\"\nmetadata:\n  name: \"MyMongoReplicasetCluster\"\nspec:\n  replicas: 3\n```\n\n* Sharded replicaset\n\n```yml\napiVersion: \"saada.mongodb.operator/v1alpha1\"\nkind: \"MongoService\"\nmetadata:\n  name: \"MyMongoReplicasetCluster\"\nspec:\n  shards: 3\n  replicasPerShard: 3\n```\n\n* Config Servers\n\n```yml\napiVersion: \"saada.mongodb.operator/v1alpha1\"\nkind: \"MongoService\"\nmetadata:\n  name: \"MyMongoReplicasetCluster\"\nspec:\n  shards: 3\n  replicasPerShard: 3\n  configServers: 3\n```\n\n* Arbiters\n\nCreate arbiters when instances fail to come up and even out quorum count to satisfy an odd number of instances. This is to prevent [split-brain](\u003chttps://en.wikipedia.org/wiki/Split-brain_(computing)\u003e)\n\n```yml\napiVersion: \"saada.mongodb.operator/v1alpha1\"\nkind: \"MongoService\"\nmetadata:\n  name: \"MyMongoReplicasetCluster\"\nspec:\n  shards: 3\n  replicasPerShard: 4\n  configServers: 3\n  arbiters: true # each of the shards will get 1 arbiter instance to satisfy an odd number of cluster members (4+1)\n```\n\n## Development\n\nAfter installing the [operator-sdk](https://github.com/operator-framework/operator-sdk)\n\n```sh\noperator-sdk new mongodb-operator --api-version=saada.mongodb.operator/v1alpha1 --kind=MongoService\n```\n\nAfter updating `types.go`, run\n\n```sh\nmake regenerate\n```\n\nRun makefile and check the operator pod's logs to debug issues\n\n```sh\nmake\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaada%2Fmongodb-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaada%2Fmongodb-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaada%2Fmongodb-operator/lists"}