diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index dc01ee0..fa903e7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -27,6 +27,8 @@ repos:
args:
- --args=--module
- id: terraform_validate
+ args:
+ - --tf-init-args=-upgrade
- repo: https://github.com/aquasecurity/tfsec
rev: v1.28.1
hooks:
diff --git a/modules/kubernetes-clusterip/README.md b/modules/kubernetes-clusterip/README.md
index 587c62a..b07907c 100644
--- a/modules/kubernetes-clusterip/README.md
+++ b/modules/kubernetes-clusterip/README.md
@@ -4,13 +4,13 @@
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.13 |
-| [kubernetes](#requirement\_kubernetes) | 2.20.0 |
+| [kubernetes](#requirement\_kubernetes) | 2.21.1 |
## Providers
| Name | Version |
|------|---------|
-| [kubernetes](#provider\_kubernetes) | 2.20.0 |
+| [kubernetes](#provider\_kubernetes) | 2.21.1 |
## Modules
@@ -20,7 +20,7 @@ No modules.
| Name | Type |
|------|------|
-| [kubernetes_service.clusterip](https://registry.terraform.io/providers/hashicorp/kubernetes/2.20.0/docs/resources/service) | resource |
+| [kubernetes_service.clusterip](https://registry.terraform.io/providers/hashicorp/kubernetes/2.21.1/docs/resources/service) | resource |
## Inputs
diff --git a/modules/kubernetes-clusterip/main.tf b/modules/kubernetes-clusterip/main.tf
index bf303d6..48119e7 100644
--- a/modules/kubernetes-clusterip/main.tf
+++ b/modules/kubernetes-clusterip/main.tf
@@ -3,7 +3,7 @@ terraform {
required_providers {
kubernetes = {
source = "hashicorp/kubernetes"
- version = "2.20.0"
+ version = "2.21.1"
}
}
}
diff --git a/modules/kubernetes-nodeport/README.md b/modules/kubernetes-nodeport/README.md
index a6f02a8..85e6a63 100644
--- a/modules/kubernetes-nodeport/README.md
+++ b/modules/kubernetes-nodeport/README.md
@@ -4,13 +4,13 @@
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.13 |
-| [kubernetes](#requirement\_kubernetes) | 2.20.0 |
+| [kubernetes](#requirement\_kubernetes) | 2.21.1 |
## Providers
| Name | Version |
|------|---------|
-| [kubernetes](#provider\_kubernetes) | 2.20.0 |
+| [kubernetes](#provider\_kubernetes) | 2.21.1 |
## Modules
@@ -20,7 +20,7 @@ No modules.
| Name | Type |
|------|------|
-| [kubernetes_service.nodeport](https://registry.terraform.io/providers/hashicorp/kubernetes/2.20.0/docs/resources/service) | resource |
+| [kubernetes_service.nodeport](https://registry.terraform.io/providers/hashicorp/kubernetes/2.21.1/docs/resources/service) | resource |
## Inputs
diff --git a/modules/kubernetes-nodeport/main.tf b/modules/kubernetes-nodeport/main.tf
index 4558ce2..1d23428 100644
--- a/modules/kubernetes-nodeport/main.tf
+++ b/modules/kubernetes-nodeport/main.tf
@@ -3,7 +3,7 @@ terraform {
required_providers {
kubernetes = {
source = "hashicorp/kubernetes"
- version = "2.20.0"
+ version = "2.21.1"
}
}
}