Skip to content

Commit

Permalink
add aws/gcp volume storage
Browse files Browse the repository at this point in the history
  • Loading branch information
khaliqgant committed Jan 9, 2024
1 parent 0516952 commit 57ebeda
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 9 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ helm delete nango

| Component | Key | Value |
|--------------------------|--------------------------------|--------------|
| PostgreSQL | enabled | true |
| postgresql | enabled | true |
| | fullnameOverride | nango-postgresql |
| | primary.persistence.enabled | false |
| | primary.resources.limits.cpu | "1000m" |
Expand All @@ -44,20 +44,21 @@ helm delete nango
| | primary.resources.requests.memory | "1024Mi" |
| | auth.postgresPassword | nango |
| | auth.database | nango |
| Temporal | enabled | true |
| temporal | enabled | true |
| | global.serviceAccountName | default |
| | global.secretName | nango-secret |
| Server | name | server |
| server | name | server |
| | replicas | 1 |
| Jobs | name | jobs |
| jobs | name | jobs |
| | replicas | 1 |
| | volume.class | standard |
| | volume.name | flows-volume |
| | volume.claimName | flow-claim |
| | volume.provisioner | rancher.io/local-path |
| Runner | name | runner |
| | volume.aws | false |
| | volume.gcp | false |
| runner | name | runner |
| | replicas | 1 |
| Shared | namespace | default |
| shared | namespace | default |
| | ENV | production |
| | DB_HOST | nango-postgresql |
| | DB_USER | postgres |
Expand All @@ -66,7 +67,7 @@ helm delete nango
| | DB_SSL | false |
| | ENCRYPTION_KEY | "" |
| | CALLBACK_URL | "" |
| Temporalio | volumeName | temporal-secrets |
| temporalio | volumeName | temporal-secrets |
| | TEMPORAL_ADDRESS | nango-sync.abc |
| | TEMPORAL_NAMESPACE | nango-sync.def |
| | TEMPORAL_KEY | BASE_64_VALUE |
Expand Down
13 changes: 13 additions & 0 deletions charts/nango/templates/jobs/jobs-aws-storage-class.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{- if .Values.jobs.volume.aws }}
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: {{ .Values.jobs.volume.claimName }}
namespace: {{ .Values.shared.namespace }}
provisioner: kubernetes.io/aws-ebs
parameters:
type: gp2
fsType: ext4
iopsPerGB: "10"
encrypted: "true"
{{- end }}
11 changes: 11 additions & 0 deletions charts/nango/templates/jobs/jobs-gcp-storage-class.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{- if .Values.jobs.volume.gcp }}
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: {{ .Values.jobs.volume.claimName }}
namespace: {{ .Values.shared.namespace }}
provisioner: kubernetes.io/gce-pd
parameters:
type: pd-standard
fsType: ext4
{{- end }}
File renamed without changes.
3 changes: 2 additions & 1 deletion charts/nango/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ jobs:
class: standard
name: flows-volume
claimName: flow-claim
provisioner: rancher.io/local-path
aws: false
gcp: false

runner:
name: runner
Expand Down

0 comments on commit 57ebeda

Please sign in to comment.