Open Abhishekghosh1998 opened 8 months ago
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.
$ kubectl get secret basic-auth -n openfaas -o yaml > secret.yml
secret.yml:
apiVersion: v1
data:
basic-auth-password: ZW91Y2ZoMUJ3SzZW
basic-auth-user: YWRtaW4=
kind: Secret
metadata:
annotations:
helm.sh/hook: pre-install
creationTimestamp: "2023-10-09T04:56:15Z"
labels:
app: openfaas
chart: openfaas-14.1.9
component: gateway
heritage: Helm
release: openfaas
name: basic-auth
namespace: openfaas
resourceVersion: "1414"
uid: c87d81e5-5160-4624-8ec0-eb4c0d2515b6
type: Opaque
Edit the above yml file to:
apiVersion: v1
data:
basic-auth-password: ZW91Y2ZoMUJ3SzZW
basic-auth-user: YWRtaW4=
kind: Secret
metadata:
name: basic-auth
namespace: openfaas-fn
type: Opaque
And then create the secret:
$ kubectl create -f secret.yml
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?