随笔分类 -  k8s

摘要:1、添加 Prometheus 社区 Helm 仓库 helm repo add prometheus-community https://prometheus-community.github.io/helm-charts 2、创建配置文件替换chart配置 vim kafka-exporter- 阅读全文
posted @ 2026-01-04 16:52 苦逼yw 阅读(5) 评论(0) 推荐(0)
摘要:vim kowl-values.yaml # 最终版 kowl-values.yaml(适配Redpanda Console 3.x,移除Basic Auth) config: # Kafka连接配置(嵌套在config下,最新字段格式) kafka: brokers: - b-1.subotizs 阅读全文
posted @ 2025-12-05 17:53 苦逼yw 阅读(14) 评论(0) 推荐(0)
摘要:1. AWS 的 LB 是什么? 在 AWS 中,LB 是负载均衡器 的缩写。它的核心作用与所有负载均衡器一样:将传入的网络流量自动分发到多个后端目标(如 EC2 实例、容器、IP 地址等),以提高应用程序的可用性和可扩展性。 AWS 主要提供三种类型的负载均衡器,适用于不同场景: 特性ALBNLB 阅读全文
posted @ 2025-11-11 11:39 苦逼yw 阅读(29) 评论(0) 推荐(0)
摘要:pathType 类型 1. Exact - 精确匹配 匹配规则:路径必须完全匹配,区分大小写 使用场景:特定 API 端点、固定路径 匹配示例: ✅ /api/metrics - 完全匹配 ❌ /api/metrics/ - 不匹配(尾部斜杠) ❌ /api/metrics/extra - 不匹配 阅读全文
posted @ 2025-09-13 02:12 苦逼yw 阅读(16) 评论(0) 推荐(0)
摘要:1、部署 MySQL(若无可先部署) 注意storageClassName名字 vim nacos-mysql.yaml apiVersion: apps/v1 kind: StatefulSet metadata: name: nacos-mysql namespace: nacos spec: 阅读全文
posted @ 2025-06-06 12:11 苦逼yw 阅读(370) 评论(0) 推荐(0)
摘要:Derby + PVC 方案 + 鉴权配置 1、创建configmap存储nacos配置 vim nacos-auth-configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: nacos-auth-config namespace: 阅读全文
posted @ 2025-06-05 15:26 苦逼yw 阅读(222) 评论(0) 推荐(0)
摘要:1、创建configmap存储redis配置 vim redis-configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: redis-cluster-config data: redis.conf: | cluster-enable 阅读全文
posted @ 2025-06-04 10:41 苦逼yw 阅读(118) 评论(0) 推荐(0)
摘要:1、问题:serviceMonitor类型的ingress-nginx没注册到Prometheus上,即没在页面上看到serviceMonitor类型的ingress-nginx yml配置: 关键点: ServiceMonitor 的 selector 必须匹配 ingress Service 的 阅读全文
posted @ 2025-05-21 15:33 苦逼yw 阅读(74) 评论(0) 推荐(0)
摘要:一、停止相关服务 systemctl stop kubelet systemctl stop docker 二、清空K8S集群设置 在卸载K8s组件前,先在所有节点执行kubeadm reset命令,清空K8s集群设置 kubeadm reset -f 三、 删除calico或flannel网络等网 阅读全文
posted @ 2025-05-20 14:44 苦逼yw 阅读(243) 评论(0) 推荐(0)
摘要:参考:https://www.cnblogs.com/litter-rabbit/articles/15710593.html 1、ingress开启nodeport类型的443端口 方式1、修改deploy.yaml vim deploy.yaml +283 spec: type: LoadBal 阅读全文
posted @ 2025-04-16 14:53 苦逼yw 阅读(46) 评论(0) 推荐(0)
摘要:1、修改ingress-nginx的控制器deployment,大概子56行加上- --enable-metrics=true参数 kubectl edit -n ingress-nginx deployment.apps/ingress-nginx-controller 2、添加暴露ingress 阅读全文
posted @ 2025-04-08 18:07 苦逼yw 阅读(118) 评论(0) 推荐(0)
摘要:参考:https://devpress.csdn.net/k8s/66c98bb2a1ed2f4c853cb2c0.html 官网部署文档地址:https://min.io/docs/minio/kubernetes/upstream/index.html 1、创建pvc vim minio-pvc 阅读全文
posted @ 2025-01-09 16:45 苦逼yw 阅读(315) 评论(0) 推荐(0)
摘要:参考:https://www.cnblogs.com/nuomm/p/17652344.html 1、创建rocketmq需要的pvc,sc根据实际修改。 pvc存储的是rocketmq的nameserver的日志、rocketmq的brocker的数据、dashboard的登录账号密码 vim r 阅读全文
posted @ 2025-01-09 14:17 苦逼yw 阅读(935) 评论(0) 推荐(0)
摘要:参考 : https://blog.csdn.net/weixin_43810267/article/details/133347736 1、下载kubesphere的yaml wget https://github.com/kubesphere/ks-installer/releases/down 阅读全文
posted @ 2024-12-27 11:30 苦逼yw 阅读(310) 评论(0) 推荐(0)
摘要:Kubernetes 的 Endpoint 介绍 在 Kubernetes 中,Endpoint 是一个非常重要的概念,主要用于表示和管理服务(Service)所暴露的网络地址(IP 地址和端口)。它与 Kubernetes 中的 Service 资源密切相关,通常被用来描述后端的 Pod 或其他网 阅读全文
posted @ 2024-12-23 17:30 苦逼yw 阅读(316) 评论(0) 推荐(0)
摘要:1、pvc apiVersion: v1 kind: PersistentVolumeClaim metadata: name: nmg-logs namespace: nmg-test spec: storageClassName: "glusterfs" accessModes: - ReadW 阅读全文
posted @ 2024-10-30 17:04 苦逼yw 阅读(65) 评论(0) 推荐(0)
摘要:分享镜像加速地址:https://www.coderjia.cn/archives/dba3f94c-a021-468a-8ac6-e840f85867ea docker vim /etc/docker/daemon.json { "registry-mirrors": ["https://sfpt 阅读全文
posted @ 2024-10-28 14:45 苦逼yw 阅读(605) 评论(0) 推荐(0)
摘要:参考:https://zhuanlan.zhihu.com/p/595657422 dashboard地址:https://github.com/kubernetes/dashboard/ 本次安装的环境:k8s 集群版本为 v1.25,dashboard 的版本是 v2.7.0。 1、下载yaml 阅读全文
posted @ 2024-10-12 16:05 苦逼yw 阅读(380) 评论(0) 推荐(0)
摘要:参考:https://www.cnblogs.com/liugp/p/16970574.html istio最重要的是istio gateway和istio VirtualService,istio VirtualService需要指定绑定哪个istio gateway 在 Kubernetes ( 阅读全文
posted @ 2024-03-18 15:26 苦逼yw 阅读(52) 评论(0) 推荐(0)
摘要:参考 https://blog.csdn.net/m0_51510236/article/details/132641343 nfs服务器:192.168.18.12 master:192.168.18.11 nfs动态存储只能应用在一个namespace,其他namespace可以自定义pv 1、 阅读全文
posted @ 2024-03-12 23:23 苦逼yw 阅读(409) 评论(0) 推荐(0)