Argo Sensor Pod is not Running

40 Views Asked by At

I am trying to create a argo sensor, but its not bringing up any pod after applying using kubectl. kubectl resource has created successfully. Here is my applied yaml file. After applying it, i can see sensor object but no pod is running in cluster.

apiVersion: argoproj.io/v1alpha1
kind: Sensor
metadata:
  name: kafka-event-sensors
  namespace: argo
spec:
  template:
    serviceAccountName: operate-workflow-sa
  dependencies:
    - name: dummy-kafka-event
      eventSourceName: kafka-event
      eventName: dummy-topic-event
  triggers:
    - template:
        name: kafka-workflow-trigger
        k8s:
          operation: create
          source:
            resource:
              apiVersion: argoproj.io/v1alpha1
              kind: Workflow
              metadata:
                generateName: kafka-workflow-
              spec:
                entrypoint: whalesay
                arguments:
                  parameters:
                    - name: message
                      # this is the value that should be overridden
                      value: hello world
                templates:
                  - name: whalesay
                    inputs:
                      parameters:
                        - name: message
                    container:
                      image: docker/whalesay:latest
                      command: [cowsay]
                      args: ["{{inputs.parameters.message}}"]
          parameters:
            - src:
                dependencyName: test-dep
                dataKey: body
              dest: spec.arguments.parameters.0.value
1

There are 1 best solutions below

0
Yaron Idan On

The controller-manager is the component responsible for managing the sensor object, it makes sense to first check that it's running properly and detects the new sensor objects created on the cluster.