OpenFunction/samples

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

Charlie17Li opened this issue · 5 comments

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 :)

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

@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

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.

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

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