Skip to content

Commit b6048e5

Browse files
Merge pull request #6 from RohitSquareops/Release-v1.0.0
Initial Release
2 parents c12f735 + e8bd5c3 commit b6048e5

File tree

4 files changed

+16
-25
lines changed

4 files changed

+16
-25
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ This module allows you to easily deploy a MySQL database on Kubernetes using Hel
1818

1919
```hcl
2020
module "mysql" {
21-
source = "https://github.com/sq-ia/terraform-kubernetes-mysql.git"
21+
source = "squareops/mysql/kubernetes"
2222
cluster_name = "dev-cluster"
2323
mysqldb_config = {
24-
name = "skaf"
24+
name = "mysql"
2525
values_yaml = ""
2626
environment = "prod"
2727
architecture = "replication"
28-
storage_class_name = "gp2"
28+
storage_class_name = "gp3"
2929
custom_user_username = "admin"
3030
primary_db_volume_size = "10Gi"
3131
secondary_db_volume_size = "10Gi"
@@ -47,10 +47,10 @@ module "mysql" {
4747
4848
4949
```
50-
Refer [examples](https://github.com/sq-ia/terraform-kubernetes-mysql/tree/main/examples/complete) for more details.
50+
Refer [examples](https://github.com/squareops/terraform-kubernetes-mysql/tree/main/examples/complete) for more details.
5151

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

5555
## Important Notes
5656
1. In order to enable the exporter, it is required to deploy Prometheus/Grafana first.
@@ -126,7 +126,7 @@ No modules.
126126

127127
To report an issue with a project:
128128

129-
1. Check the repository's [issue tracker](https://github.com/sq-ia/terraform-kubernetes-mysql/issues) on GitHub
129+
1. Check the repository's [issue tracker](https://github.com/squareops/terraform-kubernetes-mysql/issues) on GitHub
130130
2. Search to see if the issue has already been reported
131131
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.
132132

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

139139
To support a GitHub project by liking it, you can follow these steps:
140140

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

143143
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.
144144

backup/templates/cronjob.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,4 @@ spec:
4040
secretKeyRef:
4141
name: aws-mysql
4242
key: AWS_DEFAULT_REGION
43-
# - name: AWS_ACCESS_KEY_ID
44-
# valueFrom:
45-
# secretKeyRef:
46-
# name: aws-key
47-
# key: AWS_ACCESS_KEY_ID
48-
# - name: AWS_SECRET_ACCESS_KEY
49-
# valueFrom:
50-
# secretKeyRef:
51-
# name: aws-secret
52-
# key: AWS_SECRET_ACCESS_KEY
43+

examples/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_mysql"></a> [mysql](#module\_mysql) | https://github.com/sq-ia/terraform-kubernetes-mysql.git | n/a |
24+
| <a name="module_mysql"></a> [mysql](#module\_mysql) | squareops/mysql/kubernetes | n/a |
2525

2626
## Resources
2727

examples/complete/main.tf

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

1212
module "mysql" {
13-
source = "https://github.com/sq-ia/terraform-kubernetes-mysql.git"
13+
source = "squareops/mysql/kubernetes"
1414
cluster_name = ""
1515
mysqldb_config = {
1616
name = local.name
1717
values_yaml = file("./helm/values.yaml")
1818
environment = local.environment
1919
architecture = "replication"
20-
storage_class_name = "infra-service-sc"
20+
storage_class_name = "gp3"
2121
custom_user_username = "admin"
2222
primary_db_volume_size = "10Gi"
2323
secondary_db_volume_size = "10Gi"
2424
secondary_db_replica_count = 2
2525
}
2626
mysqldb_backup_enabled = true
2727
mysqldb_backup_config = {
28-
s3_bucket_uri = "s3://mysqlbackupp"
29-
s3_bucket_region = "us-east-2"
30-
cron_for_full_backup = "*/2 * * * *"
28+
s3_bucket_uri = "s3://bucket_name"
29+
s3_bucket_region = "bucket_region"
30+
cron_for_full_backup = "* * * * *"
3131
}
3232
mysqldb_restore_enabled = true
3333
mysqldb_restore_config = {
34-
s3_bucket_uri = "s3://mysqldumprestore/10-dump.sql"
35-
s3_bucket_region = "us-east-2"
34+
s3_bucket_uri = "s3://bucket_name/filename"
35+
s3_bucket_region = "bucket_region"
3636
}
3737
mysqldb_exporter_enabled = true
3838
}

0 commit comments

Comments
 (0)