Skip to content

Commit 89adc17

Browse files
committed
Add doc for "same-pod" example
1 parent 16fddbc commit 89adc17

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

examples/same-pod/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Make it possible to bind several containers in one pod
2+
3+
In this example, we need to make nginx and php-fpm to run inside the same "pod". The reason is that we configured FPM to listen an unix socket instead of the 9000 port.
4+
5+
Because NGinx will need to connect to the unix socket wich is a file, both containers should share the same node and work together.
6+
7+
So, in the docker-compose file, we need to declare:
8+
- `katenary.io/empty-dirs: socket` where `socket` is the "volume name", this will avoid the creation of a PVC
9+
- `katenary.io/same-pod: http` in `php` container to declare that this will be added in the `containers` section of the `http` deployment
10+
11+
You can note that we also use `configmap-volumes` to declare our configuration as `configMap`.
12+
13+
Take a look on [chart/same-pod](chart/same-pod) directory to see the result of the `katenary convert` command.

0 commit comments

Comments
 (0)