You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
environment:
gateway: "gateway.openfaas:8080"# The address of OpenFaaS gatewayenable_tracing: true # tracing allows to monitor requeststrace_server: "jaeger-agent.faasflow:5775"# The address of jaeger tracing agentconsul_url: "consul.faasflow:8500"# The address of consuls3_url: "minio.faasflow:9000"# The address of minio
flow-test/handler.go:
package function
import (
faasflow "github.com/faasflow/lib/openfaas"
)
// Define provide definition of the workflowfuncDefine(flow*faasflow.Workflow, context*faasflow.Context) (errerror) {
flow.SyncNode().Modify(func(data []byte) ([]byte, error) {
result:="Hello "+string(data)
return []byte(result), nil
})
returnnil
}
// OverrideStateStore provides the override of the default StateStorefuncOverrideStateStore() (faasflow.StateStore, error) {
// NOTE: By default FaaS-Flow use consul as a state-store,// This can be overridden with other synchronous KV store (e.g. ETCD)returnnil, nil
}
// OverrideDataStore provides the override of the default DataStorefuncOverrideDataStore() (faasflow.DataStore, error) {
// NOTE: By default FaaS-Flow use minio as a data-store,// This can be overridden with other synchronous KV storereturnnil, nil
}
The issue was with the basic-auth secret attachment step. So that the faas-flow-tower is able to use the function information, we need the credentials of openfaas. So,
$ kubectl get secrets --namespace openfaas
NAME TYPE DATA AGE
basic-auth Opaque 2 4d1h
default-token-c6r6b kubernetes.io/service-account-token 3 4d1h
openfaas-controller-token-426cl kubernetes.io/service-account-token 3 4d1h
openfaas-prometheus-token-9fvd6 kubernetes.io/service-account-token 3 4d1h
sh.helm.release.v1.openfaas.v1 helm.sh/release.v1 1 4d1h
The basic-auth mentioned in the first line is of interest to us. We shall try to create a copy of that in the openfaas-fn namespace.
I am struggling to set up the
faas-flow-tower
utility.Let's say what I tried...
I tried setting up a simple
flow-test
function as follows:flow-test.yml:
flow.yml:
flow-test/handler.go:
So far so good.
The problem happens when I try to use
faas-flow-tower
.faas-flow-tower/conf.yml:
In the above file I made change to the
gateway_public_uri
faas-flow-tower/stack.yml:
Under
faas-flow-dashboard
I just changedlang: Dockerfile
tolang: dockerfile
, and added the image local to be saved in local registry.Before deploying I created a
basic-auth
secret as follows (I doubt thisbasic-auth
step which I did):And then I deploy
faas-flow-tower
as:faas-flow-tower
does not monitor anything. Where I am going wrong in my setup? Please can anyone help me?The text was updated successfully, but these errors were encountered: