属于我的梦,明明还在
个人工具站/博客持续更新中用于技术层面探讨 http://rhx0306.online/
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 40 下一页
摘要: apiVersion:此处值是v1,这个版本号需要根据安装的Kubernetes版本和资源类型进行变化,记住不是写死的。kind:此处创建的是Pod,根据实际情况,此处资源类型可以是Deployment、Job、Ingress、Service等。metadata:包含Pod的一些meta信息,比如名 阅读全文
posted @ 2023-01-03 13:38 属于我的梦,明明还在 阅读(46) 评论(0) 推荐(0)
摘要: vim dashboard.yaml apiVersion: v1 kind: Namespace metadata: name: kubernetes-dashboard apiVersion: v1 kind: ServiceAccount metadata: labels: k8s-app: 阅读全文
posted @ 2023-01-03 13:13 属于我的梦,明明还在 阅读(294) 评论(0) 推荐(0)
摘要: 关闭swap分区 sudo swapoff -a 确保时区,时间正确 sudo timedatectl 确保虚机不会自动suspend sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.targ 阅读全文
posted @ 2023-01-03 11:55 属于我的梦,明明还在 阅读(61) 评论(0) 推荐(0)
摘要: 重启容器发现无法启动 原因: 主要是因为在启动docker容器的时候或者做docker配置的时候,还对防火墙设置重新启动等配置这样会清除docker的相关配置,导致在查询防火墙规则的时候显示不到docker的链可以通过iptables -L 查询iptables 链,具体原因是你删除了iptable 阅读全文
posted @ 2023-01-03 09:55 属于我的梦,明明还在 阅读(82) 评论(0) 推荐(0)
摘要: 第一种方法: /etc/init.d #在init.d 下创建脚本脚本格式:必须添加这2行否则无法添加#!/bin/bash#chkconfig: 2345 81 96#description:Starttomcat......添加权限:chmod 777 test.sh执行添加:chkconfig 阅读全文
posted @ 2022-12-30 11:12 属于我的梦,明明还在 阅读(166) 评论(0) 推荐(0)
摘要: centos7 编译安装php7遇到的问题: ./configure 配置遇到的No package ‘libxml-2.0‘ found缺失libxml2.0 库,解决方法: yum -y install libxml2yum -y install libxml2-devel./configure 阅读全文
posted @ 2022-12-30 09:35 属于我的梦,明明还在 阅读(909) 评论(0) 推荐(0)
摘要: 环境准备 yum install -y httpd php gcc glibc glibc-common gd gd-devel make net-snmp libxml2 libxml2-devel sqlite-devel 创建Nagios用户和Nagcmd组 useradd nagios && 阅读全文
posted @ 2022-12-29 19:28 属于我的梦,明明还在 阅读(97) 评论(0) 推荐(0)
摘要: 原因: 因为默认情况下k8s集群只提供了收集数据的模块--kubelet中的cadvisor。它类似于zabbix的agent代理程序,用来收集被监控节点的数据信息。 但是k8s集群却没有提供zabbix-server端,没有监控收集端,这时候我们需要自己安装server镜像。这个文件就是metri 阅读全文
posted @ 2022-12-27 11:02 属于我的梦,明明还在 阅读(3280) 评论(0) 推荐(0)
摘要: 方法一: [root@localhost yum.repos.d]# cat /etc/resolv.conf nameserver 8.8.8.8 方法二: [root@localhost network-scripts]# cat ifcfg-eth0 ### ONBOOT=yes### 阅读全文
posted @ 2022-12-26 18:25 属于我的梦,明明还在 阅读(184) 评论(0) 推荐(0)
摘要: 部署: yum install -y rclone 或 curl https://rclone.org/install.sh | sudo bash https://files.cnblogs.com/files/blogs/725965/install.sh?t=1690179117&downlo 阅读全文
posted @ 2022-12-22 19:45 属于我的梦,明明还在 阅读(574) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 40 下一页