一、安装docker最新版
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
二、安装cubelet
1、sources.list先配置sources.list源才能继续下面步骤
# vim /etc/apt/sources.list ## Generated by deepin-installer #deb [by-hash=force] https://mirrors.tuna.tsinghua.edu.cn/deepin panda main contrib non-free deb [by-hash=force] http://mirrors.aliyun.com/deepin lion main contrib non-free
deb http://sh.deepin.io:6500/sunway kui main non-free
deb http://sh.deepin.io:6500/sunway kui-updates main non-free
deb http://sh.deepin.io:6500/sunway kui-backports main non-free #deb-src http://mirrors.aliyun.com/deepin lion main contrib non-free
$ apt update
lion 是稳定版, panda 是测试版,
2、安装
Kubernetes 用于容器化应用的自动部署、扩缩和管理。它将构成应用的容器按逻辑单位进行分组以便于管理和发现。
apt-get update && apt-get install -y apt-transport-https curl https://mirrors.aliyun.com/kubernetes/apt/doc/apt-key.gpg | apt-key add - cat <<EOF >/etc/apt/sources.list.d/kubernetes.list deb https://mirrors.aliyun.com/kubernetes/apt/ kubernetes-xenial main EOF apt-get update apt-get install -y kubelet kubeadm kubectl
三、ssh连接管理
sudo apt install openssh-client #本地主机运行此条,实际上通常是默认安装client端程序的 sudo apt install openssh-server #服务器运行此条命令安装 sudo /etc/init.d/ssh start #服务器启动ssh-server服务 sudo /etc/init.d/ssh stop #server停止ssh服务 sudo /etc/init.d/ssh restart #server重启ssh服务
ssh dell@192.168.30.6 # 如果需要调用图形界面程序 ssh -X dell@192.168.30.6 Ctrl+D #退出