Replies: 4 comments 10 replies
-
Jan, How many nodes in your swarm cluster? Have you tried running it in a one-node swarm cluster first? Also, we have a Kubernetes helm chart for EdgeX deployment here: https://github.com/edgexfoundry/edgex-helm The difficulty running EdgeX in secure mode in any kind of multi-node orchestration framework has generally been distributing the secret store token to the EdgeX services on remote nodes -- pretty much you need a network file system like GlusterFS running across your nodes. Also, I suggest you read Is EdgeX Foundry Cloud Native? that explains the EdgeX position on a lot of these topics. |
Beta Was this translation helpful? Give feedback.
-
@Jan5566 I'm not at a system where I can run a quick regression on this, but the following line looks suspicious:
I'm not immediately sure what's wrong, but this is the tell:
So something during the Consul initialization is causing Consul to not be switched into ACL mode. This is going to fail every other service that depends on Consul. That all happens in this script: https://github.com/edgexfoundry/edgex-go/blob/main/cmd/security-bootstrapper/entrypoint-scripts/consul_wait_install.sh It looks a lot like the problem earlier in the thread, repeating itself in Kubernetes. |
Beta Was this translation helpful? Give feedback.
-
I pulled from the In the hostPath configuration, all the services will start on a single node. I suggest going to the /mnt folder on that node and completely wiping any edgex data folders there and starting again. The documentation specifically notes you can't switch in and out of secure mode without a full clean. I think the repo is fine and any problems are with your configuration, I'm sorry to say. |
Beta Was this translation helpful? Give feedback.
-
If I enable security and --set storage.useHostPath=false, I also need to deploy rook myself like this or network file system like GlusterFS right? Is that Swarm and Kubernetes require network file system to distribute Vault tokens? |
Beta Was this translation helpful? Give feedback.
-
The problem is that edgex can work normally under docker swarm overlay, but can not work properly when enable security mode. Please help me solve this problem thanks.
Edgex version is 3.1.0
my docker-compose.yml
docker-compose.zip
find error in consul log:
Other micro service such as edgex_core-command, edgex_core-data ,edgex_core-metadata, etc. ,failed to get Configuration Provider (consul) access token as following log.
Beta Was this translation helpful? Give feedback.
All reactions