Skip to content

When I follow the doc of the 'multiple-functions-go' sample But failed #95

Description

@Charlie17Li

the sample is samples/functions/knative/multiple-functions-go

when I build the function locally and attempt to edit function-sample.yaml to deploy in the cluster. But it shows me that fn.spec.serving is necessary. Then I add fn.spec.serving.runtime: knative to the file, But a new error has occurred.

➜  multiple-functions-go git:(main) ✗ k get fn
NAME              BUILDSTATE   SERVINGSTATE   BUILDER   SERVING         ADDRESS   AGE
function-sample   Skipped      Failed                   serving-lt2wd             57s

BTW, how to get the log info for the function, Thx :)

Activity

  1. lizzzcai commented on Oct 21, 2022

    @lizzzcai
    Member

    Hi @Charlie17Li , can you share some details about your k8s version, openfunction version etc.

  2. Charlie17Li commented on Oct 21, 2022

    @Charlie17Li
    Author

    @lizzzcai I create the cluster with kind, here is some env info:

    1. k8s: v1.23.12
    2. kind: v0.16.0
    3. openfuncion: v0.7.0

    I just follow the sample samples/functions/knative/multiple-functions-go step by step

  3. lizzzcai commented on Oct 21, 2022

    @lizzzcai
    Member

    Hi @Charlie17Li , I can reproduce your error. You skip the build stage and use the image openfunctiondev/sample-go-multi-func:latest is not available. You can use this image for a quick try. lizzzcai/sample-go-multi-func:latest.

    For debug , you can take a look of this (probably not up-to-date).

    @benjaminhuo , can you help to create openfunctiondev/sample-go-multi-func:latest by copying lizzzcai/sample-go-multi-func:latest.

  4. benjaminhuo commented on Oct 21, 2022

    @benjaminhuo
    Member

    Hi @Charlie17Li , I can reproduce your error. You skip the build stage and use the image openfunctiondev/sample-go-multi-func:latest is not available. You can use this image for a quick try. lizzzcai/sample-go-multi-func:latest.

    For debug , you can take a look of this (probably not up-to-date).

    @benjaminhuo , can you help to create openfunctiondev/sample-go-multi-func:latest by copying lizzzcai/sample-go-multi-func:latest.

    sure

  5. benjaminhuo commented on Oct 21, 2022

    @benjaminhuo
    Member

    openfunctiondev/sample-go-multi-func:latest created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions