Filter hosts based on port

Hello, i am using auto discovery in kubernetes and some discovered hosts has port 0 on which health check is failing. I want to be able to filter those hosts and run icmp check for them. How can i achieve this with conditions?

My config as of now

        - type: kubernetes
          - condition: ~
              - type: http
                hosts: ["${}:${data.port}"]
                schedule: "@every 30s"
                timeout: 15s

I see here conditions for ip but don't see for port

Was able to solve with condition like

          - condition:
                port: 0
1 Like