在Prisma docker容器上添加运行状况检查路径

在Prisma docker容器上添加运行状况检查路径,docker,kubernetes,prisma,Docker,Kubernetes,Prisma,我正在Kubernetes集群上托管我的容器,该集群需要运行状况检查路径来确定容器是否处于活动状态。由于我无法控制此容器中的端点,我如何添加Kubernetes可能命中的健康检查路由?将此添加到prisma容器清单文件中。如果通过部署部署部署prisma,请运行: $ kubectl edit deployment <prisma_deployment_name> --namespace <namespace> Prisma提供了一个。您可以使用它来查询服务器和项目信息

我正在Kubernetes集群上托管我的容器,该集群需要运行状况检查路径来确定容器是否处于活动状态。由于我无法控制此容器中的端点,我如何添加Kubernetes可能命中的健康检查路由?

将此添加到prisma容器清单文件中。如果通过
部署部署
部署prisma,请运行:

$ kubectl edit deployment <prisma_deployment_name> --namespace <namespace>
Prisma提供了一个。您可以使用它来查询服务器和项目信息。其中之一可能适用于健康检查目的。
    livenessProbe:
      httpGet:
        path: /
        port: 4466
      # Number of seconds after the container has started before probes are initiated.
      initialDelaySeconds: 120
      # How often (in seconds) to perform the probe.
      periodSeconds: 10
      # Number of seconds after which the probe times out.
      timeoutSeconds: 60
    readinessProbe:
      httpGet:
        path: /
        port: 4466
      # Number of seconds after the container has started before probes are initiated.
      initialDelaySeconds: 120
      # How often (in seconds) to perform the probe.
      periodSeconds: 10
      # Number of seconds after which the probe times out.
      timeoutSeconds: 60