Thanks for quick response @asif
we are using both docker compose and k8s deployments, k8s is working as
expected.
here is the sample docker-compose file to deploy agents
agent:
image: arangodb:latest
restart: always
network_mode: host
mem_limit: 1G
memswap_limit: 1G
environment:
ARANGO_ROOT_PASSWORD: foobar
volumes:
- /data:/var/lib/arangodb3
- /config/agent.conf:/etc/arangodb3/arangod.conf
and the conf looks like:
[database]
directory = /var/lib/arangodb3
[server]
endpoint = tcp://0.0.0.0:8530
storage-engine = auto
authentication = true
# gather server statistics
statistics = true
[log]
level = info
file = -
[agency]
activate = true
my-address = tcp://100.101.10.10:8530
size = 3
supervision = true
it is a 3 node deployment and agents are up and not joining with other
agents if we specify the authentication, whereas things work as expected
without authentication.
Thanks
On Tuesday, February 6, 2024 at 7:04:36 PM UTC-8 [email protected] wrote:
> Any reason to use docker and not k8s?
>
> The ARANGO_ROOT_PASSWORD is probably only going to work for a standalone
> server not a cluster.
>
> If you are setting up a cluster you may have to use the REST API /
> Arangosh to set the password as outlined in the docs
>
> Can you elaborate on server not coming up, what are the logs saying?
>
> On Tuesday, February 6, 2024 at 11:34:54 AM UTC-8 [email protected]
> wrote:
>
>> Hi everyone,
>>
>> we are trying to bring up an Arango db cluster using docker compose and
>> if i enable authentication using `ARANGO_ROOT_PASSWORD`. the server is
>> not coming up.
>> I don't find any documentation or sample with authentication enabled for
>> a docker cluster environment.
>>
>> Can someone please suggest or help me on this.
>>
>
--
You received this message because you are subscribed to the Google Groups
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/arangodb/1c9d6043-76e0-4986-b971-3ebe8d64d69en%40googlegroups.com.