Skip to content

Incomplete pool runner doc #26

Open

Description

@denismakogon

Pool runner doc misses FN_PUBLIC_LB_URL configuration which makes the deployment broken.

Activity

  1. added
    bug
    on Nov 13, 2018
  2. michael-w-williams commented on Nov 13, 2018

    @michael-w-williams
    Member

    Denis, What changes do I need to make to https://github.com/fnproject/docs/blob/master/fn/operate/runner_pools.md? Does the Env var need to be set as a first step? What would a sample value look like?

  3. denismakogon commented on Nov 13, 2018

    @denismakogon
    MemberAuthor

    Well, my answer wouldn't be easy. So, the following env var needs to be set in docker run for API node. By itself, this env var represents a public (reachable through the internet) IP address of the LB container.
    So, missing steps here are:

    1. Deploy API container at the end.
    2. When LB container deployed - check its IP address (that could be docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' <lb-container>).
    3. Add -e FN_PUBLIC_LB_URL=http://<lb-container-ip>:<lb-container-http-port>

    The most crucial part here is Fn CLI simple test. Since this type of the deployment is not usual to anyone expect us, you need to show the following things:

    1. Create a new context with API container IP address.
    2. Deploy hello-world.
    3. Inspect a function, highlight the annotation because it would be different compared to regular annotation you'd get from FN running throughfn start.
    4. Call a function with both an HTTP trigger and invoke.
  4. added a commit that references this issue on Jan 18, 2019
    9734a3c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions