mirror of
https://github.com/weaveworks/scope.git
synced 2026-04-01 00:08:44 +00:00
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.
40 lines
915 B
YAML
40 lines
915 B
YAML
# borrowed from https://cloud.weave.works/k8s/scope.yaml?k8s-version=1.9.3
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: weave-scope-app
|
|
labels:
|
|
name: weave-scope-app
|
|
app: weave-scope
|
|
weave-cloud-component: scope
|
|
weave-scope-component: app
|
|
namespace: weave
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: weave-scope
|
|
revisionHistoryLimit: 2
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: weave-scope-app
|
|
app: weave-scope
|
|
weave-cloud-component: scope
|
|
weave-scope-component: app
|
|
spec:
|
|
containers:
|
|
- name: app
|
|
args:
|
|
- '--no-probe'
|
|
env: []
|
|
image: weaveworks/scope:1.10.2
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 4040
|
|
protocol: TCP
|
|
resources:
|
|
requests:
|
|
cpu: 200m
|
|
memory: 200Mi
|