mirror of
https://github.com/vcscsvcscs/OCI-Kubernetes-cluster-with-traefik.git
synced 2025-08-14 06:49:05 +02:00
Add oke and nlb to managed cluster
This commit is contained in:
20
oci-managed/nlb/traefik.tf
Normal file
20
oci-managed/nlb/traefik.tf
Normal file
@@ -0,0 +1,20 @@
|
||||
resource "helm_release" "traefik" {
|
||||
namespace = "traefik-loadbalancer"
|
||||
create_namespace = true
|
||||
name = "traefik"
|
||||
repository = "https://traefik.github.io/charts"
|
||||
chart = "traefik"
|
||||
version = var.traefik_chart_version
|
||||
|
||||
# Helm chart deployment can sometimes take longer than the default 5 minutes
|
||||
timeout = var.timeout_seconds
|
||||
|
||||
# If values file specified by the var.values_file input variable exists then apply the values from this file
|
||||
# else apply the default values from the chart
|
||||
values = [fileexists("${path.root}/${var.values_file}") == true ? file("${path.root}/${var.values_file}") : ""]
|
||||
|
||||
set {
|
||||
name = "deployment.replicas"
|
||||
value = var.replica_count
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user