generated from terraform-modules/template_aws_submodules
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move cluster-autoscaler to a directory
- Loading branch information
Showing
11 changed files
with
146 additions
and
22 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
examples/full-cluster-tf-upgrade/1.25/common-services/cluster-autoscaler/.tf-control
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # .tf-control | ||
| # allows for setting a specific command to be used for tf-* commands under this git repo | ||
| # see tf-control.sh help for more info | ||
|
|
||
| TFCONTROL_VERSION="1.0.5" | ||
|
|
||
| TFCOMMAND="terraform_latest" | ||
| # TF_CLI_CONFIG_FILE=PATH-TO-FILE/.tf-control.tfrc | ||
| # TFARGS="" | ||
| # TFNOLOG="" | ||
| # TFNOCOLOR="" | ||
|
|
||
| # use the following to force a specific version. An upgrade of an existing 0.12.31 to 1.x | ||
| # needs you to cycle through 0.13.17, 0.14.11, and then latest (0.15.5 not needed). Other | ||
| # steps in between. See https://github.e.it.census.gov/terraform/support/tree/master/docs/how-to/terraform-upgrade for details | ||
| # | ||
| #TFCOMMAND="terraform_0.12.31" | ||
| #TFCOMMAND="terraform_0.13.7" | ||
| #TFCOMMAND="terraform_0.14.11" | ||
| #TFCOMMAND="terraform_0.15.5" |
24 changes: 24 additions & 0 deletions
24
examples/full-cluster-tf-upgrade/1.25/common-services/cluster-autoscaler/.tf-control.tfrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| TFCONTROL_VERSION="1.0.5" | ||
|
|
||
| # https://www.terraform.io/docs/cli/config/config-file.html | ||
| plugin_cache_dir = "/data/terraform/terraform.d/plugin-cache" | ||
| #disable_checkpoint = true | ||
|
|
||
| provider_installation { | ||
| # filesystem_mirror { | ||
| # path = "/apps/terraform/terraform.d/providers" | ||
| # include = [ "*/*/*" ] | ||
| # } | ||
| filesystem_mirror { | ||
| path = "/data/terraform/terraform.d/providers" | ||
| include = [ "*/*/*" ] | ||
| } | ||
| # filesystem_mirror { | ||
| # path = "/apps/terraform/terraform.d/providers" | ||
| # include = [ "external.terraform.census.gov/*/*" ] | ||
| # } | ||
| direct { | ||
| include = [ "*/*/*" ] | ||
| } | ||
| } | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
examples/full-cluster-tf-upgrade/1.25/common-services/cluster-autoscaler/locals.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| locals { | ||
| base_tags = { | ||
| "eks-cluster-name" = var.cluster_name | ||
| "boc:tf_module_version" = local._module_version | ||
| "boc:created_by" = "terraform" | ||
| } | ||
| } | ||
|
|
||
| # replace TF remote state accordingly in parent_rs with that from the parent directory, and be sure to make the link | ||
| locals { | ||
| vpc_id = local.parent_rs.cluster_vpc_id | ||
| subnet_ids = local.parent_rs.cluster_subnet_ids | ||
| cluster_worker_sg_id = local.parent_rs.cluster_worker_sg_id | ||
|
|
||
| oidc_provider_url = local.parent_rs.oidc_provider_url | ||
| oidc_provider_arn = local.parent_rs.oidc_provider_arn | ||
| } |
3 changes: 3 additions & 0 deletions
3
examples/full-cluster-tf-upgrade/1.25/common-services/cluster-autoscaler/region.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| locals { | ||
| region = var.region | ||
| } |
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
examples/full-cluster-tf-upgrade/1.25/common-services/cluster-autoscaler/tf-run.data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| VERSION 1.4.2 | ||
| REMOTE-STATE | ||
| COMMAND tf-directory-setup.py -l none -f | ||
| COMMAND setup-new-directory.sh | ||
|
|
||
| LINKTOP init | ||
| LINKTOP includes.d/variables.account_tags.tf | ||
| LINKTOP includes.d/variables.account_tags.auto.tfvars | ||
| LINKTOP includes.d/variables.infrastructure_tags.tf | ||
| LINKTOP includes.d/variables.infrastructure_tags.auto.tfvars | ||
| LINKTOP includes.d/variables.application_tags.tf | ||
| # LINKTOP includes.d/variables.application_tags.auto.tfvars | ||
| LINK variables.application_tags.auto.tfvars | ||
| LINKTOP provider_configs.d/provider.ldap_new.auto.tfvars | ||
| LINKTOP provider_configs.d/provider.ldap_new.tf | ||
| LINKTOP provider_configs.d/provider.ldap_new.variables.tf | ||
| LINK settings.auto.tfvars | ||
| LINK includes.d/parent_rs.tf | ||
| LINK includes.d/data.eks-subdirectory.tf | ||
| LINK includes.d/kubeconfig.eks-subdirectory.tf | ||
| LINK variables.eks.tf | ||
| LINK prefixes.tf | ||
| LINK providers.tf | ||
| LINK variables.addons.tf | ||
| LINK versions.tf | ||
| LINK version.tf | ||
| LINK variables.vpc.tf | ||
| LINK variables.vpc.auto.tfvars | ||
| COMMAND tf-init | ||
|
|
||
| ALL |
6 changes: 6 additions & 0 deletions
6
examples/full-cluster-tf-upgrade/1.25/common-services/cluster-autoscaler/tf-run.destroy.data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| VERSION 1.0.1 | ||
| BACKUP-STATE | ||
| COMMAND tf-init | ||
| COMMAND tf-state list | ||
|
|
||
| ALL |
22 changes: 22 additions & 0 deletions
22
...-upgrade/1.25/common-services/cluster-autoscaler/variables.cluster-autoscaler.auto.tfvars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| cluster_autoscaler_charts = { | ||
| "cluster-autoscaler" = { | ||
| name = "cluster-autoscaler" | ||
| repository = "https://kubernetes.github.io/autoscaler" | ||
| version = "9.29.3" | ||
| use_remote = true | ||
| } | ||
| } | ||
|
|
||
| cluster_autoscaler_images = { | ||
| "cluster-autoscaler" = { | ||
| name = "cluster-autoscaler" | ||
| image = "registry.k8s.io/autoscaling/cluster-autoscaler" | ||
| dest_path = null | ||
| source_registry = "registry.k8s.io" | ||
| source_image = "autoscaling/cluster-autoscaler" | ||
| source_tag = null | ||
| # tag = "v1.27.3" | ||
| tag = "v1.28.0" | ||
| enabled = true | ||
| } | ||
| } |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters