-
Notifications
You must be signed in to change notification settings - Fork 475
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
Unable to Deploy Public Image on OpenFaaS from Docker Hub #1231
Comments
Hi, I was able to deploy your image using OpenFaaS CE with no issues: def handle(req):
array = req.replace('\n', '').split(',')
rlt = 0
for i in array:
rlt += int(i)
return rlt That's the handler correct, with the
Deployment:
Result:
|
I see you have some Chinese characters in your profile, it's well known that the Chinese authority may block access to US hosted sites such as the Docker Hub. Perhaps you can share your exact stack.yml file, or maybe you're running your Kubernetes cluster on a network or in a VM without proper Internet access? Perhaps you could try using a local company's registry instead like Alibaba cloud etc? |
Hello! Thank you very much for your reply! I specifically set up a proxy and modified the "/etc/containerd/config.toml" file as follows: However, when I try to pull the image using OpenFaaS, I still get the error: Since you mentioned that you can deploy it successfully, it seems that the issue is indeed caused by China's network firewall. I might need to set up a more comprehensive proxy. By the way, can OpenFaaS modify the image pulling endpoint, similar to how I configure the containerd? Thank you again for your reply! |
Hi, This information was very helpful. You can use OpenFaaS Edge with faasd on a VM, if you become a sponsor via GitHub at 25 USD / month, this would allow you to use public and private images, and does not have the same checks. It also gives you extra features like scale to zero. Is this a personal or work project? If Kubernetes is a hard requirement, then we would recommend purchasing OpenFaaS Standard on a monthly basis. Regards, Alex |
Hello alexellis, Thank you very much for your suggestion. However, I am just learning how to use this software, and I plan to use OpenFaaS as a tool for my Master's thesis. I really want to support OpenFaaS, but $25 a month is a bit expensive for me, as my monthly living expenses are only $200 (this is quite common in China). If the issue is caused by network restrictions preventing image pulls, then even subscribing to a paid plan might not resolve the problem. If it is not possible to modify the image source adress in OpenFaaS, I will consider setting up a more comprehensive proxy or switching to a different platform. Thank you for your reply. |
The commercial versions will work with your configuration. Is there a specific reason you need Kubernetes, or can you use faasd on a VM? |
Expected Behaviour
The function should deploy successfully using the provided
add.yml
configuration and the imageznfy233/add
should be pulled from the Docker Hub without any issues.Current Behaviour
When deploying the function with the
faas-cli deploy -f add.yml
command, I receive the error:the Community Edition license agreement only supports public images
, even though the imageznfy233/add
is public.Why is this needed?
This issue needs to be resolved to ensure that functions can be deployed without licensing issues, especially when using public images. It prevents the deployment of functions and restricts the use of OpenFaaS Community Edition with publicly available images.
List All Possible Solutions and Workarounds
I tried deploying the pytorch/pytorch image, but I still get the same error message.
Steps to Reproduce (for bugs)
add.yml
configuration.faas-cli deploy -f add.yml
.the Community Edition license agreement only supports public images
.Context
I am learning to use OpenFaaS. Following the tutorial, I built an image and uploaded it to Docker Hub, setting it to public, but I am unable to deploy it.
Your Environment
CLI:
commit: 41605396955e6b13488755852106bd9bf315219a
version: 0.16.37
Gateway
uri: http://192.168.100.2:31119
version: 0.27.9
sha: 4e80b96d19a2b23855c2ed55afb2632179f3d2e7
Provider
name: faas-netes-ce
orchestration: kubernetes
version: 0.18.9
sha: 294f3bc
The text was updated successfully, but these errors were encountered: