kubernetes - 如何追踪谁删除了 Kubernetes PVC、部署和 POD

标签 kubernetes couchbase

想知道是否有办法追踪谁删除了 PVC、部署或 POD。
我遇到的问题是我的 2 个 Couchbase 集群(部署在 Onprem K8s 集群中),每个节点中有 3 个节点从 2 个单独的命名空间中删除。

我们在分布式框架中工作,多人可以访问相同的命名空间。好奇是否有办法追踪它是如何被删除并从数据库集群中删除的。
couchbase 运算符(operator)保持完整,POD 处于 CrashLoopBackoff 状态,没有运行状态,没有 PVC,没有部署,没有找到集群。

谢谢

最佳答案

您可以使用Auditing

Kubernetes auditing provides a security-relevant chronological set of records documenting the sequence of activities that have affected system by individual users, administrators or other components of the system. It allows cluster administrator to answer the following questions:

  • what happened?
  • when did it happen?
  • who initiated it?
  • on what did it happen?
  • where was it observed?
  • from where was it initiated?
  • to where was it going?

关于kubernetes - 如何追踪谁删除了 Kubernetes PVC、部署和 POD,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62166246/

相关文章:

kubernetes - 部署部署后如何知道 Kubernetes 服务何时准备就绪?

docker - 将文件放在 GKE 上的 Kubernetes 持久卷存储中

kubernetes - GKE 中的 VPC 原生集群无法在 GKE 1.14 中通信

benchmarking - 如何测试和基准 Aerospike

php - 有没有办法跟踪通过 sdk 发送到 couchbase 服务器的请求

模拟集群节点故障后 Couchbase 丢失数据

couchbase-cli : command not found

amazon-web-services - Tomcat pod 连续崩溃并出现错误 javax.jms.JMSException : Stopped

docker - 如何容器化应用程序的一部分

couchbase - Couchbase 中的 N1QL 查询和索引出现问题