Skip to content

Commit

Permalink
feat(main): Prod EFS
Browse files Browse the repository at this point in the history
  • Loading branch information
aramkarapetian committed May 8, 2024
1 parent d817b71 commit a0324d8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/efs-csi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ No modules.
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | Parent cluster name | `string` | n/a | yes |
| <a name="input_cluster_oidc_arn"></a> [cluster\_oidc\_arn](#input\_cluster\_oidc\_arn) | oidc arn of cluster | `string` | n/a | yes |
| <a name="input_efs_id"></a> [efs\_id](#input\_efs\_id) | Id of EFS filesystem in AWS (Required) | `string` | n/a | yes |
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace name | `string` | `"kube-system"` | no |
| <a name="input_service_account_name"></a> [service\_account\_name](#input\_service\_account\_name) | Service account name | `string` | `"efs-csi-controller-sa"` | no |
| <a name="input_storage_class_name"></a> [storage\_class\_name](#input\_storage\_class\_name) | Storage class name | `string` | `"efs-sc"` | no |

Expand Down
2 changes: 1 addition & 1 deletion modules/efs-csi/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "helm_release" "efs-driver" {
repository = "https://kubernetes-sigs.github.io/aws-efs-csi-driver/"
chart = "aws-efs-csi-driver"
version = "2.3.2"
namespace = "kube-system"
namespace = var.namespace

set {
name = "image.repository"
Expand Down
2 changes: 1 addition & 1 deletion modules/efs-csi/serviceaccount.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "kubernetes_service_account" "servciceaccount" {
metadata {
name = var.service_account_name
namespace = "kube-system"
namespace = var.namespace
labels = {
"app.kubernetes.io/name" = "aws-efs-csi-driver"
}
Expand Down
6 changes: 6 additions & 0 deletions modules/efs-csi/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ variable "service_account_name" {
description = "Service account name"
default = "efs-csi-controller-sa"
}

variable "namespace" {
type = string
description = "Namespace name"
default = "kube-system"
}

0 comments on commit a0324d8

Please sign in to comment.