Prometheus监控实践
Prometheus简介Prometheus是一个开源的系统监控和报警工具包,由SoundCloud公司开发,并使用Go语言编写。它起源于前Google工程师在2012年开始的项目,自那时起,许多公司和组织都采用了Prometheus作为他们的监控告警工具。在2016年,Prometheus加入了Cloud Native Computing Foundation(CNCF),成为继Kubernet ...
阅读更多
Docker ENV渲染配置文件
创建set_env.sh脚本 #!/bin/sh# Set default values for environment variables if they are not setexport ENABLE_SYSTEM=${ENABLE_SYSTEM:-"true"}export ENABLE_MYSQL=${ENABLE_MYSQL:-&quo ...
阅读更多
Harbor容器仓库部署
环境信息 节点主机名 节点IP harbor01 192.168.2.21 harbor02 192.168.2.22 添加hosts解析,本机添加对端harbor域名解析地址 #harbor01192.168.2.22 harbor.acaiblog.top#harbor02192.168.2.21 harbor.acaiblog.top 安装Harbor下载安装包 https ...
阅读更多
Elasticsearch集群部署
节点信息 节点名称 节点IP 节点角色 node01 172.16.1.11 master data node02 172.16.1.12 master data node03 172.16.1.13 master data 环境部署下载安装包 wget https://artifacts.elastic.co/downloads/elasticsearch/elastics ...
阅读更多
k8s支持GPU虚拟化
官网参考链接:https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html Ubuntu配置apt源 cat >nvidia-container-toolkit.list <<EOFdeb https://nvidia.github.io/libnvidia- ...
阅读更多
docker配置代理下载镜像
编辑Docker配置文件/usr/lib/systemd/system/docker.service,添加以下内容 [Service]Environment="HTTP_PROXY=http://192.168.126.1:7890"Environment="HTTPS_PROXY=http://192.168.126.1:7890" 重启Docker服务 ...
阅读更多
配置ansible缓存加速Gathering Facts
Ansible当节点很多时会存在加载Gathering Facts很慢的情况,目前社区提供了两种方式实现Gathering Facts加速:JSONFIle和Reids缓存 JSONFIle编辑ansible以下配置 [defaults]callbacks_enabled=ansible.posix.profile_tasks // 用来测试加速效果gathering = smartfact_ca ...
阅读更多
Rancher部署
简介 软件版本 xxxxxxxxxx python modify_xml.py build.xmlbash 版本 k8s v1.21.14 helm v3.9.4 cert-manager v1.11.0 rancher v2.6.6 安装helmhelm版本对应K8S版本 Helm 版本 支持的 Kubernetes 版本 3.12.x 1.27.x - ...
阅读更多
RKE集群配置Calico客户端
确认calico版本 kubectl get ds calico-node -n kube-system -o yaml|grep image 下载calico客户端 wget https://github.com/projectcalico/calicoctl/releases/download/v3.19.2/calicoctl -O /usr/bin/calicoctlchmod +x / ...
阅读更多
docker部署MINIO分布式对象存储集群
节点信息 节点名称 IP地址 数据目录 node01 192.168.126.130 /data node02 192.168.126.131 /data 分别在node01、node02节点创建数据目录 mkdir -p /data/minio/minio0{1...2} 分别在node01、node02节点启动容器 docker run \ --nam ...
阅读更多