зеркало из https://github.com/Azure/aks-engine.git
added bash commands to measure perf perf (#1596)
This commit is contained in:
Родитель
5af4b000f0
Коммит
457118c076
|
@ -148,23 +148,32 @@ write_files:
|
|||
content: !!binary |
|
||||
{{WrapAsVariable "provisionScript"}}
|
||||
|
||||
runcmd:
|
||||
runcmd:
|
||||
- echo `date`,`hostname`, startruncmd>>/opt/m
|
||||
- apt-mark hold walinuxagent{{GetKubernetesAgentPreprovisionYaml .}}
|
||||
- echo `date`,`hostname`, preaptupdate>>/opt/m
|
||||
- apt-get update
|
||||
- echo `date`,`hostname`, postaptupdate>>/opt/m
|
||||
- apt-get install -y apt-transport-https ca-certificates nfs-common
|
||||
- echo `date`,`hostname`, aptinstall>>/opt/m
|
||||
- systemctl enable rpcbind
|
||||
- systemctl enable rpc-statd
|
||||
- systemctl start rpcbind
|
||||
- systemctl start rpc-statd
|
||||
- echo `date`,`hostname`, predockerinstall>>/opt/m
|
||||
- for i in 1 2 3 4 5; do curl --max-time 60 -fsSL https://aptdocker.azureedge.net/gpg | apt-key add -; [ $? -eq 0 ] && break || sleep 5; done
|
||||
- echo "deb {{WrapAsVariable "dockerEngineDownloadRepo"}} ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
|
||||
- "echo \"Package: docker-engine\nPin: version {{WrapAsVariable "dockerEngineVersion"}}\nPin-Priority: 550\n\" > /etc/apt/preferences.d/docker.pref"
|
||||
- apt-get update
|
||||
- apt-get install -y ebtables
|
||||
- apt-get install -y docker-engine
|
||||
- echo `date`,`hostname`, postdockerinstall>>/opt/m
|
||||
- systemctl restart docker
|
||||
- mkdir -p /etc/kubernetes/manifests
|
||||
- usermod -aG docker {{WrapAsVariable "username"}}
|
||||
- echo `date`,`hostname`, PRE-APT-SYSTEMD-DAILY>>/opt/m
|
||||
- /usr/lib/apt/apt.systemd.daily
|
||||
- echo `date`,`hostname`, POST-APT-SYSTEMD-DAILY>>/opt/m
|
||||
- apt-mark unhold walinuxagent
|
||||
- mkdir -p /opt/azure/containers && touch /opt/azure/containers/runcmd.complete
|
||||
- echo `date`,`hostname`, endruncmd>>/opt/m
|
||||
|
|
|
@ -63,6 +63,7 @@ ensureRunCommandCompleted()
|
|||
}
|
||||
ensureRunCommandCompleted
|
||||
|
||||
echo `date`,`hostname`, startscript>>/opt/m
|
||||
# make sure walinuxagent doesn't get updated in the middle of running this script
|
||||
apt-mark hold walinuxagent
|
||||
|
||||
|
@ -413,12 +414,19 @@ users:
|
|||
}
|
||||
|
||||
# master and node
|
||||
echo `date`,`hostname`, EnsureDockerStart>>/opt/m
|
||||
ensureDocker
|
||||
echo `date`,`hostname`, configNetworkPolicyStart>>/opt/m
|
||||
configNetworkPolicy
|
||||
echo `date`,`hostname`, setMaxPodsStart>>/opt/m
|
||||
setMaxPods ${MAX_PODS}
|
||||
echo `date`,`hostname`, ensureKubeletStart>>/opt/m
|
||||
ensureKubelet
|
||||
echo `date`,`hostname`, extractKubctlStart>>/opt/m
|
||||
extractKubectl
|
||||
echo `date`,`hostname`, ensureJournalStart>>/opt/m
|
||||
ensureJournal
|
||||
echo `date`,`hostname`, ensureJournalEnd>>/opt/m
|
||||
|
||||
# master only
|
||||
if [[ ! -z "${APISERVER_PRIVATE_KEY}" ]]; then
|
||||
|
@ -442,3 +450,5 @@ if $REBOOTREQUIRED; then
|
|||
echo 'reboot required, rebooting node in 1 minute'
|
||||
/bin/bash -c "shutdown -r 1 &"
|
||||
fi
|
||||
|
||||
echo `date`,`hostname`, endscript>>/opt/m
|
Загрузка…
Ссылка в новой задаче