总结一下最近遇到的问题和解决方式

2022-12-14 10:31:00
admin
原创
2647
摘要:总结一下最近遇到的问题和解决方式

总结一下最近遇到的问题和解决方式

kubectl创建configmap

1、kubectl create configmap -n joker-bladex hiedu-cbos-flv --from-file=/opt/hiedu/flv

服务器之间文件的上传用scp,比较快

2、scp hiedu-cbos-media.tar.gz 211.87.182.7:/opt/hiedu/

3、添加路由

route add –net 10.244.1.0 gw 10.244.1.0 netmask 255.255.255.0 flannel.1  

4、指定coredns

kubectl edit deployment -n kube-system coredns -o=yaml





scp /etc/kubernetes/admin.conf root@192.168.3.11:/etc/kubernetes/

echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> ~/.bash_profile
source ~/.bash_profile


failed to find plugin "flannel" in path [/opt/cni/bin


kubectl exec -n joker-bladex -it blade-log-84b89c5b94-85dd2  -- ping 211.87.182.8

route change 10.100.0.0 mask 255.255.255.0 10.100.0.254

route add -host 211.87.182.0 netmask 255.255.255.0 gw 0.0.0.0  ens192

 route add –net 211.87.182.0 netmask 255.255.255.0 ens192

一、仓库修改

wget -O /etc/yum.repos.d/epel-7.repo https://mirrors.aliyun.com/repo/epel-7.repo
  212  yum clean all && yum makecache

发表评论
评论通过审核之后才会显示。
文章分类
联系方式
联系人: 郑州-小万
电话: 13803993919
Email: 1027060531@qq.com
QQ: 1027060531
网址: www.wanhejia.com