Skip to content

Commit

Permalink
docs: add faq (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored Jul 28, 2023
1 parent 2b5c29d commit deef989
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion docs/faq.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FAQ

[Add your question](https://github.com/SocialGouv/kontinuous/issues/new?title=docs:%20add%20FAQ%20entry)
[Add your question](https://github.com/SocialGouv/kontinuous/edit/master/docs/faq.md)

## Why another CI/CD ?

Expand Down Expand Up @@ -83,6 +83,40 @@ app:
name: pg-xxx-app
```

## Run a seed job

This example build your Dockerfile, creates a PG cluster, seed the database then starts your application with secrets attached

In your `.kontinuous/values.yaml` or `.kontinuous/[env]/values.yaml`

```yaml
# create app database
pg:
~chart: pg
# run app after build and seed
app:
~chart: app
~needs: [build-app, seed-db]
# use CNPG db created secret
envFrom:
- secretRef:
name: pg-app
jobs:
runs:
# builds Dockerfile
build-app:
use: build
# seed the database
seed-db:
use: seed-db
~needs: [pg]
pgSecretName: pg-app
with:
seedPath: ./seeds.sql
```

## Add a custom HELM chart

To add a custom HELM chart to your deployment :
Expand Down

0 comments on commit deef989

Please sign in to comment.