Adds a pipeline for sandboxing containers#1260
Open
wonderyl wants to merge 8 commits into
Open
Conversation
New pipeline creates an AKS cluster with a Kata VM-isolation (KataMshvVmIsolation) node pool, schedules a pause pod using the kata-mshv-vm-isolation runtime class, measures pod startup latency from pod events, and uploads the JSON result to the telescopev2 storage account for Kusto ingestion. Co-authored-by: Lei Yao <yaolei@microsoft.com> Co-Authored-By: Claude <noreply@anthropic.com>
…n cluster Per MS Learn doc, the runtime class exposed by KataVmIsolation is kata-vm-isolation, and 'az aks update' must be run after adding the Kata node pool for pod sandboxing to be enabled cluster-wide. Co-authored-by: Lei Yao <yaolei@microsoft.com> Co-Authored-By: Claude <noreply@anthropic.com>
Kubernetes lastTransitionTime can carry sub-second precision (e.g. 2026-07-16T04:49:58.998786Z), which strptime %S rejects. Use datetime.fromisoformat after normalizing the trailing Z.
Split the inline pod YAML into pod.yaml and the inline Python into measure.py; pipeline.k now applies the manifest and invokes the script via $(Build.SourcesDirectory).
wonderyl
requested review from
liyu-ma,
vittoriasalim and
xinWeiWei24
as code owners
July 17, 2026 02:54
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new AKS “pod sandboxing” measurement pipeline that provisions a Kata-enabled AKS cluster, schedules a minimal pause pod using a Kata runtime class, computes startup latency from Kubernetes events, and uploads the result JSON to the Telescope storage account.
Changes:
- Adds a Pod manifest (
pod.yaml) for a Kata-isolated pause pod. - Adds a new Azure Pipelines definition (
pipeline.k+ generatedpipeline.yaml) to create the cluster, run the measurement, upload results, and delete the resource group. - Adds a Python measurement script (
measure.py) that extracts timestamps from pod/events and writes/tmp/run-result.json.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| kcl/aks_pod_sandboxing/pod.yaml | Defines the pause pod using runtimeClassName: kata-vm-isolation. |
| kcl/aks_pod_sandboxing/pipeline.yaml | Azure Pipelines YAML to provision AKS, run the pod, measure, upload, and clean up. |
| kcl/aks_pod_sandboxing/pipeline.k | KCL source for generating the pipeline and composing shared steps. |
| kcl/aks_pod_sandboxing/measure.py | Measurement script computing startup latency and emitting /tmp/run-result.json. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
xinWeiWei24
reviewed
Jul 17, 2026
xinWeiWei24
reviewed
Jul 17, 2026
Replace static pod.yaml with pod.k that takes podName, runtimeClass, image as individual options. Pipeline installs KCL at runtime, renders the manifest into $(Pipeline.Workspace)/pod.yaml, then applies it. measure.py reads pod/cluster metadata from environment variables.
Pod manifest now defined directly with core_v1.Pod (with option() parameters for podName/runtimeClass/image). UploadResult now uses DEFAULT_STORAGE_* constants instead of hard-coded literals.
xinWeiWei24
reviewed
Jul 20, 2026
| @@ -0,0 +1,19 @@ | |||
| import k8s.api.core.v1 as core_v1 | |||
Collaborator
There was a problem hiding this comment.
Could we move this into a shared library so other pipelines can reuse it? We could introduce a helper like apply_dummy_pod.k to apply a dummy pod for testing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Latest run: https://dev.azure.com/akstelescope/telescope/_build/results?buildId=73752&view=logs&j=c966226a-2a45-51a0-5780-3ec69d21e6ea&t=5411b532-7f74-51f7-17ba-0b5a61466543
Run ID: 73752-c966226a