# Serverless-kubeless example yield error upon deploying

**URL:** <https://forum.serverless.com/t/serverless-kubeless-example-yield-error-upon-deploying/15591>\
**Category:** Serverless Framework\
**Created:** [July 20, 2021, 1:11pm UTC](https://forum.serverless.com/t/serverless-kubeless-example-yield-error-upon-deploying/15591 "2021-07-20T13:11:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![runlevel5](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/runlevel5/32/6002_2.png) [@runlevel5](https://forum.serverless.com/u/runlevel5)\
**Post date:** [July 20, 2021, 1:11pm UTC](https://forum.serverless.com/t/serverless-kubeless-example-yield-error-upon-deploying/15591/1 "2021-07-20T13:11:20Z")

</div>

```auto
  Your Environment Information ---------------------------
     Operating System: darwin
     Node Version: 16.4.1
     Framework Version: 2.52.0 (local)
     Plugin Version: 5.4.3
     SDK Version: 4.2.5
     Components Version: 3.13.4

```

I am following the [instructions](https://www.serverless.com/framework/docs/providers/kubeless/guide/intro/) by creating following `serverless.yaml`:

```auto
service: users
frameworkVersion: ^2.52.0

provider:
  name: kubeless
  runtime: nodejs14
  timeout: 360

functions: # Your "Functions"
  usersCreate:
    handler: hello.hello # The code to call as a response to the event
    events: # The "Events" that trigger this function
      - http:
          path: /hello

```

when I run `serverless deploy` I got following errors:

```nohighlight
Error: Event type path is not supported

```

```nohighlight
Error: Unable to deploy the function usersCreate. Received:
    Code: 422
    Message: Function.kubeless.io "usersCreate" is invalid: metadata.name: Invalid value: "usersCreate": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')

```

Could it be the webpage is out of date? Or am I missing some important details?

Many thanks in advance
