{"id":15571409,"url":"https://github.com/hatamiarash7/kubernetes-mongodb","last_synced_at":"2026-04-20T13:08:57.916Z","repository":{"id":73239724,"uuid":"246553508","full_name":"hatamiarash7/Kubernetes-MongoDB","owner":"hatamiarash7","description":"Deploy MongoDB replica set in Kubernetes","archived":false,"fork":false,"pushed_at":"2023-12-15T17:57:41.000Z","size":15,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T06:31:18.892Z","etag":null,"topics":["database","db","kubernetes","mongo","mongodb","mongodb-database","replica","replica-set","replicaset","replication"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hatamiarash7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-03-11T11:30:22.000Z","updated_at":"2020-03-11T12:43:51.000Z","dependencies_parsed_at":"2023-12-15T18:52:18.938Z","dependency_job_id":"7cbdf195-fe43-4e31-a2cf-a4f20edbe59a","html_url":"https://github.com/hatamiarash7/Kubernetes-MongoDB","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hatamiarash7/Kubernetes-MongoDB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2FKubernetes-MongoDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2FKubernetes-MongoDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2FKubernetes-MongoDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2FKubernetes-MongoDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hatamiarash7","download_url":"https://codeload.github.com/hatamiarash7/Kubernetes-MongoDB/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2FKubernetes-MongoDB/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32048480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["database","db","kubernetes","mongo","mongodb","mongodb-database","replica","replica-set","replicaset","replication"],"created_at":"2024-10-02T18:00:20.703Z","updated_at":"2026-04-20T13:08:57.887Z","avatar_url":"https://github.com/hatamiarash7.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes MongoDB\n Deploy MongoDB replica set in Kubernetes\n\n## Prerequisites\n\nYou should disable THP ( transparent huge pages ). There is many ways to do that.\n* Write a startup script using `gcr.io/google-containers/startup-script`\n* Use `busybox` image and make DaemonSet to do this in all deployments.\n\nThis one is not a critical problem. `gcr.io/google-containers/startup-scriptis` **12.5MB**, but since we are essentially just running a shell script, it can be changed to a slimmer image, like `busybox` which has an image size of **1.15MB**.  \n`busybox` is lacking the startup functionality of `gcr.io/google-containers/startup-script`. For this we can utilize `initContainers` which were unavailable at the time.\n\nUse [this one](https://gist.github.com/hatamiarash7/ae7fcc9c7155722df77ebbf459d467f5)\n\n```\nkubectl apply -f https://gist.githubusercontent.com/hatamiarash7/ae7fcc9c7155722df77ebbf459d467f5/raw/178d7bb870a266f86de2e881d795ebf57f6e6d77/daemon.yml\n```\n\n## Install\n\n```\nkubectl apply -f replicaset.yml\nkubectl apply -f services.yml\n```\n\n## Usage\n\n```\nmongodb://localhost:27017/?readPreference=primary\u0026ssl=false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatamiarash7%2Fkubernetes-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhatamiarash7%2Fkubernetes-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatamiarash7%2Fkubernetes-mongodb/lists"}