mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Add resource requests to addons
This commit is contained in:
parent
cd59d1e59a
commit
2d5c429f9d
@ -28,9 +28,13 @@ spec:
|
|||||||
- image: gcr.io/google_containers/heapster:v0.18.2
|
- image: gcr.io/google_containers/heapster:v0.18.2
|
||||||
name: heapster
|
name: heapster
|
||||||
resources:
|
resources:
|
||||||
|
# keep request = limit to keep this container in guaranteed class
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: {{ heapster_memory }}
|
memory: {{ heapster_memory }}
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: {{ heapster_memory }}
|
||||||
command:
|
command:
|
||||||
- /heapster
|
- /heapster
|
||||||
- --source=kubernetes:''
|
- --source=kubernetes:''
|
||||||
|
@ -28,9 +28,13 @@ spec:
|
|||||||
- image: gcr.io/google_containers/heapster:v0.18.2
|
- image: gcr.io/google_containers/heapster:v0.18.2
|
||||||
name: heapster
|
name: heapster
|
||||||
resources:
|
resources:
|
||||||
|
# keep request = limit to keep this container in guaranteed class
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: {{ heapster_memory }}
|
memory: {{ heapster_memory }}
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: {{ heapster_memory }}
|
||||||
command:
|
command:
|
||||||
- /heapster
|
- /heapster
|
||||||
- --source=kubernetes:''
|
- --source=kubernetes:''
|
||||||
|
@ -28,9 +28,13 @@ spec:
|
|||||||
- image: gcr.io/google_containers/heapster:v0.18.2
|
- image: gcr.io/google_containers/heapster:v0.18.2
|
||||||
name: heapster
|
name: heapster
|
||||||
resources:
|
resources:
|
||||||
|
# keep request = limit to keep this container in guaranteed class
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: {{ heapster_memory }}
|
memory: {{ heapster_memory }}
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: {{ heapster_memory }}
|
||||||
command:
|
command:
|
||||||
- /heapster
|
- /heapster
|
||||||
- --source=kubernetes:''
|
- --source=kubernetes:''
|
||||||
|
@ -23,9 +23,13 @@ spec:
|
|||||||
- image: gcr.io/google_containers/heapster_influxdb:v0.4
|
- image: gcr.io/google_containers/heapster_influxdb:v0.4
|
||||||
name: influxdb
|
name: influxdb
|
||||||
resources:
|
resources:
|
||||||
|
# keep request = limit to keep this container in guaranteed class
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 200Mi
|
memory: 200Mi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 200Mi
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8083
|
- containerPort: 8083
|
||||||
hostPort: 8083
|
hostPort: 8083
|
||||||
@ -38,9 +42,13 @@ spec:
|
|||||||
name: grafana
|
name: grafana
|
||||||
env:
|
env:
|
||||||
resources:
|
resources:
|
||||||
|
# keep request = limit to keep this container in guaranteed class
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 100Mi
|
||||||
env:
|
env:
|
||||||
# This variable is required to setup templates in Grafana.
|
# This variable is required to setup templates in Grafana.
|
||||||
- name: INFLUXDB_SERVICE_URL
|
- name: INFLUXDB_SERVICE_URL
|
||||||
|
@ -28,9 +28,13 @@ spec:
|
|||||||
- image: gcr.io/google_containers/heapster:v0.18.2
|
- image: gcr.io/google_containers/heapster:v0.18.2
|
||||||
name: heapster
|
name: heapster
|
||||||
resources:
|
resources:
|
||||||
|
# keep request = limit to keep this container in guaranteed class
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: {{ heapster_memory }}
|
memory: {{ heapster_memory }}
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: {{ heapster_memory }}
|
||||||
command:
|
command:
|
||||||
- /heapster
|
- /heapster
|
||||||
- --source=kubernetes:''
|
- --source=kubernetes:''
|
||||||
|
@ -23,9 +23,13 @@ spec:
|
|||||||
- name: etcd
|
- name: etcd
|
||||||
image: gcr.io/google_containers/etcd:2.0.9
|
image: gcr.io/google_containers/etcd:2.0.9
|
||||||
resources:
|
resources:
|
||||||
|
# keep request = limit to keep this container in guaranteed class
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 50Mi
|
memory: 50Mi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 50Mi
|
||||||
command:
|
command:
|
||||||
- /usr/local/bin/etcd
|
- /usr/local/bin/etcd
|
||||||
- -data-dir
|
- -data-dir
|
||||||
@ -42,18 +46,26 @@ spec:
|
|||||||
- name: kube2sky
|
- name: kube2sky
|
||||||
image: gcr.io/google_containers/kube2sky:1.12
|
image: gcr.io/google_containers/kube2sky:1.12
|
||||||
resources:
|
resources:
|
||||||
|
# keep request = limit to keep this container in guaranteed class
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 50Mi
|
memory: 50Mi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 50Mi
|
||||||
args:
|
args:
|
||||||
# command = "/kube2sky"
|
# command = "/kube2sky"
|
||||||
- -domain={{ pillar['dns_domain'] }}
|
- -domain={{ pillar['dns_domain'] }}
|
||||||
- name: skydns
|
- name: skydns
|
||||||
image: gcr.io/google_containers/skydns:2015-10-13-8c72f8c
|
image: gcr.io/google_containers/skydns:2015-10-13-8c72f8c
|
||||||
resources:
|
resources:
|
||||||
|
# keep request = limit to keep this container in guaranteed class
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 50Mi
|
memory: 50Mi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 50Mi
|
||||||
args:
|
args:
|
||||||
# command = "/skydns"
|
# command = "/skydns"
|
||||||
- -machines=http://127.0.0.1:4001
|
- -machines=http://127.0.0.1:4001
|
||||||
@ -84,9 +96,13 @@ spec:
|
|||||||
- name: healthz
|
- name: healthz
|
||||||
image: gcr.io/google_containers/exechealthz:1.0
|
image: gcr.io/google_containers/exechealthz:1.0
|
||||||
resources:
|
resources:
|
||||||
|
# keep request = limit to keep this container in guaranteed class
|
||||||
limits:
|
limits:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 20Mi
|
memory: 20Mi
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 20Mi
|
||||||
args:
|
args:
|
||||||
- -cmd=nslookup kubernetes.default.svc.{{ pillar['dns_domain'] }} 127.0.0.1 >/dev/null
|
- -cmd=nslookup kubernetes.default.svc.{{ pillar['dns_domain'] }} 127.0.0.1 >/dev/null
|
||||||
- -port=8080
|
- -port=8080
|
||||||
|
@ -23,8 +23,11 @@ spec:
|
|||||||
- image: gcr.io/google_containers/elasticsearch:1.8
|
- image: gcr.io/google_containers/elasticsearch:1.8
|
||||||
name: elasticsearch-logging
|
name: elasticsearch-logging
|
||||||
resources:
|
resources:
|
||||||
|
# keep request = limit to keep this container in guaranteed class
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9200
|
- containerPort: 9200
|
||||||
name: db
|
name: db
|
||||||
|
@ -23,8 +23,11 @@ spec:
|
|||||||
- name: kibana-logging
|
- name: kibana-logging
|
||||||
image: gcr.io/google_containers/kibana:1.3
|
image: gcr.io/google_containers/kibana:1.3
|
||||||
resources:
|
resources:
|
||||||
|
# keep request = limit to keep this container in guaranteed class
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
env:
|
env:
|
||||||
- name: "ELASTICSEARCH_URL"
|
- name: "ELASTICSEARCH_URL"
|
||||||
value: "http://elasticsearch-logging:9200"
|
value: "http://elasticsearch-logging:9200"
|
||||||
|
@ -23,9 +23,13 @@ spec:
|
|||||||
- name: kube-ui
|
- name: kube-ui
|
||||||
image: gcr.io/google_containers/kube-ui:v4
|
image: gcr.io/google_containers/kube-ui:v4
|
||||||
resources:
|
resources:
|
||||||
|
# keep request = limit to keep this container in guaranteed class
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 50Mi
|
memory: 50Mi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 50Mi
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
|
@ -23,9 +23,13 @@ spec:
|
|||||||
- name: registry
|
- name: registry
|
||||||
image: registry:2
|
image: registry:2
|
||||||
resources:
|
resources:
|
||||||
|
# keep request = limit to keep this container in guaranteed class
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 100Mi
|
||||||
env:
|
env:
|
||||||
- name: REGISTRY_HTTP_ADDR
|
- name: REGISTRY_HTTP_ADDR
|
||||||
value: :5000
|
value: :5000
|
||||||
|
Loading…
Reference in New Issue
Block a user