# Advice on deploying Cells to multiple machines

**URL:** <https://forum.pydio.com/t/advice-on-deploying-cells-to-multiple-machines/1920>\
**Category:** Pydio Cells\
**Created:** [December 3, 2018, 4:46pm UTC](https://forum.pydio.com/t/advice-on-deploying-cells-to-multiple-machines/1920 "2018-12-03T16:46:38Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![rossbeazley](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/rossbeazley/32/635_2.png) [@rossbeazley](https://forum.pydio.com/u/rossbeazley)\
**Post date:** [December 3, 2018, 4:46pm UTC](https://forum.pydio.com/t/advice-on-deploying-cells-to-multiple-machines/1920/1 "2018-12-03T16:46:38Z")

</div>

I am experimenting with pydio cells at home, currently running on a single node in my k8s cluster.

I noticed here;

[https://pydio.com/en/docs/cells/v1/whats-new-pydio-cells](https://pydio.com/en/docs/cells/v1/whats-new-pydio-cells)

it says;

## DevOps: micro-services architecture

The technology shift was also the opportunity to actually _“break the monolith”_ . Pydio Cells is a set of micro-services that can be distributed of different physical or virtual machines on a network, allowing greater flexibility, interfacing and scaling.

Is there any advice/docs on how i would go about splitting up this monolith such that I can run each microservice on its own k8s node?

I see here

[https://pydio.com/en/docs/cells/v1/cells-binary-client-commands](https://pydio.com/en/docs/cells/v1/cells-binary-client-commands)

that i can do things like

**Start and the server** or a given service:

```auto
# For instance, to enable debug mode
./cells start --log debug

# Start just a couple of services
./cells start nats pydio.grpc.config pydio.api.proxy

# Start all services except one, here the dav server
./cells start -x pydio.rest.gateway.dav

```

to start specific microservices.

Do you see a way forward where the same docker image is deployed but with different entry points specifiing which service should be running?

Assuming that they share the same config files then “everything should just work” TM

I also assume I need to know the which machine NATS and infact that hostname should be static, would this be the only service?

If i get this working im happy to write up my findings…

thanks for any help!

Ross

---

<div class="post-metadata">

**Author:** ![zayn](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zayn](https://forum.pydio.com/u/zayn)\
**Post date:** [December 3, 2018, 4:57pm UTC](https://forum.pydio.com/t/advice-on-deploying-cells-to-multiple-machines/1920/2 "2018-12-03T16:57:31Z")

</div>

Hi,  
we are currently preparing a piece of documentation that will explain how and what you need to deploy your services on multiple machines, etc…, using for instance kubernetes and such.

When the article will be on site i will try to keep you updated.

And if you have notes that you want to share don’t hesitate.

Regards

---

<div class="post-metadata">

**Author:** ![rossbeazley](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/rossbeazley/32/635_2.png) [@rossbeazley](https://forum.pydio.com/u/rossbeazley)\
**Post date:** [December 3, 2018, 5:39pm UTC](https://forum.pydio.com/t/advice-on-deploying-cells-to-multiple-machines/1920/3 "2018-12-03T17:39:19Z")

</div>

good to know, i have various christmas related things over the next week so progress will be slow for me.

if you want to provide early access im happy to give feedback

likewise ill try and capture my thoughts somewhere so you can see how I fail as i go 🙂

---

<div class="post-metadata">

**Author:** ![rossbeazley](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/rossbeazley/32/635_2.png) [@rossbeazley](https://forum.pydio.com/u/rossbeazley)\
**Post date:** [December 8, 2018, 12:32pm UTC](https://forum.pydio.com/t/advice-on-deploying-cells-to-multiple-machines/1920/4 "2018-12-08T12:32:42Z")

</div>

actually hit my first hurdle right away.

my local disk datasources don’t recover when rebuilding the pods, i think because they get different IP and maybe associated sync services dont start up.

will need to do some digging through docs

---

<div class="post-metadata">

**Author:** ![rossbeazley](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/rossbeazley/32/635_2.png) [@rossbeazley](https://forum.pydio.com/u/rossbeazley)\
**Post date:** [December 8, 2018, 2:18pm UTC](https://forum.pydio.com/t/advice-on-deploying-cells-to-multiple-machines/1920/5 "2018-12-08T14:18:45Z")

</div>

im just doing this weapons grade hackery for now using this as my entrypoint

#!/bin/sh  
IP=`ifconfig eth0 | grep inet | awk '{print $2}' | sed 's/addr://'`  
sed -i “s/PeerAddress”:\ “.\*”,/PeerAddress":\ “$IP”,/g" /root/.config/pydio/cells/pydio.json  
/bin/docker-entrypoint.sh cells start

---

<div class="post-metadata">

**Author:** ![rossbeazley](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/rossbeazley/32/635_2.png) [@rossbeazley](https://forum.pydio.com/u/rossbeazley)\
**Post date:** [December 8, 2018, 9:36pm UTC](https://forum.pydio.com/t/advice-on-deploying-cells-to-multiple-machines/1920/6 "2018-12-08T21:36:04Z")

</div>

im starting to capture some thoughts here

> **[Adventures with Pydio Cells and Kubernetes – Ross Beazley – Medium](https://medium.com/@rossbeazley/adventures-with-pydio-cells-and-kubernetes-b5d05d9fdd6b)**
>
> I’m no expert; I’m not even an amateur; I’m a novice Kubernetes user, this is a recording of the steps I took to “get Pydio Cells working”…

its mostly incoherent at the moment

it may be of some use to you

---

<div class="post-metadata">

**Author:** ![rossbeazley](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/rossbeazley/32/635_2.png) [@rossbeazley](https://forum.pydio.com/u/rossbeazley)\
**Post date:** [December 22, 2018, 7:27pm UTC](https://forum.pydio.com/t/advice-on-deploying-cells-to-multiple-machines/1920/7 "2018-12-22T19:27:42Z")

</div>

@zayn ive got things mostly working now, i had some problems and could only fix the through editing config files. Want to take a read and see if you had the same issue?

> **[Adventures with Pydio Cells and Kubernetes – Ross Beazley – Medium](https://medium.com/@rossbeazley/adventures-with-pydio-cells-and-kubernetes-b5d05d9fdd6b)**
>
> I’m no expert; I’m not even an amateur; I’m a novice Kubernetes user, this is a recording of the steps I took to “get Pydio Cells working”…

---

<div class="post-metadata">

**Author:** ![charles](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/charles/32/3_2.png) [@charles](https://forum.pydio.com/u/charles)\
**Post date:** [December 26, 2018, 5:34pm UTC](https://forum.pydio.com/t/advice-on-deploying-cells-to-multiple-machines/1920/8 "2018-12-26T17:34:04Z")

</div>

Hi @rossbeazley thanks for sharing your thoughts on that ! We still have some work to produce a comprehensive documentation for the usecase you describe. The team is mostly on holidays right now, but we’ll work on that more in the forthcoming weeks  
Charles

---

<div class="post-metadata">

**Author:** ![rossbeazley](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/rossbeazley/32/635_2.png) [@rossbeazley](https://forum.pydio.com/u/rossbeazley)\
**Post date:** [December 26, 2018, 6:41pm UTC](https://forum.pydio.com/t/advice-on-deploying-cells-to-multiple-machines/1920/9 "2018-12-26T18:41:25Z")

</div>

Hey, no problem. I’ve been sidetracked by getting Collabora working so not split up the services yet.

I’m thinking of picking off one to try first of all, probably data source related since that’s been problematic requiring a script to fix IPs.

Can I replace IPs in the config file with a DNS name?

---

<div class="post-metadata">

**Author:** ![charles](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/charles/32/3_2.png) [@charles](https://forum.pydio.com/u/charles)\
**Post date:** [December 27, 2018, 6:14pm UTC](https://forum.pydio.com/t/advice-on-deploying-cells-to-multiple-machines/1920/10 "2018-12-27T18:14:51Z")

</div>

> [@rossbeazley](#):
>
> Can I replace IPs in the config file with a DNS name?

not at that time, but I guess this would be a better option that what we have now. This ip-based stuff can be a bit complicated when IP’s are changing 🙂

---

<div class="post-metadata">

**Author:** ![rossbeazley](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/rossbeazley/32/635_2.png) [@rossbeazley](https://forum.pydio.com/u/rossbeazley)\
**Post date:** [December 29, 2018, 9:22am UTC](https://forum.pydio.com/t/advice-on-deploying-cells-to-multiple-machines/1920/11 "2018-12-29T09:22:06Z")

</div>

If I move the services to their own pods should I share one config file across all instances?
