# Temporal with Yugabyte db

**URL:** <https://community.temporal.io/t/temporal-with-yugabyte-db/3530>\
**Category:** Community Support\
**Tags:** java-sdk\
**Created:** [December 6, 2021, 6:12am UTC](https://community.temporal.io/t/temporal-with-yugabyte-db/3530 "2021-12-06T06:12:46Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![poojabhutada](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/poojabhutada/32/3372_2.png) [@poojabhutada](https://community.temporal.io/u/poojabhutada)\
**Post date:** [December 6, 2021, 6:12am UTC](https://community.temporal.io/t/temporal-with-yugabyte-db/3530/1 "2021-12-06T06:12:46Z")

</div>

Hi,

Has anyone tried Temporal with Yugabyte db ?  
Yugabyte is PostgreSQL compatible database and since Temporal supports PostgreSQL, I believe it should not be an issue.  
It would be helpful if anyone has any insights regarding that. Any suggestions on how can I start with the same.

---

<div class="post-metadata">

**Author:** ![poojabhutada](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/poojabhutada/32/3372_2.png) [@poojabhutada](https://community.temporal.io/u/poojabhutada)\
**Post date:** [December 10, 2021, 9:43am UTC](https://community.temporal.io/t/temporal-with-yugabyte-db/3530/2 "2021-12-10T09:43:02Z")

</div>

@tihomir @maxim Request you to please guide on the topic

---

<div class="post-metadata">

**Author:** ![eric1pratt](https://avatars.discourse-cdn.com/v4/letter/e/838e76/32.png) [@eric1pratt](https://community.temporal.io/u/eric1pratt)\
**Post date:** [December 17, 2021, 7:31pm UTC](https://community.temporal.io/t/temporal-with-yugabyte-db/3530/3 "2021-12-17T19:31:48Z")

</div>

Hi, check out this blog that I wrote on the subject:

> **[Getting Started with YugabyteDB, Temporal, and the Temporal-Maru Benchmarking...](https://blog.yugabyte.com/getting-started-yugabytedb-temporal?utm_content=191172879&utm_medium=social&utm_source=linkedin&hss_channel=lcp-10643910)**
>
> Learn how to integrate Temporal and Maru with YugabyteDB to run sample workflows and operate resilient applications using developer-friendly primitives.

---

<div class="post-metadata">

**Author:** ![poojabhutada](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/poojabhutada/32/3372_2.png) [@poojabhutada](https://community.temporal.io/u/poojabhutada)\
**Post date:** [December 19, 2021, 6:13am UTC](https://community.temporal.io/t/temporal-with-yugabyte-db/3530/4 "2021-12-19T06:13:47Z")

</div>

Looks very useful. Thanks a lot for the information !!

---

<div class="post-metadata">

**Author:** ![poojabhutada](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/poojabhutada/32/3372_2.png) [@poojabhutada](https://community.temporal.io/u/poojabhutada)\
**Post date:** [December 20, 2021, 6:58am UTC](https://community.temporal.io/t/temporal-with-yugabyte-db/3530/5 "2021-12-20T06:58:52Z")

</div>

@eric1pratt I am trying to follow the steps as mentioned in above blog post. Facing issue while doing helm install :

> Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: [unable to recognize “”: no matches for kind “ClusterRole” in version “[rbac.authorization.k8s.io/v1beta1](http://rbac.authorization.k8s.io/v1beta1)”, unable to recognize “”: no matches for kind “ClusterRoleBinding” in version “[rbac.authorization.k8s.io/v1beta1](http://rbac.authorization.k8s.io/v1beta1)”]

Please guide if I am missing anything.

---

<div class="post-metadata">

**Author:** ![poojabhutada](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/poojabhutada/32/3372_2.png) [@poojabhutada](https://community.temporal.io/u/poojabhutada)\
**Post date:** [December 21, 2021, 6:05am UTC](https://community.temporal.io/t/temporal-with-yugabyte-db/3530/6 "2021-12-21T06:05:30Z")

</div>

@eric1pratt 1 thing to be rectified in above blog post. In section : Create and update the schema version of the **temporal\_visibility** database, command to update schema for visibility database needs to be modified as below :  
./temporal-sql-tool   
–tls   
–tls-disable-host-verification   
–tls-cert-file $TLS\_CERT\_FILE  
–ep $SQL\_HOST   
-p $SQL\_PORT   
-u $SQL\_USER   
-pw $SQL\_PASSWORD   
–pl $SQL\_PLUGIN   
–db $SQL\_TEMPORAL\_VISIBILITY\_DB   
update-schema -schema-dir ./schema/postgresql/v96/ **visibility** /versioned

---

<div class="post-metadata">

**Author:** ![eric1pratt](https://avatars.discourse-cdn.com/v4/letter/e/838e76/32.png) [@eric1pratt](https://community.temporal.io/u/eric1pratt)\
**Post date:** [December 21, 2021, 4:17pm UTC](https://community.temporal.io/t/temporal-with-yugabyte-db/3530/7 "2021-12-21T16:17:20Z")

</div>

Thanks for the feedback. I’ll get it updated. Did you get past the previous error as well?

---

<div class="post-metadata">

**Author:** ![poojabhutada](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/poojabhutada/32/3372_2.png) [@poojabhutada](https://community.temporal.io/u/poojabhutada)\
**Post date:** [December 21, 2021, 4:36pm UTC](https://community.temporal.io/t/temporal-with-yugabyte-db/3530/8 "2021-12-21T16:36:45Z")

</div>

@eric1pratt Also, the copy commands need to be rectified as below :  
kubectl cp basic-test.json **temporal** /${ADMIN\_TOOLS\_CONTAINER}:/tmp/  
kubectl cp basic-const12k.json **temporal** /${ADMIN\_TOOLS\_CONTAINER}:/tmp/  
kubectl cp basic-payload.json **temporal** /${ADMIN\_TOOLS\_CONTAINER}:/tmp/  
kubectl cp basic-spike.json **temporal** /${ADMIN\_TOOLS\_CONTAINER}:/tmp/

Yet, I could not get past the previous error, it is occurring when prometheus is enabled.

---

<div class="post-metadata">

**Author:** ![eric1pratt](https://avatars.discourse-cdn.com/v4/letter/e/838e76/32.png) [@eric1pratt](https://community.temporal.io/u/eric1pratt)\
**Post date:** [January 4, 2022, 5:17pm UTC](https://community.temporal.io/t/temporal-with-yugabyte-db/3530/9 "2022-01-04T17:17:14Z")

</div>

@poojabhutada I believe the Prometheus issue is actually with Prometheus. I think I ran into the same thing. Let me dig around a bit. Apologies for the delay, I was out on vacation over the holidays.

---

<div class="post-metadata">

**Author:** ![eric1pratt](https://avatars.discourse-cdn.com/v4/letter/e/838e76/32.png) [@eric1pratt](https://community.temporal.io/u/eric1pratt)\
**Post date:** [January 4, 2022, 6:01pm UTC](https://community.temporal.io/t/temporal-with-yugabyte-db/3530/10 "2022-01-04T18:01:04Z")

</div>

@poojabhutada Looks like we need an upgrade to the api. ClusterRole is in [rback.authorization.k8s.io/v1](http://rback.authorization.k8s.io/v1). Appears that the error is stemming from using beta1 version:

```auto
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: [unable to recognize “”: no matches for kind “ClusterRole” in version “rbac.authorization.k8s.io/v1beta1”

```

@tihomir any thoughts on the above? It seems that the helm chart is still using 11.04 which is using rbac with v1beta1:

> <https://github.com/temporalio/helm-charts/blob/master/Chart.yaml>

The current prometheus version is 15. Can we just bump the version in the helm chart to work around it?

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [January 4, 2022, 9:10pm UTC](https://community.temporal.io/t/temporal-with-yugabyte-db/3530/11 "2022-01-04T21:10:34Z")

</div>

@eric1pratt can you please give it a try and report back, same issue was reported regarding grafana as well, see [Temporal deployment with Helm charts](https://community.temporal.io/t/temporal-deployment-with-helm-charts/3630), and associated fix [Fix deprecated role APIs by zanhsieh · Pull Request #89 · grafana/helm-charts · GitHub](https://github.com/grafana/helm-charts/pull/89)
