Skip to content

Commit ba81faa

Browse files
Vipin KumarVipin Kumar
authored andcommitted
feat: added ebpf for sysdig agent
1 parent 2974500 commit ba81faa

File tree

7 files changed

+27
-1
lines changed

7 files changed

+27
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ No modules.
131131
| <a name="input_name"></a> [name](#input\_name) | Cloud Monitoring agent name. Used for naming all kubernetes and helm resources on the cluster. | `string` | `"sysdig-agent"` | no |
132132
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace where to deploy the Cloud Monitoring agent. Default value is 'ibm-observe' | `string` | `"ibm-observe"` | no |
133133
| <a name="input_tolerations"></a> [tolerations](#input\_tolerations) | List of tolerations to apply to Cloud Monitoring agent. | <pre>list(object({<br/> key = optional(string)<br/> operator = optional(string)<br/> value = optional(string)<br/> effect = optional(string)<br/> tolerationSeconds = optional(number)<br/> }))</pre> | <pre>[<br/> {<br/> "operator": "Exists"<br/> },<br/> {<br/> "effect": "NoSchedule",<br/> "key": "node-role.kubernetes.io/master",<br/> "operator": "Exists"<br/> }<br/>]</pre> | no |
134+
| <a name="input_universal_ebpf"></a> [universal\_ebpf](#input\_universal\_ebpf) | Deploy sysdig agent with universal eBPF enabled. It requires kernel version 5.8+. | `bool` | `true` | no |
134135
| <a name="input_wait_till"></a> [wait\_till](#input\_wait\_till) | To avoid long wait times when you run your Terraform code, you can specify the stage when you want Terraform to mark the cluster resource creation as completed. Depending on what stage you choose, the cluster creation might not be fully completed and continues to run in the background. However, your Terraform code can continue to run without waiting for the cluster to be fully created. Supported args are `MasterNodeReady`, `OneWorkerNodeReady`, `IngressReady` and `Normal` | `string` | `"Normal"` | no |
135136
| <a name="input_wait_till_timeout"></a> [wait\_till\_timeout](#input\_wait\_till\_timeout) | Timeout for wait\_till in minutes. | `number` | `90` | no |
136137

ibm_catalog.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@
259259
},
260260
{
261261
"key": "wait_till_timeout"
262+
},
263+
{
264+
"key": "universal_ebpf"
262265
}
263266
],
264267
"install_type": "fullstack"

main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@ resource "helm_release" "cloud_monitoring_agent" {
131131
type = "string"
132132
value = regex("@(.*)", var.kernel_module_image_tag_digest)[0]
133133
}
134+
set {
135+
name = "agent.ebpf.enabled"
136+
value = var.universal_ebpf
137+
}
138+
139+
set {
140+
name = "agent.ebpf.kind"
141+
value = "universal_ebpf"
142+
}
134143
# Specific to SCC WP, enabled by default
135144
set {
136145
name = "nodeAnalyzer.enabled"

solutions/fully-configurable/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,5 @@ module "monitoring_agent" {
4242
agent_limits_memory = var.agent_limits_memory
4343
agent_requests_cpu = var.agent_requests_cpu
4444
agent_requests_memory = var.agent_requests_memory
45+
universal_ebpf = var.universal_ebpf
4546
}

solutions/fully-configurable/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,9 @@ variable "agent_limits_memory" {
232232
description = "Specifies the memory limit for the agent."
233233
default = "1024Mi"
234234
}
235+
236+
variable "universal_ebpf" {
237+
type = bool
238+
description = "Deploy sysdig agent with universal eBPF enabled. It requires kernel version 5.8+."
239+
default = true
240+
}

tests/resources/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ locals {
5555
pool_name = "default" # ibm_container_vpc_cluster automatically names default pool "default" (See https://github.com/IBM-Cloud/terraform-provider-ibm/issues/2849)
5656
machine_type = "bx2.4x16"
5757
workers_per_zone = 2 # minimum of 2 is allowed when using single zone
58-
operating_system = "REDHAT_8_64"
58+
operating_system = "RHCOS"
5959
}
6060
]
6161
}

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,9 @@ variable "agent_limits_memory" {
256256
description = "Specifies the memory limit for the agent."
257257
default = "1024Mi"
258258
}
259+
260+
variable "universal_ebpf" {
261+
type = bool
262+
description = "Deploy sysdig agent with universal eBPF enabled. It requires kernel version 5.8+."
263+
default = true
264+
}

0 commit comments

Comments
 (0)