Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhook 时间延时 #282

Open
yq605879396 opened this issue Oct 13, 2023 · 0 comments
Open

Webhook 时间延时 #282

yq605879396 opened this issue Oct 13, 2023 · 0 comments

Comments

@yq605879396
Copy link

yq605879396 commented Oct 13, 2023

在使用的时候发现crd 发出event 大概13s~20s秒之后对应的service才收到restful api call
请问是怎么原因造成的延迟,有什么解决方法吗
事件数量没有很大
image
配置如下

    spec:
      dnsPolicy: ClusterFirstWithHostNet
      serviceAccount: "{{ .Values.namespace }}-kube-eventer"
      imagePullSecrets:
        - name: imagepullsecret-regcred
      containers:
        - image: {{ .Values.kube_eventer_config.image }} 
          #registry.aliyuncs.com/acs/kube-eventer-amd64:v1.2.0-484d9cd-aliyun
          name: kube-eventer
          command:
            - "/kube-eventer"
            - "--source=kubernetes:https://kubernetes.default"
            ## e.g. webhook
            - "--sink=webhook:http://{{ .Values.environment.name }}{{ .Values.environment.id }}.{{ .Values.environment.type }}.{{ .Values.root_domain }}/wmt/api/v1/notification/kube_eventer/workflow?&level=Normal&kinds=Workflow&header=Content-Type=application/json&custom_body_configmap=custom-body&custom_body_configmap_namespace={{ .Values.namespace }}&method=POST"
          env:
          # If TZ is assigned, set the TZ value as the time zone
          - name: TZ
            value: "America/Los_Angeles" 
          volumeMounts:
            - name: localtime
              mountPath: /etc/localtime
              readOnly: true
            - name: zoneinfo
              mountPath: /usr/share/zoneinfo
              readOnly: true
          resources:
            requests:
              cpu: 100m
              memory: 100Mi
            limits:
              cpu: 500m
              memory: 250Mi
      volumes:
        - name: localtime
          hostPath:
            path: /etc/localtime
        - name: zoneinfo
          hostPath:
            path: /usr/share/zoneinfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant