Skip to content

Commit

Permalink
fix(installer): add request and limit resources for cilium workload (#…
Browse files Browse the repository at this point in the history
…1602)

Co-authored-by: yunjiazhong <[email protected]>
  • Loading branch information
yunjianzhong and yunjiazhong authored Sep 28, 2021
1 parent 91e7629 commit 6e8f177
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
19 changes: 18 additions & 1 deletion pkg/platform/provider/baremetal/manifests/cilium/cilium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,13 @@ spec:
- NET_ADMIN
- SYS_MODULE
privileged: true
resources:
requests:
cpu: 100m
memory: 512Mi
limits:
cpu: 2000m
memory: 2Gi
volumeMounts:
- mountPath: /sys/fs/bpf
name: bpf-maps
Expand Down Expand Up @@ -560,7 +567,10 @@ spec:
resources:
requests:
cpu: 100m
memory: 100Mi
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
restartPolicy: Always
priorityClassName: system-node-critical
serviceAccount: cilium
Expand Down Expand Up @@ -703,6 +713,13 @@ spec:
initialDelaySeconds: 60
periodSeconds: 10
timeoutSeconds: 3
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 1000m
memory: 1Gi
volumeMounts:
- mountPath: /tmp/cilium/config-map
name: cilium-config-path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ spec:
resources:
requests:
cpu: 100m
memory: 100Mi
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ spec:
- image: {{ .MasqImage }}
imagePullPolicy: IfNotPresent
name: ip-masq-agent
resources: {}
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
Expand Down
3 changes: 3 additions & 0 deletions pkg/platform/provider/baremetal/manifests/cilium/router.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ spec:
imagePullPolicy: IfNotPresent
name: cilium-router
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
Expand Down

0 comments on commit 6e8f177

Please sign in to comment.