diff --git a/charts/prefect-server/tests/background_services_test.yaml b/charts/prefect-server/tests/background_services_test.yaml index 728733cc..15212a71 100644 --- a/charts/prefect-server/tests/background_services_test.yaml +++ b/charts/prefect-server/tests/background_services_test.yaml @@ -182,9 +182,11 @@ tests: requests: cpu: 250m memory: 256Mi + ephemeral-storage: 100Mi limits: cpu: 500m memory: 512Mi + ephemeral-storage: 200Mi asserts: - template: background-services/deployment.yaml equal: @@ -194,6 +196,10 @@ tests: equal: path: .spec.template.spec.containers[0].resources.requests.memory value: 256Mi + - template: background-services/deployment.yaml + equal: + path: .spec.template.spec.containers[0].resources.requests.ephemeral-storage + value: 100Mi - template: background-services/deployment.yaml equal: path: .spec.template.spec.containers[0].resources.limits.cpu @@ -202,6 +208,10 @@ tests: equal: path: .spec.template.spec.containers[0].resources.limits.memory value: 512Mi + - template: background-services/deployment.yaml + equal: + path: .spec.template.spec.containers[0].resources.limits.ephemeral-storage + value: 200Mi - it: Should set the correct security context asserts: diff --git a/charts/prefect-server/tests/pre_upgrade_hook_test.yaml b/charts/prefect-server/tests/pre_upgrade_hook_test.yaml index 2a43b915..a3ef89b8 100644 --- a/charts/prefect-server/tests/pre_upgrade_hook_test.yaml +++ b/charts/prefect-server/tests/pre_upgrade_hook_test.yaml @@ -172,9 +172,11 @@ tests: requests: cpu: 200m memory: 256Mi + ephemeral-storage: 100Mi limits: cpu: 1000m memory: 512Mi + ephemeral-storage: 200Mi securityContext: runAsUser: 2000 runAsNonRoot: true @@ -214,6 +216,26 @@ tests: equal: path: .spec.template.spec.containers[0].resources.requests.cpu value: 200m + - template: pre-upgrade-hook.yaml + equal: + path: .spec.template.spec.containers[0].resources.requests.memory + value: 256Mi + - template: pre-upgrade-hook.yaml + equal: + path: .spec.template.spec.containers[0].resources.requests.ephemeral-storage + value: 100Mi + - template: pre-upgrade-hook.yaml + equal: + path: .spec.template.spec.containers[0].resources.limits.cpu + value: 1000m + - template: pre-upgrade-hook.yaml + equal: + path: .spec.template.spec.containers[0].resources.limits.memory + value: 512Mi + - template: pre-upgrade-hook.yaml + equal: + path: .spec.template.spec.containers[0].resources.limits.ephemeral-storage + value: 200Mi - template: pre-upgrade-hook.yaml equal: path: .spec.template.spec.containers[0].securityContext.runAsUser diff --git a/charts/prefect-server/values.schema.json b/charts/prefect-server/values.schema.json index 97818042..badf262f 100644 --- a/charts/prefect-server/values.schema.json +++ b/charts/prefect-server/values.schema.json @@ -123,6 +123,10 @@ "memory": { "type": "string", "description": "Memory request for the migration job" + }, + "ephemeral-storage": { + "type": "string", + "description": "Ephemeral storage request for the migration job" } } }, @@ -136,6 +140,10 @@ "memory": { "type": "string", "description": "Memory limit for the migration job" + }, + "ephemeral-storage": { + "type": "string", + "description": "Ephemeral storage limit for the migration job" } } } @@ -819,6 +827,9 @@ }, "memory": { "type": "string" + }, + "ephemeral-storage": { + "type": "string" } } }, @@ -831,6 +842,9 @@ }, "memory": { "type": "string" + }, + "ephemeral-storage": { + "type": "string" } } } diff --git a/charts/prefect-server/values.yaml b/charts/prefect-server/values.yaml index 76ff32ea..08643396 100644 --- a/charts/prefect-server/values.yaml +++ b/charts/prefect-server/values.yaml @@ -237,9 +237,11 @@ migrations: requests: cpu: 100m memory: 128Mi + # ephemeral-storage: limits: cpu: 500m memory: 256Mi + # ephemeral-storage: # -- job security context configuration securityContext: runAsUser: 1001 @@ -318,10 +320,12 @@ backgroundServices: requests: cpu: 500m memory: 512Mi + # ephemeral-storage: # -- the requested limits for the background-services container limits: cpu: "1" memory: 1Gi + # ephemeral-storage: # ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod podSecurityContext: