mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Merge pull request #10653 from dchen1107/resource_management
Set resource limit for addon containers
This commit is contained in:
commit
1d16be675c
@ -22,6 +22,10 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- image: gcr.io/google_containers/heapster:v0.15.0
|
- image: gcr.io/google_containers/heapster:v0.15.0
|
||||||
name: heapster
|
name: heapster
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 200Mi
|
||||||
command:
|
command:
|
||||||
- /heapster
|
- /heapster
|
||||||
- --source=kubernetes:''
|
- --source=kubernetes:''
|
||||||
|
@ -22,6 +22,10 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- image: gcr.io/google_containers/heapster:v0.15.0
|
- image: gcr.io/google_containers/heapster:v0.15.0
|
||||||
name: heapster
|
name: heapster
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 200Mi
|
||||||
command:
|
command:
|
||||||
- /heapster
|
- /heapster
|
||||||
- --source=kubernetes:''
|
- --source=kubernetes:''
|
||||||
|
@ -22,6 +22,10 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- image: gcr.io/google_containers/heapster:v0.15.0
|
- image: gcr.io/google_containers/heapster:v0.15.0
|
||||||
name: heapster
|
name: heapster
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 200Mi
|
||||||
command:
|
command:
|
||||||
- /heapster
|
- /heapster
|
||||||
- --source=kubernetes:''
|
- --source=kubernetes:''
|
||||||
|
@ -22,6 +22,10 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- image: gcr.io/google_containers/heapster_influxdb:v0.3
|
- image: gcr.io/google_containers/heapster_influxdb:v0.3
|
||||||
name: influxdb
|
name: influxdb
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 200Mi
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8083
|
- containerPort: 8083
|
||||||
hostPort: 8083
|
hostPort: 8083
|
||||||
@ -32,6 +36,10 @@ spec:
|
|||||||
mountPath: /data
|
mountPath: /data
|
||||||
- image: gcr.io/google_containers/heapster_grafana:v0.7
|
- image: gcr.io/google_containers/heapster_grafana:v0.7
|
||||||
name: grafana
|
name: grafana
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 100Mi
|
||||||
env:
|
env:
|
||||||
- name: INFLUXDB_EXTERNAL_URL
|
- name: INFLUXDB_EXTERNAL_URL
|
||||||
value: /api/v1/proxy/namespaces/default/services/monitoring-influxdb:api/db/
|
value: /api/v1/proxy/namespaces/default/services/monitoring-influxdb:api/db/
|
||||||
|
@ -22,6 +22,10 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- image: gcr.io/google_containers/heapster:v0.15.0
|
- image: gcr.io/google_containers/heapster:v0.15.0
|
||||||
name: heapster
|
name: heapster
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 200Mi
|
||||||
command:
|
command:
|
||||||
- /heapster
|
- /heapster
|
||||||
- --source=kubernetes:''
|
- --source=kubernetes:''
|
||||||
|
@ -22,6 +22,10 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: etcd
|
- name: etcd
|
||||||
image: gcr.io/google_containers/etcd:2.0.9
|
image: gcr.io/google_containers/etcd:2.0.9
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 50Mi
|
||||||
command:
|
command:
|
||||||
- /usr/local/bin/etcd
|
- /usr/local/bin/etcd
|
||||||
- -listen-client-urls
|
- -listen-client-urls
|
||||||
@ -32,11 +36,19 @@ spec:
|
|||||||
- skydns-etcd
|
- skydns-etcd
|
||||||
- name: kube2sky
|
- name: kube2sky
|
||||||
image: gcr.io/google_containers/kube2sky:1.10
|
image: gcr.io/google_containers/kube2sky:1.10
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
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-03-11-001
|
image: gcr.io/google_containers/skydns:2015-03-11-001
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 50Mi
|
||||||
args:
|
args:
|
||||||
# command = "/skydns"
|
# command = "/skydns"
|
||||||
- -machines=http://localhost:4001
|
- -machines=http://localhost:4001
|
||||||
|
@ -22,6 +22,9 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- image: gcr.io/google_containers/elasticsearch:1.4
|
- image: gcr.io/google_containers/elasticsearch:1.4
|
||||||
name: elasticsearch-logging
|
name: elasticsearch-logging
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9200
|
- containerPort: 9200
|
||||||
name: db
|
name: db
|
||||||
|
@ -22,6 +22,9 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: kibana-logging
|
- name: kibana-logging
|
||||||
image: gcr.io/google_containers/kibana:1.3
|
image: gcr.io/google_containers/kibana:1.3
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
env:
|
env:
|
||||||
- name: "ELASTICSEARCH_URL"
|
- name: "ELASTICSEARCH_URL"
|
||||||
value: "http://elasticsearch-logging:9200"
|
value: "http://elasticsearch-logging:9200"
|
||||||
|
@ -9,6 +9,7 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
memory: 200Mi
|
||||||
env:
|
env:
|
||||||
- name: "FLUENTD_ARGS"
|
- name: "FLUENTD_ARGS"
|
||||||
value: "-qq"
|
value: "-qq"
|
||||||
|
Loading…
Reference in New Issue
Block a user