Skip to content

Commit

Permalink
Excludes local address from cluster settings
Browse files Browse the repository at this point in the history
NATS' Jetstream uses any present cluster settings to set up a cluster.
If the Cluster setting is specified in code but is empty, or contains
the local address, it fails to start.  The Cluster setting should only
be other nodes in the cluster.
  • Loading branch information
rossjones authored and simonwo committed Mar 4, 2024
1 parent 02723e7 commit 8e0f327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ops/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export OTEL_RESOURCE_ATTRIBUTES="deployment.environment=${terraform.workspace}"
export BACALHAU_NODE_NETWORK_TYPE=${var.network_type}
export BACALHAU_NODE_NETWORK_ORCHESTRATORS="${var.internal_ip_addresses[0]}:4222"
export BACALHAU_NODE_NETWORK_ADVERTISEDADDRESS="${var.public_ip_addresses[count.index]}:4222"
export BACALHAU_NODE_NETWORK_CLUSTER_PEERS="${var.internal_ip_addresses[0]}:6222"
export BACALHAU_NODE_NETWORK_CLUSTER_PEERS=""
### secrets are installed in the install-node.sh script
export SECRETS_GRAFANA_CLOUD_PROMETHEUS_API_KEY="${var.grafana_cloud_prometheus_api_key}"
Expand Down

0 comments on commit 8e0f327

Please sign in to comment.