K8s报错#!/bin/bash yum install -y yum-utils device-mapper-persistent-data lvm2 if [ $? = 0 ];then echo
生活随笔
收集整理的這篇文章主要介紹了
K8s报错#!/bin/bash yum install -y yum-utils device-mapper-persistent-data lvm2 if [ $? = 0 ];then echo
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
k8s在部署etcd單節點報錯
failed to dial fab7ddbd0aa3e803 on stream Message (dial t…out)
這里需要安裝docker環境,下面是docker一鍵部署安裝
#!/bin/bash yum install -y yum-utils device-mapper-persistent-data lvm2 if [ $? = 0 ];then echo "依賴包安裝完成" else echo "依賴包安裝失敗,正在退出..." exit 1 fi yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo if [ $? = 0 ];then echo "依賴包安裝完成" else echo "依賴包安裝失敗,正在退出..." exit 1 fi yum install docker-ce if [ $? = 0 ];then echo "依賴包安裝完成" else echo "依賴包安裝失敗,正在退出..." exit 1 fi systemctl start docker.service cd /etc/docker/ tee /etc/docker/daemon.json <<-'EOF' {"registry-mirrors": ["https://ctzniuyu.mirror.aliyuncs.com"] } EOF systemctl daemon-reload systemctl restart docker sed -i '$anet.ipv4.ip_forward=1' /etc/sysctl.conf sysctl -p systemctl restart docker service network restart總結
以上是生活随笔為你收集整理的K8s报错#!/bin/bash yum install -y yum-utils device-mapper-persistent-data lvm2 if [ $? = 0 ];then echo的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 揭秘维沃x9手机:内存卡插入教程大公开
- 下一篇: 内存界的新宠,128g内存颗粒为何这么火