上一页 1 2 3 4 5 6 ··· 21 下一页
摘要: 在Nginx中,可以使用$http_user_agent变量来获取请求的User-Agent头,然后基于这个头的值来决定如何转发请求。 实现方式一: http { map $http_user_agent $backend { default http://backend3; ~*Chrome ht 阅读全文
posted @ 2024-06-09 11:14 mingtian是吧 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 修改网卡名称为 eth0 ifnames=0 biosdevname=0 更新yum源 curl -q -# https://mirrors.aliyun.com/repo/Centos-7.repo >/etc/yum.repos.d/CentOS-Base.repo yum clean all 阅读全文
posted @ 2024-06-05 17:37 mingtian是吧 阅读(12) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/li150dan/p/15603149.html 作为 Windows 服务运行# 为了将 VictoriaMetrics 作为 Windows 服务运行,需要为 WinSW 创建服务配置,然后根据以下指南将其安装为服务: 创建服务配置: <servi 阅读全文
posted @ 2024-06-04 22:36 mingtian是吧 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 网络配置格式 graph LR A[配置格式] A1[cniVersion] A2[name] A3[plugins] A4[disableCheck] A --> A1 A --> A2 A --> A3 A -->|大多数cni中没有配置这块| A4 A31(type) A32(capabili 阅读全文
posted @ 2024-05-03 13:57 mingtian是吧 阅读(23) 评论(0) 推荐(0) 编辑
摘要: mkdir /usr/local/openresty/nginx/conf/ssl cd /usr/local/openresty/nginx/conf/ssl openssl genrsa -out server.key 2048 openssl req -new -key server.key 阅读全文
posted @ 2024-04-29 19:02 mingtian是吧 阅读(8) 评论(0) 推荐(0) 编辑
摘要: raid #!/bin/bash # describe: use all free disk to create raid10 # 创建一个未使用磁盘的数组 ls_disk(){ for disk in $(lsblk|awk '/disk/{print $1}');do mount|grep -q 阅读全文
posted @ 2024-04-25 12:29 mingtian是吧 阅读(9) 评论(0) 推荐(0) 编辑
摘要: imagePolicyWebhook imagePolicyWebhook是一个评估image的准入控制器。需要启动一个https的服务来执行该动作 【功能实践】 为webhook 生成ssl 证书 生成server.csr 和 server-key.pem cat <<EOF | cfssl ge 阅读全文
posted @ 2024-03-17 09:50 mingtian是吧 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 在 Kubernetes 中,审计(Audit)和事件(Event)是两种不同的日志记录机制,它们各自有不同的用途和特性: 审计(Audit): 目的:审计日志主要用于记录和监控集群中发生的安全相关事件,如用户操作、API 请求、权限变更等。审计日志有助于满足合规性要求,进行安全审计和事后分析。 内 阅读全文
posted @ 2024-03-10 20:54 mingtian是吧 阅读(67) 评论(0) 推荐(0) 编辑
摘要: Jenkins由日本人Kohsuke Kawaguchi在Sun公司主导开发,项目最初被称为Hudson。 目录部署安装密码重置其他启动方式 部署安装 版本选择: jenkins官方下载链接 中给出了两个版本,一个长期支持版、一个每周更新版本,生产环境通常选择长期支持版本。 同时jenkins 需要 阅读全文
posted @ 2024-03-03 11:06 mingtian是吧 阅读(71) 评论(0) 推荐(0) 编辑
摘要: AppArmor 【简介】 apparmor 是linux内核安全功能,可用于限制容器对资源的使用。 例如:容器使用linux内核能力,容器使用网络能力,容器对文件系统读写权限 等。 apparmor一条规则称为一个profile。profile可以 enforcing 或 complain模式运行 阅读全文
posted @ 2024-02-22 10:14 mingtian是吧 阅读(93) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 21 下一页
点击右上角即可分享
微信分享提示