Skip to content

Commit

Permalink
Merge pull request #1358 from rksharma95/fix-resource-limit
Browse files Browse the repository at this point in the history
chore(deployment): remove kubearmor-controller resource limits
  • Loading branch information
rksharma95 authored Aug 9, 2023
2 parents 46a1e11 + c0e54ff commit e2d5d57
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
8 changes: 2 additions & 6 deletions deployments/get/objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,13 +565,9 @@ func GetKubeArmorControllerDeployment(namespace string) *appsv1.Deployment {
PeriodSeconds: int32(10),
},
Resources: corev1.ResourceRequirements{
Limits: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("100m"),
corev1.ResourceMemory: resource.MustParse("30Mi"),
},
Requests: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("100m"),
corev1.ResourceMemory: resource.MustParse("20Mi"),
corev1.ResourceCPU: resource.MustParse("10m"),
corev1.ResourceMemory: resource.MustParse("64Mi"),
},
},
},
Expand Down
3 changes: 0 additions & 3 deletions deployments/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ spec:
initialDelaySeconds: 5
periodSeconds: 10
resources:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 10m
memory: 64Mi
Expand Down
1 change: 0 additions & 1 deletion deployments/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,6 @@ kubearmor:
- hostPath:
path: /lib/modules
type: Directory
type: DirectoryOrCreate
name: lib-modules-path
- hostPath:
path: /sys/fs/bpf
Expand Down

0 comments on commit e2d5d57

Please sign in to comment.