Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

1mb etcd limit #655

Closed
sabrehagen opened this issue Mar 28, 2018 · 13 comments
Closed

1mb etcd limit #655

sabrehagen opened this issue Mar 28, 2018 · 13 comments

Comments

@sabrehagen
Copy link

From the docs:

--from-file test.py: This is the file containing the function code. It is supported to specify a zip file as far as it doesn't exceed the maximum size for an etcd entry (1 MB).

Is there a way to get around this limit? My functions are ~3MB compiled.

@sebgoa
Copy link
Contributor

sebgoa commented Mar 28, 2018

let's check with @andresmgot for the exact limit of the zip archive.

we are working on a build system, so your functions will be "built" within kubeless and the resulting image will be stored in a docker registry. This will remove any limitation of the current system.

@sabrehagen
Copy link
Author

sabrehagen commented Mar 28, 2018 via email

@sebgoa
Copy link
Contributor

sebgoa commented Mar 28, 2018

This was merged 5 days ago:
#621

And the new release should be cut really soon now (~ days)

@andresmgot
Copy link
Contributor

Hi @sabrehagen,

I am afraid that the current build system still uses ConfigMaps and CRDs to obtain the function code so the limitation of 1 MB is still present. Note that --from-file should be used to specify just plain text code, the installation of dependencies and compilation will happen during the build process.

Also note that the limitation is per function, maybe we can help with your specific case with more info: What are you trying to deploy? Is it a zip file?

@sabrehagen
Copy link
Author

sabrehagen commented Mar 28, 2018 via email

@andresmgot
Copy link
Contributor

In that case yes, you will need to include in the Zip file just your code files and then specify as --dependencies your package.json. That way the dependencies will be installed in the build process.

Also note that webpack is not supported yet: serverless/serverless-kubeless#83 (comment)

@sabrehagen
Copy link
Author

Our build process is more complex and we use our own serverless webpack plugin that creates a zip with our custom build. The --dependencies method doesn't resolve this for us. Given that our per-function zips will exceed the 1mb limit and your comment that ConfigMaps and CRDs to obtain the function code so the limitation of 1 MB is still present, is there any possibility for us to use Kubeless?

@sebgoa
Copy link
Contributor

sebgoa commented Mar 29, 2018

Hi, is there a way to discuss your exact workflow in a google docs or via voice ? We would love to understand exactly your workflow and see how it could be enabled.

@alanjds
Copy link

alanjds commented May 14, 2018

Is this considered fixed, as #621 got merged?

@andresmgot
Copy link
Contributor

Not really, the function is still obtained from a ConfigMap to generate the image in #621 so the issue is still there. We are working on #726 that should help though.

@andresmgot
Copy link
Contributor

Now that #726 has been landed the 1MB limitation can be avoided using an URL with the flag --from-file.

@alanjds
Copy link

alanjds commented May 16, 2018

Thanks!

I had already switched tasks but will be back later.

@andresmgot
Copy link
Contributor

closing this issue since this is already solved.

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

No branches or pull requests

4 participants