azure Kubernetes与Dynatrace集成,Dynatrace-网钩引发错误

rvpgvaaj  于 2023-01-31  发布在  Kubernetes
关注(0)|答案(1)|浏览(116)
dynatrace-operator running fine, but dynatrace-webhook pod logs showing error message.
how to find the OneAgentAPM ? and how to delete it ,manually ?Any help please.

kubectle logs -f pods/dynatrace-webhook-58975cf6bb-hgs4x

{"level":"info","ts":"2022-10-29T04:01:43.627Z","logger":"dynatrace-operator-version","msg":"dynatrace-operator","version":"v0.9.0","gitCommit":"99a1efbe21f7bf566be7412fe20d61a489d6333c","buildDate":"2022-09-28T13:57:47+00:00","goVersion":"go1.19.1","platform":"linux/amd64"}
{"level":"info","ts":"2022-10-29T04:01:44.243Z","logger":"main.controller-runtime.metrics","msg":"Metrics server is starting to listen","addr":":8383"}
{"level":"info","ts":"2022-10-29T04:01:44.282Z","logger":"main.controller-runtime.webhook","msg":"Registering webhook","path":"/label-ns"}
Error: OneAgentAPM object detected - the Dynatrace webhook will not inject until the deprecated OneAgent Operator has been fully uninstalled
Usage:
  dynatrace-operator webhook-server [flags]

Flags:
      --cert string        File name for the public certificate. (default "tls.crt")
      --cert-key string    File name for the private key. (default "tls.key")
      --certs-dir string   Directory to look certificates for. (default "/tmp/webhook/certs")
  -h, --help               help for webhook-server

{"level":"info","ts":"2022-10-29T04:01:44.845Z","logger":"main.events","msg":"Unsupported OneAgentAPM CRD still present in cluster, please remove to proceed","type":"Warning","object":{"kind":"Pod","namespace":"dynatrace","name":"dynatrace-webhook-58975cf6bb-hgs4x","uid":"008d0262-8df3-4410-94f0-fbb50167b6cd","apiVersion":"v1","resourceVersion":"92860179"},"reason":"IncompatibleCRDPresent"}
{"level":"info","ts":"2022-10-29T04:01:44.846Z","logger":"main","msg":"OneAgentAPM object detected - the Dynatrace webhook will not inject until the deprecated OneAgent Operator has been fully uninstalled"}

我正在尝试查找OneAgentAPM对象并将其删除。我们使用了不同版本的操作员和代理。

yhqotfr8

yhqotfr81#

您可能有一些旧的CRD导致了该问题。请尝试删除操作员,显示群集中的所有CRD并查找Dynatrace OneAgent CRD。只需删除这些CRD并重新安装OneAgent操作员即可。在我的情况下,我必须删除这两个CRD: 和网站oneagents.dynatrace.com and oneagentapms.dynatrace.com

相关问题