# Cannot upgrade kong ingress

**URL:** <https://discuss.konghq.com/t/cannot-upgrade-kong-ingress/9292>\
**Category:** Questions\
**Tags:** kubernetes\
**Created:** [October 31, 2021, 2:00pm UTC](https://discuss.konghq.com/t/cannot-upgrade-kong-ingress/9292 "2021-10-31T14:00:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomT](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@TomT](https://discuss.konghq.com/u/TomT)\
**Post date:** [October 31, 2021, 2:00pm UTC](https://discuss.konghq.com/t/cannot-upgrade-kong-ingress/9292/1 "2021-10-31T14:00:54Z")

</div>

Hi,

I’am trying to upgrade my kong ingress from version 0.8.0 to the latest version but I get the following error:

```auto
Error: UPGRADE FAILED: parse error at (kong/templates/ingress-class.yaml:2): function "lookup" not defined

```

I executed the helm repo upgrade command:

```auto
helm repo update

```

And after that I used the following upgrade command from the docs ([https://docs.konghq.com/kubernetes-ingress-controller/2.0.x/guides/upgrade/](https://docs.konghq.com/kubernetes-ingress-controller/2.0.x/guides/upgrade/)):

```auto
helm upgrade ${YOUR_RELEASE_NAME} kong/kong \
  --namespace ${YOUR_NAMESPACE} \
  -f ${PATH_TO_YOUR_VALUES_FILE}

```

Any suggestions how fix this?

Best Tom

---

<div class="post-metadata">

**Author:** ![traines](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/traines/32/158_2.png) [@traines](https://discuss.konghq.com/u/traines)\
**Post date:** [November 1, 2021, 11:05pm UTC](https://discuss.konghq.com/t/cannot-upgrade-kong-ingress/9292/2 "2021-11-01T23:05:37Z")

</div>

That indicates an [older version of Helm](https://github.com/Kong/charts/blob/main/charts/kong/UPGRADE.md#support-for-helm-2-dropped) prior to when they added the `lookup` template function.

That actually requires Helm 3.1, though we generally just mention the Helm 2/Helm 3 distinction since we don’t often see older versions of Helm 3 in the wild.

---

<div class="post-metadata">

**Author:** ![TomT](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@TomT](https://discuss.konghq.com/u/TomT)\
**Post date:** [November 2, 2021, 10:44am UTC](https://discuss.konghq.com/t/cannot-upgrade-kong-ingress/9292/3 "2021-11-02T10:44:38Z")

</div>

Hi,

Thanks for your reply, I will upgrade my helm version and try it again.

---

<div class="post-metadata">

**Author:** ![TomT](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@TomT](https://discuss.konghq.com/u/TomT)\
**Post date:** [November 4, 2021, 12:20pm UTC](https://discuss.konghq.com/t/cannot-upgrade-kong-ingress/9292/4 "2021-11-04T12:20:37Z")

</div>

This was the probleem indeed. Thanks it works now.
