Skip to content

Commit

Permalink
fixed memory request
Browse files Browse the repository at this point in the history
  • Loading branch information
damoon committed Nov 17, 2020
1 parent 842bd91 commit 72328b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions deployment/kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
- --s3-secret-key-file=/secret/minio/MINIO_SECRET_KEY
- --s3-ssl=false
- --s3-bucket=wedding
# env:
# - name: KEEP_FAILED_PODS
# value: "yes"
ports:
- name: wedding
containerPort: 2376
Expand Down
2 changes: 1 addition & 1 deletion pkg/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func buildParameters(r *http.Request) (*buildConfig, error) {

// memory limit
memoryArg := r.URL.Query().Get("memory")
if memoryArg == "" {
if memoryArg == "" || memoryArg == "0" {
memoryArg = "2147483648" // 2Gi default
}
memory, err := strconv.Atoi(memoryArg)
Expand Down

0 comments on commit 72328b4

Please sign in to comment.