Skip to content

Commit

Permalink
Remove storageClass specification and set modest DB sizes (#115)
Browse files Browse the repository at this point in the history
* Remove explicit declaration of `storageClass` as for this DB it is not necessary. Rather let cluster decide with default `storageClass`
* Push DB size to variable inside `config.json` and set defaults to more modest sizes for DEV and STAGING clusters
  • Loading branch information
vidriduch authored Jun 18, 2024
1 parent 2d8d9c1 commit ff54bef
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions kubernetes/base/stateful-set.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ spec:
service: database
spec:
accessModes: ['ReadWriteOnce']
storageClassName: "vsan-default-storage-policy"
resources:
requests:
storage: 10Gi
storage: ${DB_SIZE}
3 changes: 2 additions & 1 deletion kubernetes/envs/Dev/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"DB_CPU_LIMITS": "100m",
"DB_MEMORY_LIMITS": "512Mi",
"DB_CPU_REQUESTS": "50m",
"DB_MEMORY_REQUESTS": "64Mi"
"DB_MEMORY_REQUESTS": "64Mi",
"DB_SIZE": "1Gi"
}
}
3 changes: 2 additions & 1 deletion kubernetes/envs/Prod/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"DB_CPU_LIMITS": "500m",
"DB_MEMORY_LIMITS": "1Gi",
"DB_CPU_REQUESTS": "100m",
"DB_MEMORY_REQUESTS": "128Mi"
"DB_MEMORY_REQUESTS": "128Mi",
"DB_SIZE": "10Gi"
}
}
3 changes: 2 additions & 1 deletion kubernetes/envs/Staging/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"DB_CPU_LIMITS": "500m",
"DB_MEMORY_LIMITS": "1Gi",
"DB_CPU_REQUESTS": "50m",
"DB_MEMORY_REQUESTS": "64Mi"
"DB_MEMORY_REQUESTS": "64Mi",
"DB_SIZE": "1Gi"
}
}

0 comments on commit ff54bef

Please sign in to comment.