func
func copied to clipboard
Unable to deploy a func in a K3s Cluster
Hi, I'm following the Knative tutorial, but I'm stuck on deploying any func. I'm in a K3s Cluster with etcd-embedded in an OrbStack Linux Machine with Ubuntu 22.04LTS (arm64).
sudo func build -b=s2i
Building function image
Warning: an existing .s2iignore was detected. Using this with preference over .funcignore
go: downloading knative.dev/func-go v0.21.3
go: downloading github.com/rs/zerolog v1.32.0
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading golang.org/x/sys v0.18.0
🙌 Function built: ghcr.io/elgaleon/hello:latest
sudo func deploy --registry ghcr.io/elgaleon -v -b=s2i
function up-to-date. Force rebuild with --build
Pushing function image to the registry "ghcr.io" using the "elgaleon" user credentials
The push refers to repository [ghcr.io/elgaleon/hello]
40ec2bfbc535: Preparing
22bd5bf294b2: Preparing
28ae3c45fb10: Preparing
0e85b3ee37ea: Preparing
a2cdf9110148: Preparing
40ec2bfbc535: Layer already exists
a2cdf9110148: Layer already exists
0e85b3ee37ea: Layer already exists
22bd5bf294b2: Layer already exists
28ae3c45fb10: Layer already exists
latest: digest: sha256:ce1ea8d1412d38b416ca34c44501052022651035be981ace3676225bbd782d27 size: 1380
⬆️ Deploying
Error: deploy error. failed to create new serving client: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
Any help?
Hello @ElGaleon , it seems func is not able to contact your kubernetes cluster. Can you try it without sudo ?