Set cpu/memory resources requests/limits for some addons
* Set resource requests and limits for Grafana and CLUO * Set resource requests for Prometheus, but allow usage to grow since needs vary widely * Leave nginx without resource requests/limits for now, its typically well behaved
This commit is contained in:
parent
1feefbe9c6
commit
6dd2731046
|
@ -18,34 +18,41 @@ spec:
|
||||||
annotations:
|
annotations:
|
||||||
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
|
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
|
||||||
spec:
|
spec:
|
||||||
containers:
|
|
||||||
- name: update-agent
|
|
||||||
image: quay.io/coreos/container-linux-update-operator:v0.7.0
|
|
||||||
command:
|
|
||||||
- "/bin/update-agent"
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /var/run/dbus
|
|
||||||
name: var-run-dbus
|
|
||||||
- mountPath: /etc/coreos
|
|
||||||
name: etc-coreos
|
|
||||||
- mountPath: /usr/share/coreos
|
|
||||||
name: usr-share-coreos
|
|
||||||
- mountPath: /etc/os-release
|
|
||||||
name: etc-os-release
|
|
||||||
env:
|
|
||||||
# read by update-agent as the node name to manage reboots for
|
|
||||||
- name: UPDATE_AGENT_NODE
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: spec.nodeName
|
|
||||||
- name: POD_NAMESPACE
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.namespace
|
|
||||||
tolerations:
|
tolerations:
|
||||||
- key: node-role.kubernetes.io/master
|
- key: node-role.kubernetes.io/master
|
||||||
operator: Exists
|
operator: Exists
|
||||||
effect: NoSchedule
|
effect: NoSchedule
|
||||||
|
containers:
|
||||||
|
- name: update-agent
|
||||||
|
image: quay.io/coreos/container-linux-update-operator:v0.7.0
|
||||||
|
command:
|
||||||
|
- "/bin/update-agent"
|
||||||
|
env:
|
||||||
|
# read by update-agent as the node name to manage reboots for
|
||||||
|
- name: UPDATE_AGENT_NODE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: spec.nodeName
|
||||||
|
- name: POD_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 20Mi
|
||||||
|
limits:
|
||||||
|
cpu: 20m
|
||||||
|
memory: 40Mi
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/run/dbus
|
||||||
|
name: var-run-dbus
|
||||||
|
- mountPath: /etc/coreos
|
||||||
|
name: etc-coreos
|
||||||
|
- mountPath: /usr/share/coreos
|
||||||
|
name: usr-share-coreos
|
||||||
|
- mountPath: /etc/os-release
|
||||||
|
name: etc-os-release
|
||||||
volumes:
|
volumes:
|
||||||
- name: var-run-dbus
|
- name: var-run-dbus
|
||||||
hostPath:
|
hostPath:
|
||||||
|
|
|
@ -15,17 +15,25 @@ spec:
|
||||||
annotations:
|
annotations:
|
||||||
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
|
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
|
||||||
spec:
|
spec:
|
||||||
containers:
|
|
||||||
- name: update-operator
|
|
||||||
image: quay.io/coreos/container-linux-update-operator:v0.7.0
|
|
||||||
command:
|
|
||||||
- "/bin/update-operator"
|
|
||||||
env:
|
|
||||||
- name: POD_NAMESPACE
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.namespace
|
|
||||||
tolerations:
|
tolerations:
|
||||||
- key: node-role.kubernetes.io/master
|
- key: node-role.kubernetes.io/master
|
||||||
operator: Exists
|
operator: Exists
|
||||||
effect: NoSchedule
|
effect: NoSchedule
|
||||||
|
containers:
|
||||||
|
- name: update-operator
|
||||||
|
image: quay.io/coreos/container-linux-update-operator:v0.7.0
|
||||||
|
command:
|
||||||
|
- "/bin/update-operator"
|
||||||
|
env:
|
||||||
|
- name: POD_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 20Mi
|
||||||
|
limits:
|
||||||
|
cpu: 20m
|
||||||
|
memory: 40Mi
|
||||||
|
|
||||||
|
|
|
@ -32,11 +32,11 @@ spec:
|
||||||
containerPort: 8080
|
containerPort: 8080
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 100Mi
|
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
memory: 100Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 200Mi
|
|
||||||
cpu: 200m
|
cpu: 200m
|
||||||
|
memory: 200Mi
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /etc/grafana
|
mountPath: /etc/grafana
|
||||||
|
|
|
@ -28,6 +28,10 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- name: web
|
- name: web
|
||||||
containerPort: 9090
|
containerPort: 9090
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 200Mi
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /etc/prometheus
|
mountPath: /etc/prometheus
|
||||||
|
|
Loading…
Reference in New Issue