Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ rules:
- cluster.x-k8s.io
resources:
- clusters/status
- machines
- machines/status
verbs:
- get
- list
Expand Down
2 changes: 0 additions & 2 deletions manifest/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ rules:
- cluster.x-k8s.io
resources:
- clusters/status
- machines
- machines/status
verbs:
- get
- list
Expand Down
13 changes: 11 additions & 2 deletions pkg/agent/sveltos-agent-in-mgmt-cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,16 @@ spec:
- --run-mode=do-not-send-reports
command:
- /manager
image: docker.io/projectsveltos/sveltos-agent@sha256:37a6846b7842f614c88757c990ab1a66af9e7ec20add0714c9ef17430b072dd8
env:
- name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
resource: limits.memory
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
resource: limits.cpu
image: docker.io/projectsveltos/sveltos-agent@sha256:16558c3c888196115e4f1153f6c4ad07ef16b79d86ee3aba19d66a2d71bed73c
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down Expand Up @@ -77,7 +86,7 @@ spec:
cpu: 500m
memory: 512Mi
requests:
cpu: 10m
cpu: 100m
memory: 128Mi
securityContext:
allowPrivilegeEscalation: false
Expand Down
13 changes: 11 additions & 2 deletions pkg/agent/sveltos-agent-in-mgmt-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,16 @@ spec:
- --run-mode=do-not-send-reports
command:
- /manager
image: docker.io/projectsveltos/sveltos-agent@sha256:37a6846b7842f614c88757c990ab1a66af9e7ec20add0714c9ef17430b072dd8
env:
- name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
resource: limits.memory
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
resource: limits.cpu
image: docker.io/projectsveltos/sveltos-agent@sha256:16558c3c888196115e4f1153f6c4ad07ef16b79d86ee3aba19d66a2d71bed73c
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down Expand Up @@ -59,7 +68,7 @@ spec:
cpu: 500m
memory: 512Mi
requests:
cpu: 10m
cpu: 100m
memory: 128Mi
securityContext:
allowPrivilegeEscalation: false
Expand Down
13 changes: 11 additions & 2 deletions pkg/agent/sveltos-agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,16 @@ spec:
- --run-mode=do-not-send-reports
command:
- /manager
image: docker.io/projectsveltos/sveltos-agent@sha256:37a6846b7842f614c88757c990ab1a66af9e7ec20add0714c9ef17430b072dd8
env:
- name: TOTAL_MEMORY_LIMIT
valueFrom:
resourceFieldRef:
resource: limits.memory
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
resource: limits.cpu
image: docker.io/projectsveltos/sveltos-agent@sha256:16558c3c888196115e4f1153f6c4ad07ef16b79d86ee3aba19d66a2d71bed73c
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down Expand Up @@ -236,7 +245,7 @@ spec:
cpu: 500m
memory: 512Mi
requests:
cpu: 10m
cpu: 100m
memory: 128Mi
securityContext:
allowPrivilegeEscalation: false
Expand Down
13 changes: 11 additions & 2 deletions pkg/agent/sveltos-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,16 @@ spec:
- --run-mode=do-not-send-reports
command:
- /manager
image: docker.io/projectsveltos/sveltos-agent@sha256:37a6846b7842f614c88757c990ab1a66af9e7ec20add0714c9ef17430b072dd8
env:
- name: TOTAL_MEMORY_LIMIT
valueFrom:
resourceFieldRef:
resource: limits.memory
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
resource: limits.cpu
image: docker.io/projectsveltos/sveltos-agent@sha256:16558c3c888196115e4f1153f6c4ad07ef16b79d86ee3aba19d66a2d71bed73c
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down Expand Up @@ -218,7 +227,7 @@ spec:
cpu: 500m
memory: 512Mi
requests:
cpu: 10m
cpu: 100m
memory: 128Mi
securityContext:
allowPrivilegeEscalation: false
Expand Down