From 328a713f4f6a46e03dc5e9e392f7ffd4be136bff Mon Sep 17 00:00:00 2001 From: Story Crater Bot <19826264+Riotpiaole@users.noreply.github.com> Date: Tue, 21 Jul 2026 12:42:16 -0700 Subject: [PATCH] Revert "fix(temporal): deploy Cassandra + Elasticsearch, pin chart to v0.74.0 (older version with sub-chart support)" This reverts commit cc5325d90544c2ce44bffcb61b4894e1c6a2de86. --- .../temporal/temporal-values.yaml | 68 ++++++++----------- k8s/argocd/apps/60-applications.yaml | 2 +- 2 files changed, 31 insertions(+), 39 deletions(-) diff --git a/k8s/applications/temporal/temporal-values.yaml b/k8s/applications/temporal/temporal-values.yaml index e55c456..6c93688 100644 --- a/k8s/applications/temporal/temporal-values.yaml +++ b/k8s/applications/temporal/temporal-values.yaml @@ -1,20 +1,39 @@ # k8s/temporal/temporal-values.yaml # Temporal — workflow engine for story-crater backend async task orchestration. -# Chart: temporal/temporal v1.6.0 from https://go.temporal.io/helm-charts +# Chart: temporal/temporal from https://go.temporal.io/helm-charts # # Uses Cassandra for default store (workflow history/events) # Uses Elasticsearch for visibility store (namespace/workflow queries) # This is the chart's native, well-tested configuration. -# ── Sub-charts ──── -# Cassandra and Elasticsearch deployed as dependencies +# ── Datastores configuration ──── +# Disable auto-deployed PostgreSQL (we use external ddb for other services) +postgresql: + enabled: false + +# Enable Elasticsearch for visibility store (deployed to worker node, 2Gi/4Gi memory) +elasticsearch: + enabled: true + scheme: http + host: temporal-elasticsearch + port: 9200 + version: v7 + logLevel: error + auth: + enabled: false + indices: + visibility: temporal_visibility_v1 + +# Cassandra enabled for template validation; server.config overrides with actual hosts +# Schema job template requires cassandra config to exist at top level cassandra: enabled: true replicas: 3 cluster: seedSize: 1 port: 9042 - # Spread replicas across nodes to avoid single-node bottleneck + # Was landing 2 of 3 replicas on talos-cp-1 -- spread across nodes so a + # single overloaded node can't stall gossip/join for the whole ring. affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: @@ -26,25 +45,6 @@ cassandra: release: temporal topologyKey: kubernetes.io/hostname -elasticsearch: - enabled: true - replicas: 1 - auth: - enabled: false - env: - cluster.name: temporal - discovery.type: single-node - resources: - requests: - memory: "512Mi" - cpu: "250m" - limits: - memory: "1Gi" - cpu: "500m" - -postgresql: - enabled: false - # ── Disable schema auto-setup (will initialize manually) ───────── jobs: autoSetup: @@ -76,27 +76,19 @@ server: numHistoryShards: 512 datastores: default: - # Cassandra for workflow history/events + # Cassandra for workflow history and events + driver: cassandra cassandra: - hosts: "temporal-cassandra-0.temporal-cassandra.temporal.svc.cluster.local,temporal-cassandra-1.temporal-cassandra.temporal.svc.cluster.local,temporal-cassandra-2.temporal-cassandra.temporal.svc.cluster.local" + hosts: "temporal-cassandra" port: 9042 keyspace: temporal - user: cassandra - password: "" + user: user + password: "" # Cassandra auth disabled in deployment replicationFactor: 3 consistency: default: - consistency: LOCAL_QUORUM - serialConsistency: LOCAL_SERIAL - maxConnsPerHost: 32 - visibility: - # Elasticsearch for visibility store (workflow queries) - elasticsearch: - url: "http://elasticsearch.temporal.svc.cluster.local:9200" - scheme: http - logLevel: info - bulkProcessor: - bulkActions: 1000 + consistency: local_quorum + serialConsistency: local_serial service: type: ClusterIP diff --git a/k8s/argocd/apps/60-applications.yaml b/k8s/argocd/apps/60-applications.yaml index 9b8b66b..bcb116c 100644 --- a/k8s/argocd/apps/60-applications.yaml +++ b/k8s/argocd/apps/60-applications.yaml @@ -14,7 +14,7 @@ spec: sources: - repoURL: https://go.temporal.io/helm-charts chart: temporal - targetRevision: "0.74.0" + targetRevision: "*" helm: valueFiles: - $values/k8s/applications/temporal/temporal-values.yaml