Skip to content

Commit

Permalink
fix: use cnpg
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Oct 31, 2023
1 parent 57bd783 commit 939d39d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 38 deletions.
9 changes: 0 additions & 9 deletions .kontinuous/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,3 @@ projectName: les1000jours
dependencies:
fabrique:
import: SocialGouv/kontinuous/plugins/fabrique
dependencies:
contrib:
preDeploy:
importSecrets:
options:
secrets:
les1000joursprodserver-backup-credentials:
env: dev
required: true
17 changes: 12 additions & 5 deletions .kontinuous/env/dev/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,28 @@ app-strapi:
~needs: [restore]
~preDeploy.cleaner:
match:
kind: Deployment
kind: Deployment
value: true
volumes:
- name: uploads
emptyDir: {}
volumeMounts:
- mountPath: /app/public/uploads
name: uploads
envFrom:
- secretRef:
name: strapi
- configMapRef:
name: strapi-configmap
- secretRef:
name: azure-les1000jours-volume
- secretRef:
name: "pg-app"

jobs:
runs:
create-db:
use: create-db
restore:
~needs: [create-db]
~needs: [pg]
use: pg-restore
checkout: false
with:
Expand All @@ -33,4 +40,4 @@ jobs:
readOnly: true
volumeAttributes:
secretName: les1000joursprodserver-backup-credentials
shareName: les1000jprodsrv2-backup-restore
shareName: les1000jprodsrv2-backup-restore
2 changes: 1 addition & 1 deletion .kontinuous/env/preprod/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ app-strapi:
- secretRef:
name: azure-les1000jours-volume
- secretRef:
name: "{{ .Values.global.pgSecretName }}"
name: "pg-app"
26 changes: 3 additions & 23 deletions .kontinuous/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ global:
registry: ghcr.io
imageProject: socialgouv

pg:
~chart: pg

app-strapi:
~chart: app
host: "backoffice-{{ .Values.global.host }}"
Expand Down Expand Up @@ -43,29 +46,6 @@ app-strapi:
value: "true"
- name: TZ
value: "Europe/Paris"
#app-cache:
# ~chart: app
# image: "nginx:1.19.6"
# needs: ["app-strapi"]
# host: "backoffice-{{ .Values.global.host }}"
# containerPort: 8080
# volumes:
# - name: strapi-cache
# emptyDir: {}
# - name: "config"
# configMap:
# name: nginx-configmap
# volumeMounts:
# - name: strapi-cache
# mountPath: /var/cache/nginx
# - name: config
# mountPath: /etc/nginx/nginx.conf
# subPath: nginx.conf
# ingress:
# annotations:
# "nginx.ingress.kubernetes.io/proxy-body-size": "1g"
# "nginx.ingress.kubernetes.io/limit-rps": "20"
# "nginx.ingress.kubernetes.io/limit-rpm": "300"

deactivate:
jobs-deactivate:
Expand Down

0 comments on commit 939d39d

Please sign in to comment.