Prisma Cloud Compute:如何在安装防御者时解决“exec /usr/local/bin/defender:exec 格式错误”

Prisma Cloud Compute:如何在安装防御者时解决“exec /usr/local/bin/defender:exec 格式错误”

3397
Created On 10/27/23 01:32 AM - Last Modified 01/03/25 04:54 AM


Objective


The objective of this article is to successfully install defenders on a supported environment and avoid getting the following error:
Warning BackOff 2m38s (x24 over 7m46s) kubelet Back-off restarting failed container twistlock-defender in pod twistlock-defender-ds-4b2bh_twistlock(ca14f9c1-6ab8-44ac-946e-3b233c90ab7a)

exec /usr/local/bin/defender: exec format error



Environment


  • Prisma Cloud Compute SaaS版本
  • Prisma Cloud Compute 自托管版本


Procedure


我们的 twistlock 注册表中的 defender映像没有标签来区分 x86_64 和 arm64 映像。它使用被拉取的主机的体系结构来拉取正确的映像。因此,当用户拉取 twistlock defender映像并将其上传到使用 arm64 体系结构的私有注册表时,会发生错误。然后他们使用私有注册表中的映像在 x86_64 环境中进行部署。

为了解决这个问题,如果用户在 x86_64 环境上部署,他们应该使用 x86_64 机器从 twistlock 注册表中提取映像。


Additional Information


反之亦然。如果用户想要在 arm64 环境中部署,则他们需要使用 arm64 机器从 twistlock 注册表中提取防御者映像并将其上传到他们的私有注册表。然后使用相同的映像在他们的环境中部署。

Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000Xh40CAC&lang=zh_CN&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language