-
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.
feat(sks): add configuration to make Traefik work with new SKS module (…
…#44) * feat(sks): add configuration to make Traefik work with new SKS module * docs(terraform-docs): generate docs and write to README.adoc * docs(terraform-docs): generate docs and write to README.adoc --------- Co-authored-by: lentidas <[email protected]>
- Loading branch information
Showing
6 changed files
with
82 additions
and
12 deletions.
There are no files selected for viewing
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
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
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,14 @@ | ||
variable "nlb_id" { | ||
description = "ID of the Exoscale NLB to use for the SKS cluster." | ||
type = string | ||
} | ||
|
||
variable "router_nodepool_id" { | ||
description = "ID of the node pool specifically created for Traefik." | ||
type = string | ||
} | ||
|
||
variable "router_instance_pool_id" { | ||
description = "Instance pool ID of the node pool specifically created for Traefik." | ||
type = string | ||
} |
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 |
---|---|---|
@@ -1,3 +1,22 @@ | ||
locals { | ||
helm_values = [] | ||
helm_values = [{ | ||
traefik = { | ||
service = { | ||
annotations = { | ||
"service.beta.kubernetes.io/exoscale-loadbalancer-id" = var.nlb_id | ||
"service.beta.kubernetes.io/exoscale-loadbalancer-external" = "true" | ||
"service.beta.kubernetes.io/exoscale-loadbalancer-service-instancepool-id" = var.router_instance_pool_id | ||
} | ||
} | ||
nodeSelector = { | ||
"node.exoscale.net/nodepool-id" = var.router_nodepool_id | ||
} | ||
tolerations = [{ | ||
key = "nodepool" | ||
operator = "Equal" | ||
value = "router" | ||
effect = "NoSchedule" | ||
}] | ||
} | ||
}] | ||
} |
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
output "id" { | ||
value = module.traefik.id | ||
description = "ID to pass other modules in order to refer to this module as a dependency. It takes the ID that comes from the main module and passes it along to the code that called this variant in the first place." | ||
value = module.traefik.id | ||
} |