BetaThis is a live doc! Anyone with edit access can make updates in real time without having to publish.
在 k8s 上安装 Temporal

安装

单节点

注意这个版本是自动安装了单节点 Cassandra 作为数据库

1helm install -n temporal \ 2 --repo https://go.temporal.io/helm-charts \ 3 --set server.replicaCount=1 \ 4 --set cassandra.config.cluster_size=1 \ 5 --set elasticsearch.replicas=1 \ 6 --set prometheus.enabled=false \ 7 --set grafana.enabled=false \ 8 temporal temporal \ 9 --timeout 15m

更多文档:https://github.com/temporalio/helm-charts

使用

CLI

1kubectl -n temporal exec -it services/temporaltest-admintools -- /bin/bash 2 3# Then run "temporal ..."

WebUI

http://temporal-web.temporal.svc.cluster.local:8080/

1kubectl -n temporal port-forward services/temporaltest-web 8080:8080

Endpoint

temporal-frontend.temporal.svc.cluster.local:7233

常见问题

Dashboard 中某些操作时报错 missing csrf token in request header

配置

1web: 2 additionalEnv: 3 - name: TEMPORAL_CSRF_COOKIE_INSECURE 4 value: "true"