You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

ArgoCD中argo-events命名空间下EventSource对应Pod/Service未创建

问题排查与解决

核心问题:YAML语法错误

你提供的EventSource清单存在无效的YAML内容,导致ArgoCD虽完成同步,但argo-events的控制器无法正确解析该资源,因此不会生成对应的Pod和Service。

具体错误点:webhook:字段下的new HTTP server是未加注释符号的文本,不符合YAML语法规范,直接打断了资源定义的结构。

修复步骤

  1. 修正YAML清单:将无效文本改为合法注释(添加#前缀)或直接删除,修正后的完整清单如下:
apiVersion: argoproj.io/v1alpha1
kind: EventSource
metadata:
  name: webhook
  namespace: argo-events
spec:
  service:
    ports:
      - port: 12000
        targetPort: 12000
  webhook:
    # new HTTP server
    example:
      port: "12000"
      endpoint: /example
      method: POST
  1. 重新同步ArgoCD应用:推送修正后的清单到Git仓库,触发ArgoCD重新同步,确保资源正确应用到集群。

  2. 验证资源状态:

    • 检查EventSource资源是否正常:kubectl describe eventsource webhook -n argo-events,确认Status字段无错误信息
    • 检查argo-events控制器状态:kubectl get pods -n argo-events,确保eventsource-controller Pod处于Running状态
    • 再次查看目标Pod和Service:kubectl get pods,services -n argo-events

内容的提问来源于stack exchange,提问作者etranz

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.13 14:52:06