HI,
When using the vault helm chart and enabling HA mode using raft for HA storage and S3 for storage. All HA nodes come up in standby and Active Node Address is not set.
Below are relevant values I’ve set…
dataStorage:
enabled: false
mountPath: "/vault/file"
extraEnvironmentVars:
VAULT_ENABLE_FILE_PERMISSIONS_CHECK: "true"
extraSecretEnvironmentVars:
- envName: AWS_ACCESS_KEY_ID
secretName: s3bucketauth
secretKey: aws_access_key_id
- envName: AWS_SECRET_ACCESS_KEY
secretName: s3bucketauth
secretKey: aws_secret_access_key
standalone:
enabled: false
ha:
enabled: true
replicas: 2
setNodeId: false
config: |
ui = true
listener "tcp" {
tls_disable = 1
address = "[::]:8200"
cluster_address = "[::]:8201"
}
ha_storage "raft" {
path = "/vault/file"
}
storage "s3" {
bucket = "<bucket-name>"
endpoint = "<hostname>"
s3_force_path_style = "true"
disable_ssl = "true"
}
service_registration "kubernetes" {}
logs from one of the nodes…
==> Vault server configuration:
HA Storage: raft
Api Address: http://<ip-address>:8200
Cgo: disabled
Cluster Address: https://vault-tenant-hashicorp-vault-0.vault-tenant-hashicorp-vault-internal:8201
Go Version: go1.19.2
Listener 1: tcp (addr: "[::]:8200", cluster address: "[::]:8201", max_request_duration: "1m30s", max_request_size: "33554432", tls: "disabled")
Log Level: info
Mlock: supported: true, enabled: false
Recovery Mode: false
Storage: s3
Version: Vault v1.12.1, built 2022-10-27T12:32:05Z
Version Sha: e34f8a14fb7a88af4640b09f3ddbb5646b946d9c
==> Vault server started! Log data will stream in below:
2023-05-08T19:55:16.044Z [INFO] proxy environment: http_proxy="" https_proxy="" no_proxy=""
2023-05-08T19:55:16.090Z [INFO] core: Initializing version history cache for core
2023-05-08T20:05:58.834Z [INFO] core.cluster-listener.tcp: starting listener: listener_address=[::]:8201
2023-05-08T20:05:58.834Z [INFO] core.cluster-listener: serving cluster requests: cluster_listen_address=[::]:8201
2023-05-08T20:05:58.839Z [INFO] core: vault is unsealed
2023-05-08T20:05:58.840Z [INFO] core: entering standby mode