About

I am a Cloud Natice Support Engineer based in Mainland China, dedicated to helping users and teams efficiently resolve complex technical issues.

Read more

NeuVector 获取触发 SQL Injection 告警的 SQL 语句

NeuVector 内置了 SQL Injection 检测规则。当 SQL 语句匹配相应规则时,会触发 SQL Injection 告警。

可以在 Notifications -> Security Events 中查看 SQL Injection 告警:

但是,告警详情中不会直接显示触发告警的完整 SQL 语句。如果需要获取对应的 SQL 语句,以判断是否存在误报,可以通过以下方式进行排查。

Read more

Rancher Monitoring Kubernetes Dashboard 显示 No Data 排查记录

在 local 集群中安装 Rancher Monitoring 后,Grafana 中查看 Kubernetes 下的 Dashboard 显示 No data:

  • Kubernetes / Compute Resources / Pod
  • Kubernetes / Compute Resources / Cluster
  • Kubernetes / Compute Resources / Workload

与此同时,Rancher 下的 Pod、Node 等 Dashboard 能正常显示数据。

Read more

Longhorn v1 Data Engine 使用实践

Longhorn 是一款专为 Kubernetes 设计的云原生分布式存储系统,提供简单易用且高可靠的持久化存储能力。

本文基于 Longhorn v1 Data Engine 进行实践。

Read more

RKE2 + Cilium + kubeProxyReplacement + NodeLocalDNS + LRP 使用注意事项

在使用以下配置组合时,不同 RKE2 版本可能会遇到不同问题,本文对已知问题进行总结:

  • RKE2 使用 Cilium CNI
  • Cilium 启用 kubeProxyReplacement
  • 使用 RKE2 CoreDNS 的 nodelocal.enabled 配置开启 NodeLocalDNS
  • 使用 RKE2 CoreDNS 的 nodelocal.use_cilium_lrp 配置创建 Cilium LocalRedirectPolicy(LRP),将集群 DNS 的流量重定向至本节点的 node-local-dns Pod

在 Cilium 完全替代 kube-proxy 后,ClusterIP 流量由 eBPF 在进入 Pod 网络栈前处理,传统 NodeLocalDNS 依赖的 iptables 截获方式不再适用,因此需要使用 LRP。

Read more