让docker使用新的数据目录和迁移/var/lib/docker数据目录到新服务器


建议先把/var/lib/docker目录文件复制到新路径!停止 Docker 服务: 首先,停止 Docker 服务以确保没有正在进行的容器操作。sudo systemctl stop docker创建 Docker 配置文件: 创建一个 Docker 配置文件/etc/docker/daemon

使用shell脚本向普罗米修斯pushgateway推送自定义指标


Pushgateway是一个独立服务,它在HTTP REST API上接收Prometheus指标。 Pushgateway位于发送指标的应用程序和Prometheus服务器之间。Pushgateway接收指标,然后作为目标被抓取,以将指标提供给Prometheus服务器。Pushgateway本质

ansible roles部署consul三节点集群


此贴旨在分享使用ansible快速部署一个consul集群,不探讨架构及技术细节。仓库地址:https://github.com/dhwark/consul_cluster在hosts文件中按照格式填入ip地址修改roles\consul_cluster\files\consul_*\consul_

创建ingress资源报错Internal error occurred: failed calling webhook


[root@k8s-master01 gitlab]# kubectl apply -f 03-gitlab-ingress.yaml Error from server (InternalError): error when creating "03-gitlab-ingress.yam

使用阿里云镜像部署ingress-nginx-controller


目录概述helm介绍helm的主要概念chart包的目录结构helm 安装 ingress-nginx下载ingress-nginx的chart包修改 values.yaml 文件执行安装测试 ingress-nginx概述NGINX Ingress Controller 是使用 Kubernete

用tkinter给我的爬虫写了个gui


最近在学习tkinter写python gui,顺便给我的微博图片爬虫写了个gui程序。tkinter上手还是很快的,看一个小时视频基本上就可以自己做简单的界面了,程序界面很简单,就是把手动写入配置文件的配置项用gui来输入,给爬虫加上了开始和退出的按钮,tkinter的功能虽然简单,但是做这种小功

k8s强制删除集群命名空间


有时我们删除命名空间时会一直卡在删除,但无法生效,就需要修改配置来强制删除首先开启代理kubectl proxy --port=8080导出配置文件kubectl get namespace 命名空间名 -o json > kubesphere-logging-system.json删除kub

写了一个小脚本用来追踪路由ip地理位置


使用scapy库来获取ip,从https://ip.cn网页上获取对应地址,用bs4解析(其他网站调用api要收费,取巧的方法)from scapy.all import tracerouteimport requestsfrom bs4 import BeautifulSoupimport arg

快速搭建一个Prometheus监控


快速搭建Prometheus监控目录OVERVIEW 概述What is Prometheus? 什么是普罗米修斯?组件架构图快速部署Prometheus & grafana实例docker-compose.ymlnode_exporter.shprometheus.ymlgrafanati