Skip to content

Commit

Permalink
add subsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
deansheather committed Aug 7, 2023
1 parent 0ed2704 commit c2ef101
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions enterprise/templates/kubernetes-envbox/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// - Adds the exectrace sidecar container.
// - Updates the workspace container command to send the process ID namespace
// inum to the sidecar container.
// - Updates the workspace agent subsystem to "exectrace" for telemetry.

terraform {
required_providers {
Expand Down Expand Up @@ -275,6 +276,11 @@ resource "kubernetes_pod" "main" {
name = "CODER_AGENT_URL"
value = data.coder_workspace.me.access_url
}
env {
name = "CODER_AGENT_SUBSYSTEM"
# The value "envbox" gets added by envbox.
value = "exectrace"
}

env {
name = "CODER_INNER_IMAGE"
Expand Down
5 changes: 5 additions & 0 deletions enterprise/templates/kubernetes/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// - Adds the exectrace sidecar container.
// - Updates the workspace container command to send the process ID namespace
// inum to the sidecar container.
// - Updates the workspace agent subsystem to "exectrace" for telemetry.

terraform {
required_providers {
Expand Down Expand Up @@ -349,6 +350,10 @@ resource "kubernetes_pod" "main" {
name = "CODER_AGENT_TOKEN"
value = coder_agent.main.token
}
env {
name = "CODER_AGENT_SUBSYSTEM"
value = "exectrace"
}
resources {
requests = {
"cpu" = "250m"
Expand Down

0 comments on commit c2ef101

Please sign in to comment.