在 k8s 上安装 Temporal

安装

单节点

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

helm install -n temporal \ --repo https://go.temporal.io/helm-charts \ --set server.replicaCount=1 \ --set cassandra.config.cluster_size=1 \ --set elasticsearch.replicas=1 \ --set prometheus.enabled=false \ --set grafana.enabled=false \ temporal temporal \ --timeout 15m

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

使用

CLI

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

WebUI

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

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

Endpoint

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

常见问题

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

配置

web: additionalEnv: - name: TEMPORAL_CSRF_COOKIE_INSECURE value: "true"