depends_on
Nowadays, depends_on
is unstable feature.
You need enable it before v1.0.0 manually.
export HELMWAVE_ENABLE_DEPENDENCIES=true
Suppose we have application contains next services (of course, each service provide as helm-chart) :
- db
- backend
- frontend
- queue
Sequence
graph LR
db --> backend
queue --> backend
backend --> frontend
docker-compose will be look like that:
services:
db:
image: some/db:latest
queue:
image: some/queue:latest
backend:
image: some/backend:latest
depends_on:
- db
- queue
frontend:
image: some/frontend:latest
depends_on:
- backend
Project Structure
.
โโโ helmwave.yml.tpl
helmwave.yml.tpl
project: my-project
version: 0.9.6
.options: &options
install: true
namespace: my-namespace
releases:
- name: queue
chart: some/queue
options:
<<: *options
- name: db
chart: some/db
options:
<<: *options
- name: backend
chart: some/backend
options:
<<: *options
depends_on:
- db@my-namespace
- queue@my-namespace
- name: frontend
chart: some/frontend
options:
<<: *options
depends_on:
- backend@my-namespace
Deploy
helmwave deploy