Skip to content

Commit

Permalink
chore(k8s/amour/scrutiny): set GOMAXPROCS
Browse files Browse the repository at this point in the history
  • Loading branch information
uhthomas committed Apr 17, 2024
1 parent 579eb2c commit 661dc25
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions k8s/amour/scrutiny/collector/daemon_set_list.cue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ import (
}, {
name: "COLLECTOR_RUN_STARTUP"
value: "true"
}, {
name: "GOMAXPROCS"
valueFrom: resourceFieldRef: {
containerName: "collector"
resource: "limits.cpu"
}
}]
resources: limits: {
(v1.#ResourceCPU): "150m"
Expand Down
12 changes: 9 additions & 3 deletions k8s/amour/scrutiny/web/stateful_set_list.cue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ import (
name: #Name
key: "token"
}
}, {
name: "GOMAXPROCS"
valueFrom: resourceFieldRef: {
containerName: "web"
resource: "limits.cpu"
}
}]
resources: limits: {
(v1.#ResourceCPU): "100m"
Expand Down Expand Up @@ -64,9 +70,9 @@ import (
}
}]
securityContext: {
runAsUser: 1000
runAsGroup: 3000
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 3000
runAsNonRoot: true
fsGroup: 2000
fsGroupChangePolicy: v1.#FSGroupChangeOnRootMismatch
seccompProfile: type: v1.#SeccompProfileTypeRuntimeDefault
Expand Down

0 comments on commit 661dc25

Please sign in to comment.