Skip to content
This repository was archived by the owner on Mar 18, 2021. It is now read-only.
This repository was archived by the owner on Mar 18, 2021. It is now read-only.

Gateway return function not found when run through traefik #66

@numkem

Description

@numkem

What are the steps to reproduce this issue?

  1. Deploy using faas.hcl
  2. Add a function with UI or cli
  3. Try to get to the function through the gatway

What happens?

Yields a 404 Function not found

What were you expecting to happen?

To get results from the function

Any logs, error output, etc?

2018-12-30T23:34:15.224Z [INFO ] nomadd.consul_resolver: Getting Address from consul: function=certinfo
2018-12-30T23:34:15.225Z [ERROR] nomadd.proxy_client: Function Not Found: certinfo=<unknown>

Any other comments?

My nomad cluster is pre-built on node that runs CoreOS. HTTP proxy is done with traefik through the consul_catalog provider within traeifk. Consul services are exported by their name to a specific domain.

I'm not totally sure on how all the pieces works together but the functions are launched through nomad without issues. I also can reach the function itself through traefik because it's service was registered in consul. Trying to use the function through the /function/<name> with the gateway doesn't work.

What versions of software are you using?

Operating System: CoreOS

OpenFaaS Version: latest with current master of this repo

Nomad Version: 0.8.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions