Skip to content

Commit 563c7de

Browse files
Tailored liqo helm chart values (#3)
1 parent e4aa746 commit 563c7de

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ MIT
352352

353353
| Name | Description |
354354
|------|-------------|
355-
| <a name="output_cluster_id"></a> [cluster\_id](#output\_cluster\_id) | ID of the Omni-enabled cluster |
356-
| <a name="output_id"></a> [id](#output\_id) | ID of the castai\_omni\_cluster resource |
357-
| <a name="output_organization_id"></a> [organization\_id](#output\_organization\_id) | Organization ID of the Omni cluster |
355+
| <a name="output_cluster_id"></a> [cluster\_id](#output\_cluster\_id) | Cluster ID of the Omni-enabled cluster |
356+
| <a name="output_organization_id"></a> [organization\_id](#output\_organization\_id) | Organization ID of the Omni-enabled cluster |
358357
<!-- END_TF_DOCS -->

main.tf

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,17 @@ locals {
99
omni_agent_chart = "omni-agent"
1010
castai_helm_repository = "https://castai.github.io/helm-charts"
1111

12+
# Common Liqo configurations as YAML
13+
common_liqo_yaml_values = <<-EOT
14+
networking:
15+
fabric:
16+
config:
17+
healthProbeBindAddressPort: '7071'
18+
metricsAddressPort: '7072'
19+
EOT
20+
1221
# Select the appropriate set_values based on k8s_provider
13-
set_values = var.k8s_provider == "gke" ? module.liqo_helm_values_gke[0].set_values : module.liqo_helm_values_eks[0].set_values
22+
provider_specific_liqo_values = var.k8s_provider == "gke" ? module.liqo_helm_values_gke[0].set_values : module.liqo_helm_values_eks[0].set_values
1423
}
1524

1625
# GKE-specific Liqo Helm chart configuration
@@ -53,7 +62,8 @@ resource "helm_release" "liqo" {
5362
cleanup_on_fail = true
5463
wait = true
5564

56-
set = local.set_values
65+
values = [local.common_liqo_yaml_values]
66+
set = local.provider_specific_liqo_values
5767
}
5868

5969
# Wait for Liqo network resources to be ready before proceeding

modules/eks/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ locals {
3333
{
3434
name = "telemetry.enabled"
3535
value = "false"
36+
},
37+
{
38+
name = "virtualKubelet.extra.args"
39+
value = "{--certificate-type=aws}"
3640
}
3741
]
3842

0 commit comments

Comments
 (0)