Commit 55501a63 authored by Dawn Chen's avatar Dawn Chen

Have default LimitRange created for cluster: 100m cpu.share per container

parent e1a153e8
{% if 'LimitRanger' in pillar.get('admission_control', '') %}
/etc/kubernetes/admission-controls/limit-range:
file.recurse:
- source: salt://kube-admission-controls/limit-range
- include_pat: E@(^.+\.yaml$|^.+\.json$)
- user: root
- group: root
- dir_mode: 755
- file_mode: 644
{% endif %}
apiVersion: "v1beta3"
kind: "LimitRange"
metadata:
name: "limits"
spec:
limits:
- type: "Container"
default:
cpu: "100m"
......@@ -39,6 +39,7 @@ base:
- cadvisor
- kube-client-tools
- kube-master-addons
- kube-admission-controls
{% if grains['cloud'] is defined and grains['cloud'] != 'vagrant' %}
- logrotate
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment