Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Func Deploy issue with local kind registry #2371

Open
matzew opened this issue Jun 18, 2024 · 5 comments
Open

Func Deploy issue with local kind registry #2371

matzew opened this issue Jun 18, 2024 · 5 comments

Comments

@matzew
Copy link
Member

matzew commented Jun 18, 2024

Using the local kind registry from kn quickstart, I am getting a little issue.

Running the first deploy is good:

func deploy --registry localhost:5001
Building function image
Still building
🙌 Function built: localhost:5001/s3-logger:latest
Pushing function image to the registry "localhost:5001" using the "" user credentials
⬆️  Deploying function to the cluster
🎯 Creating Triggers on the cluster
✅ Function deployed in namespace "default" and exposed at URL: 
   http://s3-logger.default.127.0.0.1.sslip.io

Now, running it for a second time (and yes, no code changes), I am getting an error:

➜  s3-logger func deploy --registry localhost:5001
function up-to-date. Force rebuild with --build
Pushing function image to the registry "localhost:5001" using the "" user credentials
Error: Error response from daemon: failed to find image localhost:5001/s3-logger@sha256:82e961f6b4868a296547f477cec305af1048c4e9785bdc23e71088612675c42c: localhost:5001/s3-logger@sha256:82e961f6b4868a296547f477cec305af1048c4e9785bdc23e71088612675c42c: No such image

there is a work-around, by forcing the rebuild to happen, using the --build argument:

➜  s3-logger func deploy --build --registry localhost:5001
Building function image
Still building
🙌 Function built: localhost:5001/s3-logger:latest
Pushing function image to the registry "localhost:5001" using the "" user credentials
⬆️  Deploying function to the cluster
🎯 Creating Triggers on the cluster
✅ Function updated in namespace "default" and exposed at URL: 

NOTE: I am running w/ podman - not the docker CLI

@matejvasek
Copy link
Contributor

Did you use latest release or main @matzew ?

@matejvasek
Copy link
Contributor

btw another workaround could be flag -u=0.

@matzew
Copy link
Member Author

matzew commented Jun 18, 2024

I used 0.41 version.

btw another workaround could be flag -u=0

is there any doc for that?

@matejvasek
Copy link
Contributor

-u=0 skips push

@oEscal
Copy link

oEscal commented Sep 15, 2024

After finding this thread, I tried to use -u=0, but I got the following error:

Error: deploy error. knative deployer failed to deploy the Knative Service: admission webhook "validation.webhook.serving.knative.dev" denied the request: validation failed: missing field(s): spec.template.spec.containers[0].image

@matejvasek Any idea of what it could be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants