前言这篇文件记录了我将博客应用部署在真实服务器的Kubernetes上运行的整个过程❤️。安装和配置k8s集群环境第一步是先安装需要的软件包:# 先安装Docker➜ ~ sudo apt install -y apt-transport-https ca-certificates curl software-properties-common➜ ~ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -➜ ~ sudo apt-key fingerprint 0EBFCD88# 由于我在服务器安装了Python3.7,/usr/bin/python3链接不再不再是原来系统自带的Python3.5,需要明确指定➜ ~ sudo sed -i 's/python3/python3.5/g' /usr/bin/add-apt-repository➜ ~ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"➜ ~ sudo apt-get update➜ ~ sudo apt install docker-ce➜ ~ sudo systemctl enable docker# 安装k8s用到的三个包➜ ~ cat EOF | sudo tee -a /et
………………………………