mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Set cache size in Kubemark
This commit is contained in:
parent
15ad9be67f
commit
2280737aa4
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
EVENT_STORE_IP=$1
|
EVENT_STORE_IP=$1
|
||||||
EVENT_STORE_URL="http://${EVENT_STORE_IP}:4002"
|
EVENT_STORE_URL="http://${EVENT_STORE_IP}:4002"
|
||||||
|
NUM_NODES=$2
|
||||||
if [ "${EVENT_STORE_IP}" == "127.0.0.1" ]; then
|
if [ "${EVENT_STORE_IP}" == "127.0.0.1" ]; then
|
||||||
sudo docker run --net=host -d gcr.io/google_containers/etcd:2.2.1 /usr/local/bin/etcd \
|
sudo docker run --net=host -d gcr.io/google_containers/etcd:2.2.1 /usr/local/bin/etcd \
|
||||||
--listen-peer-urls http://127.0.0.1:2381 \
|
--listen-peer-urls http://127.0.0.1:2381 \
|
||||||
@ -49,6 +50,7 @@ kubernetes/server/bin/kube-apiserver \
|
|||||||
--token-auth-file=/srv/kubernetes/known_tokens.csv \
|
--token-auth-file=/srv/kubernetes/known_tokens.csv \
|
||||||
--secure-port=443 \
|
--secure-port=443 \
|
||||||
--basic-auth-file=/srv/kubernetes/basic_auth.csv \
|
--basic-auth-file=/srv/kubernetes/basic_auth.csv \
|
||||||
|
--target-ram-mb=$((${NUM_NODES} * 60)) \
|
||||||
$(cat apiserver_flags) &> /var/log/kube-apiserver.log &
|
$(cat apiserver_flags) &> /var/log/kube-apiserver.log &
|
||||||
|
|
||||||
# kube-contoller-manager now needs running kube-api server to actually start
|
# kube-contoller-manager now needs running kube-api server to actually start
|
||||||
|
@ -188,7 +188,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
gcloud compute ssh "${MASTER_NAME}" --zone="${ZONE}" --project="${PROJECT}" \
|
gcloud compute ssh "${MASTER_NAME}" --zone="${ZONE}" --project="${PROJECT}" \
|
||||||
--command="chmod a+x configure-kubectl.sh && chmod a+x start-kubemark-master.sh && sudo ./start-kubemark-master.sh ${EVENT_STORE_IP:-127.0.0.1}"
|
--command="chmod a+x configure-kubectl.sh && chmod a+x start-kubemark-master.sh && sudo ./start-kubemark-master.sh ${EVENT_STORE_IP:-127.0.0.1} ${NUM_NODES:-0}"
|
||||||
|
|
||||||
# create kubeconfig for Kubelet:
|
# create kubeconfig for Kubelet:
|
||||||
KUBECONFIG_CONTENTS=$(echo "apiVersion: v1
|
KUBECONFIG_CONTENTS=$(echo "apiVersion: v1
|
||||||
|
Loading…
Reference in New Issue
Block a user