会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
guoxin0126
博客园
首页
新随笔
联系
管理
订阅
2022年10月18日
kubernetes中使用filebeat收集单独应用日志
摘要: apiVersion: v1 kind: ConfigMap metadata: name: filebeat-config namespace: default labels: app: filebeat data: filebeat.yml: |- filebeat.inputs: - type
阅读全文
posted @ 2022-10-18 10:54 guoxin0126
阅读(49)
评论(0)
推荐(0)
2022年10月17日
kuconfig分配namespace权限设置
摘要: 创建role、rolebinding apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: annotations: rbac.authorization.kubernetes.io/autoupdate: "true" labe
阅读全文
posted @ 2022-10-17 10:29 guoxin0126
阅读(116)
评论(0)
推荐(0)
2022年10月11日
Windows下编写的yaml到Linux下有\n\t处理
摘要: sed -i -E 's/[[:space:]]+$//g' nginx.conf 266 sed -i 's/\t/ /g' nginx.conf
阅读全文
posted @ 2022-10-11 15:18 guoxin0126
阅读(32)
评论(0)
推荐(0)
2022年10月10日
ssh反向代理
摘要: 机器IP用户名备注 A 10.21.32.106 gdut728 目标服务器,处于内网 B 123.123.123.123 root 外网服务器,相当于桥梁的作用 反向代理ssh -fCNR 正向代理ssh -fCNL -f 后台执行ssh指令-C 允许压缩数据-N 不执行远程指令-R 将远程主机(
阅读全文
posted @ 2022-10-10 16:48 guoxin0126
阅读(100)
评论(2)
推荐(0)
2022年6月30日
shell批量复制ssh-key
摘要: #!/bin/bash export SSHPASS="123456"file=$1user="root" if [ !-n $file ];then echo "Please set IP address list." exit 1fissh-keygen -t rsa -q -N "" -f ~
阅读全文
posted @ 2022-06-30 15:51 guoxin0126
阅读(111)
评论(0)
推荐(0)
2019年5月22日
shell中使用expect批量ssh-copy-id
摘要: #!/bin/bash password=Jdyun@2019 for i in {1..3} do expect <<-EOF set timeout 5 spawn ssh-copy-id -i root@jdc$i expect { "yes/no" { send "yes\n";exp_co
阅读全文
posted @ 2019-05-22 14:52 guoxin0126
阅读(532)
评论(0)
推荐(0)
公告