Skip to content

Commit

Permalink
Merge pull request #58 from Xtigyro/feat/set-limits-on-apps
Browse files Browse the repository at this point in the history
Put Resource Limits on Apps
  • Loading branch information
Xtigyro authored Nov 30, 2020
2 parents 27d3725 + 7035dd2 commit a4692d3
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ settings:
itemsPerPage: 40
logsAutoRefreshTimeInterval: 5
resourceAutoRefreshTimeInterval: 5
resources:
requests:
cpu: 50m
memory: 100Mi
limits:
cpu: 200m
memory: 200Mi
16 changes: 16 additions & 0 deletions helmfiles/apps/default/metallb/metallb.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,19 @@ configInline:
protocol: layer2
addresses:
- {{ requiredEnv "KINDADM_KIND_NETW_SHORT" }}.0.1-{{ requiredEnv "KINDADM_KIND_NETW_SHORT" }}.255.255
controller:
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
memory: 25Mi
cpu: 25m
speaker:
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
memory: 25Mi
cpu: 25m
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ extraArgs:
kubelet-preferred-address-types: InternalIP,ExternalIP,Hostname
apiService:
create: true
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 50m
memory: 128Mi
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,18 @@ daemonset:
useHostPort: true
metrics:
enabled: true
resources:
limits:
cpu: 150m
memory: 256Mi
requests:
cpu: 50m
memory: 128Mi
defaultBackend:
resources:
limits:
cpu: 150m
memory: 256Mi
requests:
cpu: 50m
memory: 128Mi
24 changes: 24 additions & 0 deletions helmfiles/apps/optional/weave-scope/weave-scope.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
global:
image:
tag: master-bf6af9cf
weave-scope-frontend:
resources:
requests:
cpu: 25m
memory: 100Mi
limits:
cpu: 150m
memory: 150Mi
weave-scope-agent:
resources:
requests:
cpu: 25m
memory: 100Mi
limits:
cpu: 100m
memory: 150Mi
weave-scope-cluster-agent:
resources:
requests:
cpu: 25m
memory: 100Mi
limits:
cpu: 100m
memory: 150Mi

0 comments on commit a4692d3

Please sign in to comment.