首页 > 解决方案 > Unable to connect to Vault Error unsealing: Put "https://127.0.0.1:8200/v1/sys/unseal": dial tcp 127.0.0.1:8200: connect: connection denied

问题描述

我无法连接到价值。这是错误日志:

default: 
 
 Error! Failed writing data: Put
"http://127.0.0.1:8500/v1/kv/cobalt/cluster/status": dial tcp
 127.0.0.1:8500: connect: connection refused
    default: Checking and intializing vault if needed
    default: Error initializing: Put "https://127.0.0.1:8200/v1/sys/init": dial tcp 127.0.0.1:8200:
 connect: connection refused
   default: Unseal Key (will be hidden):
     default: An error occurred attempting to ask for an unseal key. The raw error message
    default: is shown below, but usually this is because you attempted to pipe a value
   default: into the unseal command or you are executing outside of a terminal (tty). You
   default: should run the unseal command from a terminal for maximum security. If this
    default: is not an option, the unseal key can be provided as the first argument to the
    default: unseal command. The raw error was:  file descriptor 0 is not a terminal

当我尝试运行 echo VAULT_ADDR 时,我得到了这个:https ://127.0.0.1:8200

有人知道为什么我无法连接到保险库吗?

标签: hashicorp-vaultvaulthashicorp

解决方案


如果您使用任何 CNI。检查全球网络策略。


推荐阅读