会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
缺个好听的昵称
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
9
下一页
2021年12月12日
windows和Linux部署文件夹浏览器filebrowser
摘要: Linux部署 开源项目地址:https://github.com/filebrowser/filebrowser 依赖于docker-compose yum install -y epel-release yum install -y docker-compose 创建数据库文件,这个文件空内容即
阅读全文
posted @ 2021-12-12 23:48 缺个好听的昵称
阅读(1460)
评论(0)
推荐(0)
2021年11月29日
查看K8S业务中的CPU是否超限
摘要: #!/bin/sh pods=`kubectl get pods -n prod |grep $1|awk '{print \$1}'` for pod in $pods do echo $pod; kubectl exec -it --tty -n prod $pod -- cat /sys/fs
阅读全文
posted @ 2021-11-29 09:57 缺个好听的昵称
阅读(165)
评论(0)
推荐(0)
2021年11月24日
K8S部署nginx切割日志
摘要: # 每天0点执行这个脚本,用于切割nginx日志 for pod in $(kubectl get pods -n service-a | grep gateway | awk '{print $1}'); do kubectl exec -ti -n service-a $pod -- /bin/
阅读全文
posted @ 2021-11-24 15:15 缺个好听的昵称
阅读(494)
评论(0)
推荐(0)
2021年11月13日
nginx实现ssh和http代理转发
摘要: cat /app/nginx/conf/nginx.conf user www; worker_processes auto; events { worker_connections 65535; } http { include mime.types; default_type applicati
阅读全文
posted @ 2021-11-13 12:22 缺个好听的昵称
阅读(574)
评论(0)
推荐(0)
2021年10月9日
kubeadm证书到期自动续签
摘要: #!/bin/bash /bin/kubeadm alpha certs renew all cd cp /root/.kube/config /root/.kube/bak-config-$(date +%F) #备份原来的文件 /bin/\cp /etc/kubernetes/admin.con
阅读全文
posted @ 2021-10-09 10:20 缺个好听的昵称
阅读(306)
评论(0)
推荐(0)
2021年9月30日
K8S一键停起副本数
摘要: cat start_k8s.sh #!/bin/bash for i in `cat /tmp/replicas.txt`;do kubectl scale deployment `echo $i | awk -F ":" '{print $2}'` -n `echo $i | awk -F ":"
阅读全文
posted @ 2021-09-30 16:52 缺个好听的昵称
阅读(58)
评论(0)
推荐(0)
2021年8月8日
Centos中批量删除空文件及空文件夹
摘要: linux下批量删除空文件(大小等于0的文件)的方 find . -name "*" -type f -size 0c | xargs -n 1 rm -f 用这个还可以删除指定大小的文件,只要修改对应的 -size 参数就行,例如: find . -name "*" -type f -size 1
阅读全文
posted @ 2021-08-08 14:08 缺个好听的昵称
阅读(712)
评论(0)
推荐(0)
2021年8月7日
K8S-yaml使用认证镜像仓库配置
摘要: kubectl create secret -n service-a docker-registry secret_name --docker-server=registry_name_url --docker-username=ci-user --docker-password=123456 --
阅读全文
posted @ 2021-08-07 11:41 缺个好听的昵称
阅读(215)
评论(0)
推荐(0)
yum 安装redis
摘要: yum方式安装 yum install -y https://repo.ius.io/ius-release-el7.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install redi
阅读全文
posted @ 2021-08-07 11:26 缺个好听的昵称
阅读(344)
评论(0)
推荐(0)
2021年7月24日
docker 部署jenkins 加速下载插件
摘要: yum install -y yum-utils yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo yum install -y docker-ce-19.03.9 do
阅读全文
posted @ 2021-07-24 11:25 缺个好听的昵称
阅读(81)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
9
下一页
公告