From 0abc746cd42fcfbc00a2618cc89917de378e6b7d Mon Sep 17 00:00:00 2001 From: RohitSquareops Date: Tue, 30 May 2023 23:56:28 +0530 Subject: [PATCH 1/3] Initial Release --- README.md | 10 +++++----- examples/complete/README.md | 2 +- examples/complete/main.tf | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 72acb19..02ebaff 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ This module allows you to easily deploy a MySQL database on Kubernetes using Hel ```hcl module "mysql" { - source = "https://github.com/sq-ia/terraform-kubernetes-mysql.git" + source = "squareops/mysql/kubernetes" cluster_name = "dev-cluster" mysqldb_config = { name = "skaf" @@ -47,10 +47,10 @@ module "mysql" { ``` -Refer [examples](https://github.com/sq-ia/terraform-kubernetes-mysql/tree/main/examples/complete) for more details. +Refer [examples](https://github.com/squareops/terraform-kubernetes-mysql/tree/main/examples/complete) for more details. ## IAM Permissions -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) +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) ## Important Notes 1. In order to enable the exporter, it is required to deploy Prometheus/Grafana first. @@ -126,7 +126,7 @@ No modules. To report an issue with a project: - 1. Check the repository's [issue tracker](https://github.com/sq-ia/terraform-kubernetes-mysql/issues) on GitHub + 1. Check the repository's [issue tracker](https://github.com/squareops/terraform-kubernetes-mysql/issues) on GitHub 2. Search to see if the issue has already been reported 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. @@ -138,7 +138,7 @@ Apache License, Version 2.0, January 2004 (http://www.apache.org/licenses/). To support a GitHub project by liking it, you can follow these steps: - 1. Visit the repository: Navigate to the [GitHub repository](https://github.com/sq-ia/terraform-kubernetes-mysql). + 1. Visit the repository: Navigate to the [GitHub repository](https://github.com/squareops/terraform-kubernetes-mysql). 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. diff --git a/examples/complete/README.md b/examples/complete/README.md index 2aa9adb..2dd9b8a 100644 --- a/examples/complete/README.md +++ b/examples/complete/README.md @@ -21,7 +21,7 @@ No requirements. | Name | Source | Version | |------|--------|---------| -| [mysql](#module\_mysql) | https://github.com/sq-ia/terraform-kubernetes-mysql.git | n/a | +| [mysql](#module\_mysql) | squareops/mysql/kubernetes | n/a | ## Resources diff --git a/examples/complete/main.tf b/examples/complete/main.tf index bdc3e12..cc8c84c 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -10,7 +10,7 @@ locals { } module "mysql" { - source = "https://github.com/sq-ia/terraform-kubernetes-mysql.git" + source = "squareops/mysql/kubernetes" cluster_name = "" mysqldb_config = { name = local.name @@ -25,14 +25,14 @@ module "mysql" { } mysqldb_backup_enabled = true mysqldb_backup_config = { - s3_bucket_uri = "s3://mysqlbackupp" - s3_bucket_region = "us-east-2" - cron_for_full_backup = "*/2 * * * *" + s3_bucket_uri = "s3://bucket_name" + s3_bucket_region = "bucket_region" + cron_for_full_backup = "* * * * *" } mysqldb_restore_enabled = true mysqldb_restore_config = { - s3_bucket_uri = "s3://mysqldumprestore/10-dump.sql" - s3_bucket_region = "us-east-2" + s3_bucket_uri = "s3://bucket_region/filename" + s3_bucket_region = "bucket_region" } mysqldb_exporter_enabled = true } From 48000f52022110772991590a3f1129cdf24968b9 Mon Sep 17 00:00:00 2001 From: RohitSquareops Date: Wed, 31 May 2023 10:27:23 +0530 Subject: [PATCH 2/3] updated reference and readme.md file --- README.md | 4 ++-- examples/complete/main.tf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 02ebaff..d25682a 100644 --- a/README.md +++ b/README.md @@ -21,11 +21,11 @@ module "mysql" { source = "squareops/mysql/kubernetes" cluster_name = "dev-cluster" mysqldb_config = { - name = "skaf" + name = "mysql" values_yaml = "" environment = "prod" architecture = "replication" - storage_class_name = "gp2" + storage_class_name = "gp3" custom_user_username = "admin" primary_db_volume_size = "10Gi" secondary_db_volume_size = "10Gi" diff --git a/examples/complete/main.tf b/examples/complete/main.tf index cc8c84c..f4394cb 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -17,7 +17,7 @@ module "mysql" { values_yaml = file("./helm/values.yaml") environment = local.environment architecture = "replication" - storage_class_name = "infra-service-sc" + storage_class_name = "gp3" custom_user_username = "admin" primary_db_volume_size = "10Gi" secondary_db_volume_size = "10Gi" From e8bd5c318f8d4a189fa7ba6cb1ec46714fe3229e Mon Sep 17 00:00:00 2001 From: Rohit Singh <107384244+RohitSquareops@users.noreply.github.com> Date: Wed, 7 Jun 2023 08:03:08 +0000 Subject: [PATCH 3/3] updated reference and removed commented code --- backup/templates/cronjob.yaml | 11 +---------- examples/complete/main.tf | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/backup/templates/cronjob.yaml b/backup/templates/cronjob.yaml index 90589f5..3c5ea6e 100644 --- a/backup/templates/cronjob.yaml +++ b/backup/templates/cronjob.yaml @@ -40,13 +40,4 @@ spec: secretKeyRef: name: aws-mysql key: AWS_DEFAULT_REGION - # - name: AWS_ACCESS_KEY_ID - # valueFrom: - # secretKeyRef: - # name: aws-key - # key: AWS_ACCESS_KEY_ID - # - name: AWS_SECRET_ACCESS_KEY - # valueFrom: - # secretKeyRef: - # name: aws-secret - # key: AWS_SECRET_ACCESS_KEY + diff --git a/examples/complete/main.tf b/examples/complete/main.tf index f4394cb..8d98f72 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -31,7 +31,7 @@ module "mysql" { } mysqldb_restore_enabled = true mysqldb_restore_config = { - s3_bucket_uri = "s3://bucket_region/filename" + s3_bucket_uri = "s3://bucket_name/filename" s3_bucket_region = "bucket_region" } mysqldb_exporter_enabled = true