# Kubeless deployment

**URL:** <https://forum.serverless.com/t/kubeless-deployment/12733>\
**Category:** Serverless Framework\
**Tags:** lambda\
**Created:** [October 2, 2020, 4:45pm UTC](https://forum.serverless.com/t/kubeless-deployment/12733 "2020-10-02T16:45:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![userdhiru](https://avatars.discourse-cdn.com/v4/letter/u/e95f7d/32.png) [@userdhiru](https://forum.serverless.com/u/userdhiru)\
**Post date:** [October 2, 2020, 4:45pm UTC](https://forum.serverless.com/t/kubeless-deployment/12733/1 "2020-10-02T16:45:49Z")

</div>

My requirement is as I have my lambda whose size is more than 1 MB , tryingt o solve sample code so that understand how things will work better for me

root@ip-172-30-0-111:~/serverless-kubeless/examples/event-trigger-python# sls version  
Framework Core: 2.2.0 (standalone)  
Plugin: 4.0.4  
SDK: 2.3.2  
Components: 3.1.4

I am trying to run below same sample code

> **[Serverless Framework - Kubeless Guide - Functions](https://www.serverless.com/framework/docs/providers/kubeless/guide/functions/)**
>
> How to configure Kubeless functions in the Serverless Framework

Serverless: Deploying function hello…  
Serverless: Pods status: {“waiting”:{“reason”:“ContainerCreating”}}  
Serverless: Pods status: {“waiting”:{“reason”:“CrashLoopBackOff”,“message”:“back-off 10s restarting failed container=hello pod=hello-8698fb89d4-76hkb\_default(d6f2a304-2ec9-44a1-9f1e-ace0662e3ce2)”}}  
Serverless: Pods status: {“terminated”:{“exitCode”:1,“reason”:“Error”,“startedAt”:“2020-10-02T16:42:48Z”,“finishedAt”:“2020-10-02T16:42:48Z”,“containerID”:“docker://005a79567466f8aec8fea2c172290a28a3978c942008b53c615241134e4bd3fa”}}  
Serverless: Pods status: {“waiting”:{“reason”:“CrashLoopBackOff”,“message”:“back-off 20s restarting failed container=hello pod=hello-8698fb89d4-76hkb\_default(d6f2a304-2ec9-44a1-9f1e-ace0662e3ce2)”}}  
Serverless: ERROR: Failed to deploy the function  
Serverless: Pods status: {“terminated”:{“exitCode”:1,“reason”:“Error”,“startedAt”:“2020-10-02T16:43:18Z”,“finishedAt”:“2020-10-02T16:43:18Z”,“containerID”:“docker://66d8b8d6854a1bc789d4bcf16415589017e3a9b7513fadc52ece75990adf200c”}}

When I see logs , it talks about this  
root@ip-172-30-0-111:~/serverless-kubeless/examples/event-trigger-python# kubectl logs hello-8698fb89d4-76hkb  
Traceback (most recent call last):  
File “/kubeless.py”, line 10, in   
‘/kubeless/%s.py’ % os.getenv(‘MOD\_NAME’))  
IOError: [Errno 2] No such file or directory

---

<div class="post-metadata">

**Author:** ![userdhiru](https://avatars.discourse-cdn.com/v4/letter/u/e95f7d/32.png) [@userdhiru](https://forum.serverless.com/u/userdhiru)\
**Post date:** [October 4, 2020, 11:47pm UTC](https://forum.serverless.com/t/kubeless-deployment/12733/2 "2020-10-04T23:47:58Z")

</div>

kubectl logs hello-79b55c49b9-xxzx5

Traceback (most recent call last):  
File “/kubeless.py”, line 10, in   
‘/kubeless/%s.py’ % os.getenv(‘MOD\_NAME’))  
IOError: [Errno 2] No such file or directory
