Skip to content

Commit 4a09ade

Browse files
Merge pull request #6 from RohitSquareops/Release-v1.0.0
Initial Release
2 parents 842a9aa + a0415f9 commit 4a09ade

File tree

5 files changed

+18
-26
lines changed

5 files changed

+18
-26
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ This module is for deploying a highly available MongoDB cluster on Kubernetes us
1919

2020
```hcl
2121
module "mongodb" {
22-
source = "https://github.com/sq-ia/terraform-kubernetes-mongodb.git"
23-
cluster_name = "dev-skaf"
22+
source = "squareops/mongodb/kubernetes"
23+
cluster_name = "prod-cluster"
2424
mongodb_config = {
25-
name = "skaf"
25+
name = "mongo"
2626
values_yaml = ""
2727
environment = "prod"
2828
volume_size = "10Gi"
2929
architecture = "replicaset"
3030
replica_count = 2
31-
storage_class_name = "gp2"
31+
storage_class_name = "gp3"
3232
}
3333
mongodb_backup_enabled = true
3434
mongodb_backup_config = {
@@ -51,10 +51,10 @@ module "mongodb" {
5151
5252
5353
```
54-
Refer [examples](https://github.com/sq-ia/terraform-kubernetes-mongodb/tree/main/examples/complete) for more details.
54+
Refer [examples](https://github.com/squareops/terraform-kubernetes-mongodb/tree/main/examples/complete) for more details.
5555

5656
## IAM Permissions
57-
The required IAM permissions to create resources from this module can be found [here](https://github.com/sq-ia/terraform-kubernetes-mongodb/blob/main/IAM.md)
57+
The required IAM permissions to create resources from this module can be found [here](https://github.com/squareops/terraform-kubernetes-mongodb/blob/main/IAM.md)
5858

5959
## Important Notes
6060
1. In order to enable the exporter, it is required to deploy Prometheus/Grafana first.
@@ -130,7 +130,7 @@ No modules.
130130

131131
To report an issue with a project:
132132

133-
1. Check the repository's [issue tracker](https://github.com/sq-ia/terraform-kubernetes-mongodb/issues) on GitHub
133+
1. Check the repository's [issue tracker](https://github.com/squareops/terraform-kubernetes-mongodb/issues) on GitHub
134134
2. Search to see if the issue has already been reported
135135
3. If you can't find an answer to your question in the documentation or issue tracker, you can ask a question by creating a new issue. Be sure to provide enough context and details so others can understand your problem.
136136

@@ -142,7 +142,7 @@ Apache License, Version 2.0, January 2004 (http://www.apache.org/licenses/).
142142

143143
To support a GitHub project by liking it, you can follow these steps:
144144

145-
1. Visit the repository: Navigate to the [GitHub repository](https://github.com/sq-ia/terraform-kubernetes-mongodb).
145+
1. Visit the repository: Navigate to the [GitHub repository](https://github.com/squareops/terraform-kubernetes-mongodb).
146146

147147
2. Click the "Star" button: On the repository page, you'll see a "Star" button in the upper right corner. Clicking on it will star the repository, indicating your support for the project.
148148

example/complete/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ No requirements.
2121

2222
| Name | Source | Version |
2323
|------|--------|---------|
24-
| <a name="module_mongodb"></a> [mongodb](#module\_mongodb) | https://github.com/sq-ia/terraform-kubernetes-mongodb.git | n/a |
24+
| <a name="module_mongodb"></a> [mongodb](#module\_mongodb) | squareops/mongodb/kubernetes | n/a |
2525

2626
## Resources
2727

example/complete/main.tf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ locals {
1010
}
1111

1212
module "mongodb" {
13-
source = "https://github.com/sq-ia/terraform-kubernetes-mongodb.git"
13+
source = "squareops/mongodb/kubernetes"
1414
cluster_name = "dev-cluster"
1515
mongodb_config = {
1616
name = local.name
@@ -19,20 +19,20 @@ module "mongodb" {
1919
volume_size = "10Gi"
2020
architecture = "replicaset"
2121
replica_count = 2
22-
storage_class_name = "gp2"
22+
storage_class_name = "gp3"
2323
}
2424
mongodb_backup_enabled = true
2525
mongodb_backup_config = {
26-
s3_bucket_uri = "s3://mymongo"
27-
s3_bucket_region = local.region
28-
cron_for_full_backup = "*/2 * * * *"
26+
s3_bucket_uri = "s3://bucket_name"
27+
s3_bucket_region = "bucket_region"
28+
cron_for_full_backup = "* * * * *"
2929
}
3030
mongodb_restore_enabled = true
3131
mongodb_restore_config = {
32-
s3_bucket_uri = "s3://mymongo/mongodumpfull_20230424_112501.gz"
33-
s3_bucket_region = "us-east-2"
32+
s3_bucket_uri = "s3://bucket_name/filename"
33+
s3_bucket_region = "bucket_region"
3434
full_restore_enable = true
35-
file_name_full = "mongodumpfull_20230424_112501.gz"
35+
file_name_full = "filename"
3636
incremental_restore_enable = false
3737
file_name_incremental = ""
3838
}

helm/values/exporter/values.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,6 @@ readinessProbe:
5353
replicas: 1
5454

5555
affinity: {}
56-
# nodeAffinity:
57-
# requiredDuringSchedulingIgnoredDuringExecution:
58-
# nodeSelectorTerms:
59-
# - matchExpressions:
60-
# - key: "App-On-Demand"
61-
# operator: In
62-
# values:
63-
# - "true"
6456

6557
resources:
6658
limits:

restore/templates/job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
serviceAccountName: sa-mongo-restore
99
containers:
1010
- name: restore-mongodb
11-
image: squareops01/mongorestore:v2
11+
image: squareops/mongodb-restore:v2
1212
env:
1313
- name: MONGO_URI
1414
value: mongodb://{{ .Values.auth.rootUser }}:{{ .Values.auth.rootPassword }}@mongodb-0.mongodb-headless.{{ .Release.Namespace }}.svc.cluster.local:27017

0 commit comments

Comments
 (0)