autojoin & debug

This commit is contained in:
Joseph Hanson 2024-09-10 22:47:02 -05:00
parent 806b86b233
commit f110b83a23
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -49,6 +49,13 @@ spec:
# path: /v1/sys/health?standbyok=true # path: /v1/sys/health?standbyok=true
# Port number on which readinessProbe will be checked. # Port number on which readinessProbe will be checked.
port: *port port: *port
extraEnvironmentVars:
- name: VAULT_ADDR
value: "http://127.0.0.1:8200"
- name: VAULT_API_ADDR
value: "http://$(POD_IP):8200"
- name: VAULT_CLUSTER_ADDR
value: "http://$(POD_IP):8201"
# These are defaults but explicitly set here for clarity. # These are defaults but explicitly set here for clarity.
dataStorage: dataStorage:
size: 10Gi size: 10Gi
@ -87,9 +94,10 @@ spec:
storage "raft" { storage "raft" {
path = "/vault/data" path = "/vault/data"
retry_join { retry_join {
leader_api_addr = "http://vault-5.vault-internal:8200" auto_join = "provider=k8s label_selector=\"app.kubernetes.io/name=vault,component=server\" namespace=\"security\""
} auto_join_scheme = "http"
}
} }
service_registration "kubernetes" {} service_registration "kubernetes" {}