From 885c288283b1fc72f561944c9340d778390e9977 Mon Sep 17 00:00:00 2001 From: minhtrannhat Date: Mon, 13 Jan 2025 12:00:00 -0500 Subject: [PATCH] chore(helm): add Helm chart configuration --- helm/incidentops/Chart.yaml | 16 ++++++++ helm/incidentops/values.yaml | 72 ++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 helm/incidentops/Chart.yaml create mode 100644 helm/incidentops/values.yaml diff --git a/helm/incidentops/Chart.yaml b/helm/incidentops/Chart.yaml new file mode 100644 index 0000000..e3bcb41 --- /dev/null +++ b/helm/incidentops/Chart.yaml @@ -0,0 +1,16 @@ +apiVersion: v2 +name: incidentops +description: IncidentOps - Incident Management Platform +type: application +version: 0.1.0 +appVersion: "1.0.0" + +dependencies: + - name: postgresql + version: "14.0.0" + repository: "https://charts.bitnami.com/bitnami" + condition: postgresql.enabled + - name: redis + version: "18.0.0" + repository: "https://charts.bitnami.com/bitnami" + condition: redis.enabled diff --git a/helm/incidentops/values.yaml b/helm/incidentops/values.yaml new file mode 100644 index 0000000..c244e52 --- /dev/null +++ b/helm/incidentops/values.yaml @@ -0,0 +1,72 @@ +api: + image: incidentops-api + tag: latest + replicas: 1 + port: 8080 + resources: + limits: + memory: 512Mi + cpu: 500m + requests: + memory: 256Mi + cpu: 100m + +worker: + image: incidentops-worker + tag: latest + replicas: 1 + resources: + limits: + memory: 512Mi + cpu: 500m + requests: + memory: 256Mi + cpu: 100m + +web: + image: incidentops-web + tag: latest + replicas: 1 + port: 3000 + resources: + limits: + memory: 256Mi + cpu: 200m + requests: + memory: 128Mi + cpu: 50m + +jwt: + issuer: incidentops + audience: incidentops + signingKey: your-super-secret-key-that-should-be-at-least-32-characters-long + accessTokenExpirationMinutes: 15 + refreshTokenExpirationDays: 7 + +ingress: + enabled: true + className: nginx + host: incidentops.local + annotations: + nginx.ingress.kubernetes.io/proxy-body-size: "10m" + +postgresql: + enabled: true + auth: + username: postgres + password: postgres + database: incidentops + primary: + persistence: + enabled: true + size: 1Gi + +redis: + enabled: true + architecture: standalone + auth: + enabled: false + master: + persistence: + enabled: true + size: 1Gi