代码拉取完成,页面将自动刷新
The following steps will setup a single node Kubernetes cluster. For a more robust setup using cloud-config see the Installation Guide.
sudo mkdir -p /opt/bin
sudo wget https://storage.googleapis.com/kubernetes/binaries.tar.gz
sudo tar -xvf binaries.tar.gz -C /opt/bin
git clone https://github.com/GoogleCloudPlatform/kubernetes.git
sudo cp kubernetes/docs/getting-started-guides/coreos/units/* /etc/systemd/system/
sudo systemctl start apiserver
sudo systemctl start scheduler
sudo systemctl start controller-manager
sudo systemctl start kubelet
sudo systemctl start proxy
Setup a SSH tunnel to the Kubernetes API Server.
sudo ssh -f -nNT -L 8080:127.0.0.1:8080 core@${APISERVER}
Download a kubecfg client
Darwin
curl -o /usr/local/bin/kubecfg https://storage.googleapis.com/kubernetes/darwin/kubecfg
chmod +x /usr/local/bin/kubecfg
Linux
wget https://storage.googleapis.com/kubernetes/kubecfg -O /usr/local/bin/kubecfg
Issue commands remotely using the kubecfg command line tool.
kubecfg list /pods
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。