# How to create Python function on my kubernetes cluster

**URL:** <https://forum.serverless.com/t/how-to-create-python-function-on-my-kubernetes-cluster/6707>\
**Category:** Serverless Framework\
**Created:** [December 12, 2018, 10:04am UTC](https://forum.serverless.com/t/how-to-create-python-function-on-my-kubernetes-cluster/6707 "2018-12-12T10:04:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RuthKimberly](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/ruthkimberly/32/2214_2.png) [@RuthKimberly](https://forum.serverless.com/u/RuthKimberly)\
**Post date:** [December 12, 2018, 10:04am UTC](https://forum.serverless.com/t/how-to-create-python-function-on-my-kubernetes-cluster/6707/1 "2018-12-12T10:04:20Z")

</div>

I have followed the instructions [here](https://serverless.com/framework/docs/providers/kubeless/guide/quick-start/) to create a Python function on my [kubernetes cluster](https://mindmajix.com/kubernetes-training) with the serverless framework & kubeless

I can deploy the function fine:

```auto
$ serverless deploy

```

But if I make a change to the Python code and try to re-deploy:

```auto
$ serverless deploy
...

Serverless: Excluding development dependencies...

  Error --------------------------------------------------

  Found errors while deploying the given functions:
Error: Unable to update the function hello2. Received:
  Code: 422
  Message: functions.k8s.io "hello2" is invalid: metadata.resourceVersion: Invalid value: 0x0: must be specified for an update

```

Thanks,  
Ruth Kimberly.
