Create LimitRange object for cluster before addons service

This commit is contained in:
Dawn Chen 2015-05-18 17:59:16 -07:00
parent 55501a6314
commit 061155c1eb

View File

@ -110,6 +110,14 @@ while read line; do
create-kubeconfig-secret "${token}" "${username}"
done < /srv/kubernetes/known_tokens.csv
# Create admission_control objects if defined before any other addon services. If the limits
# are defined in a namespace other than default, we should still create the limits for the
# default namespace.
for obj in $(find /etc/kubernetes/admission-controls \( -name \*.yaml -o -name \*.json \)); do
start_addon ${obj} 100 10 &
echo "++ obj ${obj} is created ++"
done
for obj in $(find /etc/kubernetes/addons \( -name \*.yaml -o -name \*.json \)); do
start_addon ${obj} 100 10 &
echo "++ addon ${obj} starting in pid $! ++"