-
Notifications
You must be signed in to change notification settings - Fork 34
sync(codeapi): import geospatial, Lambda MicroVM, and virtio-fs updates (#2969) #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,22 +27,6 @@ Split runtime deployments: | |
| {{- if and (not $packagesFromPvc) (not .Values.workerSandbox.kvmEnabled) }} | ||
| {{- fail "workerSandbox.packages.source=image requires workerSandbox.kvmEnabled=true because the baked runner boots from a libkrun block root image" }} | ||
| {{- end }} | ||
| {{- $clockSkewLimitValue := toString .Values.workerSandbox.sandboxRunner.clockSkewLivenessLimitSeconds }} | ||
| {{- $clockSkewJitterValue := toString .Values.workerSandbox.sandboxRunner.clockSkewLivenessJitterSeconds }} | ||
| {{- if not (regexMatch "^(0|[1-9][0-9]*)$" $clockSkewLimitValue) }} | ||
| {{- fail "workerSandbox.sandboxRunner.clockSkewLivenessLimitSeconds must be a non-negative integer" }} | ||
| {{- end }} | ||
| {{- if not (regexMatch "^(0|[1-9][0-9]*)$" $clockSkewJitterValue) }} | ||
| {{- fail "workerSandbox.sandboxRunner.clockSkewLivenessJitterSeconds must be a non-negative integer" }} | ||
| {{- end }} | ||
| {{- $clockSkewLimit := int $clockSkewLimitValue }} | ||
| {{- $clockSkewJitter := int $clockSkewJitterValue }} | ||
| {{- if or (lt $clockSkewLimit 0) (ge $clockSkewLimit 25) }} | ||
| {{- fail "workerSandbox.sandboxRunner.clockSkewLivenessLimitSeconds must be between 0 and 24 so the 5-second healthcheck timeout stays below the 30-second execution-manifest tolerance" }} | ||
| {{- end }} | ||
| {{- if or (lt $clockSkewJitter 0) (and (gt $clockSkewLimit 0) (ge $clockSkewJitter $clockSkewLimit)) }} | ||
| {{- fail "workerSandbox.sandboxRunner.clockSkewLivenessJitterSeconds must be non-negative and less than clockSkewLivenessLimitSeconds when the clock-skew guard is enabled" }} | ||
| {{- end }} | ||
| {{- range .Values.workerSandbox.sandboxExtraEnv }} | ||
| {{- $name := .name | default "" }} | ||
| {{- if and $name (or (regexMatch "(?i)(SECRET|TOKEN|PASSWORD|KEY)" $name) (hasPrefix "REDIS_" $name) (hasPrefix "AWS_" $name) (hasPrefix "S3_" $name) (hasPrefix "MINIO_" $name) (hasPrefix "CODEAPI_" $name) (eq $name "FILE_SERVER_URL") (eq $name "TOOL_CALL_SERVER_URL")) }} | ||
|
|
@@ -274,10 +258,6 @@ spec: | |
| value: {{ .Values.workerSandbox.launcher.filterVsockEnotconn | quote }} | ||
| - name: SANDBOX_RUNNER_FD_LIVENESS_LIMIT | ||
| value: {{ .Values.workerSandbox.sandboxRunner.fdLivenessLimit | quote }} | ||
| - name: SANDBOX_RUNNER_CLOCK_SKEW_LIVENESS_LIMIT_SECONDS | ||
| value: {{ $clockSkewLimit | quote }} | ||
| - name: SANDBOX_RUNNER_CLOCK_SKEW_LIVENESS_JITTER_SECONDS | ||
| value: {{ $clockSkewJitter | quote }} | ||
| - name: EGRESS_GATEWAY_URL | ||
| value: "http://{{ include "codeapi.fullname" . }}-egress-gateway:{{ .Values.egressGateway.service.port }}" | ||
| - name: SANDBOX_LOG_LEVEL | ||
|
|
@@ -382,15 +362,14 @@ spec: | |
| - /usr/local/bin/sandbox-runner-healthcheck.sh | ||
| initialDelaySeconds: 60 | ||
| periodSeconds: 30 | ||
| timeoutSeconds: 7 | ||
| timeoutSeconds: 5 | ||
| readinessProbe: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟠 High The readiness probe was changed from the 🚀 Reply "fix it for me" or copy this AI Prompt for your agent: |
||
| exec: | ||
| command: | ||
| - /usr/local/bin/sandbox-runner-healthcheck.sh | ||
| httpGet: | ||
| path: /api/v2/health | ||
| port: sandbox | ||
| initialDelaySeconds: 30 | ||
| periodSeconds: 10 | ||
| timeoutSeconds: 7 | ||
| failureThreshold: 1 | ||
| timeoutSeconds: 5 | ||
| resources: | ||
| {{- $sandboxResources := deepCopy .Values.workerSandbox.resources }} | ||
| {{- if $useKvmDevicePlugin }} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟠 High
docker/sandbox-runner-healthcheck.sh:24The liveness probe now exits after a plain HTTP request to
$urland no longer checks the guest's clock against the host. When a long-lived microVM drifts past the execution-manifest clock tolerance,/api/v2/runtimesstill returns 200, so the probe passes and Kubernetes leaves the pod running while manifest-validated executions continue to fail instead of triggering a restart.The diff deletes the entire clock-skew check (the
clock_skew_limit_secondsbranch that compares the guestDateheader againsthost_before_seconds/host_after_seconds). If removing this check is intentional, consider documenting why the clock-skew guard is no longer needed. Otherwise, restore the skew detection so drifted pods are correctly marked unhealthy.🚀 Reply "fix it for me" or copy this AI Prompt for your agent: