会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小清澈
思考,改变自己
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
12
下一页
2022年1月13日
shell 实现进度条
摘要: #!/bin/sh sleep 10 & pid=$! # Process Id of the previous running command spin='-\|/' i=0 while kill -0 $pid 2>/dev/null do i=$(( (i+1) %4 )) printf "\
阅读全文
posted @ 2022-01-13 17:10 小清澈
阅读(1031)
评论(0)
推荐(0)
2021年12月22日
k8s master生成新的key 用于加入新节点
摘要: kubeadm token create --print-join-command
阅读全文
posted @ 2021-12-22 15:58 小清澈
阅读(81)
评论(0)
推荐(0)
安装指定版本k8s
摘要: Master节点: 1、安装docker yum install docker systemctl start dockersystemctl enable docker 2、修改/etc/hostnames 3、修改SELinux setenforce 0 4、关闭swap # 当前临时关闭虚拟内
阅读全文
posted @ 2021-12-22 15:49 小清澈
阅读(1378)
评论(0)
推荐(0)
kubernetes node error: Failed to initialize CSINode: error updating CSINode annotation: timed out...
摘要: vi /var/lib/kubelet/config.yaml featureGates: CSIMigration: false systemctl daemon-reload systemctl restart kubelet
阅读全文
posted @ 2021-12-22 13:37 小清澈
阅读(570)
评论(0)
推荐(0)
k8s yum源
摘要: cat <<EOF > /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=http://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64
阅读全文
posted @ 2021-12-22 11:02 小清澈
阅读(187)
评论(0)
推荐(0)
2021年12月17日
k8s 容器端口映射物理机 设置容器级别 hostPort 和 Pod级别 hostNetwork,或者通过映射Services的方式让外部访问 。即可以通过Nodeip+port的方式直接访问。
摘要: 容器级别: apiVersion: extensions/v1beta1kind: Deployment metadata: annotations: deployment.kubernetes.io/revision: '1' labels: app: redis1202 chart: redis
阅读全文
posted @ 2021-12-17 15:25 小清澈
阅读(1785)
评论(0)
推荐(0)
ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-a99cb087943d -j RETURN: iptables: No chain/target/match by that name.
摘要: service iptables restart service docker restart
阅读全文
posted @ 2021-12-17 11:19 小清澈
阅读(639)
评论(0)
推荐(0)
2021年12月13日
k8s 部分命令记录
摘要: #给node节点加标签,用于指定node节点部署 kubectl label nodes NodeName label-key=label-value # kubectl autoscale rc mdname --min=1 --max=10 --cpu-percent=50 #滚动升级 kube
阅读全文
posted @ 2021-12-13 18:06 小清澈
阅读(48)
评论(0)
推荐(0)
Linux mount Linux
摘要: yum install nfs-utils vi /etc/exports /data xx.xx.xx.xx(rw,no_root_squash,async) service nfs restart
阅读全文
posted @ 2021-12-13 09:50 小清澈
阅读(30)
评论(0)
推荐(0)
2021年12月8日
批量安装rpm包
摘要: rpm -ivh --force --nodeps *.rpm
阅读全文
posted @ 2021-12-08 16:11 小清澈
阅读(440)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
12
下一页
公告