Hi, community, I just found that I can't use the S...
# ask-the-community
l
Hi, community, I just found that I can't use the Secret in the development mode (
flytectl demo start --dev
) Does it require any additional settings? It works in non-development mode (
flytectl demo start
) I've followed this guide and specified the namespace. Here's my command line.
Copy code
kubectl create secret generic tweet-api\
      --from-literal=account="ericchen1201"\
      --from-literal=password="20231024"\
      -n flytesnacks-development
Reference: https://docs.flyte.org/projects/cookbook/en/latest/auto_examples/productionizing/use_secrets.html#secrets Here's my error log.
Copy code
Workflow[flytesnacks:development:.flytegen.secret.secret_task] failed. RuntimeExecutionError: max number of system retry attempts [11/10] exhausted. Last known status message: failed at Node[secretsecrettask]. RuntimeExecutionError: failed during plugin execution, caused by: failed to execute handle for plugin [container]: [InternalError] failed to create resource, caused by: Internal error occurred: failed calling webhook "flyte-pod-webhook.flyte.org": failed to call webhook: Post "<https://flyte-sandbox-local.all.svc:9443/mutate--v1-pod?timeout=10s>": service "flyte-sandbox-local" not found
y
dev mode means flyte itself doesn’t run
so no you won’t be able to use secrets, or anything at all, until you run it.
but it should work once you do. secrets work via the webhook.
and you should be running the webhook on localhost 9443 i believe
look through your local flyte logs?
i assume you’re developing against the standalone single flyte binary?
l
Yes, I am using single Flyte binary
Thanks a lot
y
is your webhook running?
check that
l
Yes it is, I think I need to find where to turn the webhook url to local host:9443
It is asking the wrong place in the log
It helps a lot, thanks really much
y
that should work automatically using the magic jeev added.
the envoy layer routes certain traffic in dev mode back out to the host
l
I will spend time to trace the code!
Thanks a lot