|
| 1 | +# Namespace note: install into namespace: cadence-postgres-es7 |
| 2 | + |
| 3 | +# Allow Bitnami charts to use legacy repository images |
| 4 | +global: |
| 5 | + image: |
| 6 | + tag: "v1.3.6" # Default version |
| 7 | + security: |
| 8 | + allowInsecureImages: true |
| 9 | + |
| 10 | +# Force Cadence to use PostgreSQL for main DB |
| 11 | +config: |
| 12 | + persistence: |
| 13 | + # Name of the default datastore (PostgreSQL) |
| 14 | + defaultStore: "default" |
| 15 | + # Disable basic SQL visibility (we're using ES-only via Kafka) |
| 16 | + visibilityStore: "" |
| 17 | + # Name of the advanced visibility datastore (Elasticsearch) |
| 18 | + # Note: This defines the datastore, but dynamic config controls how it's used |
| 19 | + advancedVisibilityStore: "es-visibility" |
| 20 | + database: |
| 21 | + driver: "postgres" |
| 22 | + sql: |
| 23 | + hosts: "cadence-release-postgresql.cadence-postgres-es7.svc.cluster.local" |
| 24 | + port: 5432 |
| 25 | + dbname: "cadence" |
| 26 | + user: "cadence" |
| 27 | + password: "changeme-strong" |
| 28 | + tls: |
| 29 | + enabled: false |
| 30 | + sslMode: "" |
| 31 | + elasticsearch: |
| 32 | + enabled: true |
| 33 | + version: "v7" |
| 34 | + user: "" |
| 35 | + password: "" |
| 36 | + protocol: "http" |
| 37 | + hosts: "cadence-release-elasticsearch.cadence-postgres-es7.svc.cluster.local" |
| 38 | + port: 9200 |
| 39 | + visibilityIndex: "cadence-visibility-es7" |
| 40 | + tls: |
| 41 | + enabled: false |
| 42 | + kafka: # needed by elasticsearch integration |
| 43 | + enabled: true |
| 44 | + brokers: "cadence-release-kafka.cadence-postgres-es7.svc.cluster.local" |
| 45 | + |
| 46 | +# Enable Cadence schema jobs |
| 47 | +schema: |
| 48 | + serverJob: |
| 49 | + enabled: true |
| 50 | + elasticSearchJob: |
| 51 | + enabled: true |
| 52 | + |
| 53 | +# Ensure Cadence uses Elasticsearch for advanced visibility |
| 54 | +# Note: "es" is a special keyword for advanced visibility, not the datastore name |
| 55 | +dynamicConfig: |
| 56 | + values: |
| 57 | + system.writeVisibilityStoreName: |
| 58 | + - value: "es" |
| 59 | + system.readVisibilityStoreName: |
| 60 | + - value: "es" |
| 61 | + |
| 62 | +### subcharts values which can be omited if user has their own deployment |
| 63 | + |
| 64 | +# Deploy Postgres within the same release (Bitnami subchart) |
| 65 | +postgresql: |
| 66 | + enabled: true |
| 67 | + image: |
| 68 | + registry: docker.io |
| 69 | + repository: bitnamilegacy/postgresql |
| 70 | + tag: "16.4.0" |
| 71 | + pullPolicy: IfNotPresent |
| 72 | + auth: |
| 73 | + username: cadence |
| 74 | + password: "changeme-strong" |
| 75 | + database: cadence |
| 76 | + primary: |
| 77 | + persistence: |
| 78 | + enabled: true |
| 79 | + size: 8Gi |
| 80 | + |
| 81 | +# Deploy Elasticsearch with single node mode |
| 82 | +elasticsearch: |
| 83 | + enabled: true |
| 84 | + master: |
| 85 | + masterOnly: false |
| 86 | + replicaCount: 1 |
| 87 | + resources: |
| 88 | + requests: |
| 89 | + cpu: 1 |
| 90 | + memory: 1024Mi |
| 91 | + limits: |
| 92 | + cpu: 2 |
| 93 | + memory: 2048Mi |
| 94 | + data: |
| 95 | + replicaCount: 0 |
| 96 | + coordinating: |
| 97 | + replicaCount: 0 |
| 98 | + ingest: |
| 99 | + replicaCount: 0 |
| 100 | + sysctlImage: |
| 101 | + enabled: false |
| 102 | + image: |
| 103 | + tag: 7.17.23 |
| 104 | + repository: bitnamilegacy/elasticsearch |
| 105 | + |
| 106 | +kafka: |
| 107 | + enabled: true |
| 108 | + image: |
| 109 | + registry: docker.io |
| 110 | + repository: bitnamilegacy/kafka |
| 111 | + tag: "3.8.0" |
| 112 | + pullPolicy: IfNotPresent |
| 113 | + # KRaft mode configuration (Kafka without ZooKeeper) |
| 114 | + kraft: |
| 115 | + enabled: true |
| 116 | + # Disable ZooKeeper since we're using KRaft |
| 117 | + zookeeper: |
| 118 | + enabled: false |
| 119 | + # Controller and broker configuration for KRaft |
| 120 | + controller: |
| 121 | + replicaCount: 1 |
| 122 | + persistence: |
| 123 | + enabled: true |
| 124 | + size: 8Gi |
| 125 | + resources: |
| 126 | + requests: |
| 127 | + cpu: 500m |
| 128 | + memory: 1Gi |
| 129 | + limits: |
| 130 | + cpu: 1 |
| 131 | + memory: 2Gi |
| 132 | + # GKE Autopilot compatibility |
| 133 | + podSecurityContext: |
| 134 | + fsGroup: 1001 |
| 135 | + runAsUser: 1001 |
| 136 | + containerSecurityContext: |
| 137 | + runAsNonRoot: true |
| 138 | + allowPrivilegeEscalation: false |
| 139 | + broker: |
| 140 | + replicaCount: 1 |
| 141 | + persistence: |
| 142 | + enabled: true |
| 143 | + size: 8Gi |
| 144 | + resources: |
| 145 | + requests: |
| 146 | + cpu: 500m |
| 147 | + memory: 1Gi |
| 148 | + limits: |
| 149 | + cpu: 1 |
| 150 | + memory: 2Gi |
| 151 | + # GKE Autopilot compatibility |
| 152 | + podSecurityContext: |
| 153 | + fsGroup: 1001 |
| 154 | + runAsUser: 1001 |
| 155 | + containerSecurityContext: |
| 156 | + runAsNonRoot: true |
| 157 | + allowPrivilegeEscalation: false |
| 158 | + # GKE Autopilot compatibility: disable privileged init container |
| 159 | + sysctlImage: |
| 160 | + enabled: false |
| 161 | + # Kafka topic configuration for Cadence visibility |
| 162 | + autoCreateTopicsEnable: true |
| 163 | + numPartitions: 4 |
| 164 | + defaultReplicationFactor: 1 |
| 165 | + # Configure replication factors for internal topics (demo/single-node setup) |
| 166 | + offsetsTopicReplicationFactor: 1 |
| 167 | + transactionStateLogReplicationFactor: 1 |
| 168 | + transactionStateLogMinIsr: 1 |
| 169 | + # Provision topics at startup to avoid race conditions |
| 170 | + provisioning: |
| 171 | + enabled: true |
| 172 | + topics: |
| 173 | + - name: __consumer_offsets |
| 174 | + partitions: 50 |
| 175 | + replicationFactor: 1 |
| 176 | + config: |
| 177 | + cleanup.policy: compact |
| 178 | + compression.type: producer |
| 179 | + - name: cadence-visibility |
| 180 | + partitions: 4 |
| 181 | + replicationFactor: 1 |
| 182 | + - name: cadence-visibility-dlq |
| 183 | + partitions: 4 |
| 184 | + replicationFactor: 1 |
| 185 | + # Listener configuration |
| 186 | + listeners: |
| 187 | + client: |
| 188 | + protocol: PLAINTEXT |
| 189 | + controller: |
| 190 | + protocol: PLAINTEXT |
| 191 | + interbroker: |
| 192 | + protocol: PLAINTEXT |
| 193 | + # Service configuration |
| 194 | + service: |
| 195 | + type: ClusterIP |
| 196 | + ports: |
| 197 | + client: 9092 |
| 198 | + |
| 199 | +# Do NOT deploy Cassandra or MySQL |
| 200 | +cassandra: |
| 201 | + enabled: false |
| 202 | +mysql: |
| 203 | + enabled: false |
0 commit comments