mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-16 03:49:52 +00:00
Add CPU and memory requests to example Kubernetes manifests
If you don't specify, the default is typically 0 which (a) gives the Kubernetes scheduler a false idea of expected usage and (b) makes the Linux scheduler penalise the Scope processes under contention. For best results adjust the figures here after observing actual usage on your cluster.
This commit is contained in:
@@ -33,3 +33,7 @@ spec:
|
||||
ports:
|
||||
- containerPort: 4040
|
||||
protocol: TCP
|
||||
resources:
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 200Mi
|
||||
|
||||
@@ -38,6 +38,10 @@ spec:
|
||||
fieldPath: spec.nodeName
|
||||
image: weaveworks/scope:1.10.2
|
||||
imagePullPolicy: IfNotPresent
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 100Mi
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumeMounts:
|
||||
|
||||
Reference in New Issue
Block a user