Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ 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"
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"
Expand All @@ -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.
Expand Down Expand Up @@ -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.

Expand All @@ -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.

Expand Down
11 changes: 1 addition & 10 deletions backup/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion examples/complete/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ No requirements.

| Name | Source | Version |
|------|--------|---------|
| <a name="module_mysql"></a> [mysql](#module\_mysql) | https://github.com/sq-ia/terraform-kubernetes-mysql.git | n/a |
| <a name="module_mysql"></a> [mysql](#module\_mysql) | squareops/mysql/kubernetes | n/a |

## Resources

Expand Down
14 changes: 7 additions & 7 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@ locals {
}

module "mysql" {
source = "https://github.com/sq-ia/terraform-kubernetes-mysql.git"
source = "squareops/mysql/kubernetes"
cluster_name = ""
mysqldb_config = {
name = local.name
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"
secondary_db_replica_count = 2
}
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_name/filename"
s3_bucket_region = "bucket_region"
}
mysqldb_exporter_enabled = true
}