Skip to content

feat(aws): support H200, B200 and B300 on AWS and Kubernetes; logship reads Nebula's keys - #158

Merged
InftyAI-Agent merged 6 commits into
InftyAI:mainfrom
kerthcet:feat/aws-h200
Nov 25, 2026
Merged

InftyAI-Agent merged 6 commits into
InftyAI:mainfrom
kerthcet:feat/aws-h200

Conversation

@kerthcet

@kerthcet kerthcet commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

AWS and Kubernetes: H200, B200, B300

pkg/provider/catalog/data/aws.csv gains three GPUs. The kubernetes provider maps GPUs through the AWS catalog, so it picks them up too, as Karpenter instance families.

GPU Instance (8 GPUs) aws kubernetes family
H200 p5en.48xlarge (primary), p5e.48xlarge OnDemand, $63.30/hr p5e, p5en
B200 p6-b200.48xlarge OnDemand, $113.93/hr p6-b200
B300 p6-b300.48xlarge OnDemand, $142.42/hr p6-b300
  • OnDemand only. None of the three is in AWS's public Spot price feed. Prices are AWS's public On-Demand rates for the US regions, and each region's live DescribeInstanceTypeOfferings still decides where a row is available.
  • H200: p5en is the primary, as it's offered in more regions than p5e. The launch fleet spans both.

The AWS adapter boots the AL2023 ECS GPU AMI

It booted Amazon Linux 2's ECS GPU AMI, whose NVIDIA driver 550.163.01 is too old for Blackwell (R570+), so B200/B300 would have launched and billed without running. gpuAMINameFilter now picks al2023-ami-ecs-gpu-hvm-*-kernel-6.1-x86_64-ebs. Per aws/amazon-ecs-ami's build config and release notes, it:

  • pins the 580 driver series (580.178.04 in release 20261119);
  • loads NVIDIA's open kernel modules, which Blackwell requires, for every GPU except P3/G3 and GRID;
  • installs Docker and nvidia-container-toolkit, all buildUserData's docker run --gpus all needs;
  • keeps a 30 GiB root on /dev/xvda, as awsAMIRootGiB prices (the adapter also reads the real size from the AMI and logs if it's larger).

It also moves off AL2, which is past its end of support.

logship: Nebula's keys from its API

components/logship kept its own copies of the keys it reads a Pod's identity from. It now uses nebulav1alpha1.EnabledLabel, EnabledValue, InstanceIDAnnotation and ProviderLabel, so they can't drift from what Nebula writes.

  • go.mod gains a real require for Nebula (the replace was already there), which adds controller-runtime as an indirect dependency.
  • The Dockerfile already builds from the repo root and copies api/.

Docs

  • docs/private-image.md, linked from docs/README.md.

Testing

  • TestGPUAMINameFilter: the filter matches AWS's real AL2023 GPU AMI name and not the AL2 GPU, AL2023 non-GPU or ARM names. With the old AL2 filter restored, it fails.
  • TestEmbeddedCatalog_AWSHopperAndBlackwell: H200, B200 and B300 map to their instance types and are priced OnDemand, with no Spot; there's no single-GPU H200.
  • TestFamiliesByAccelerator_HopperAndBlackwellFromAWSCatalog: the kubernetes provider resolves [p5e, p5en], [p6-b200] and [p6-b300].
  • make test and make lint pass at the root and in components/logship.
  • ⚠️ Not yet launched on a real AWS account. Worth one smoke test before merging: launch on any GPU type, check nvidia-smi and the workload. That covers the AMI switch for H100/H200 too, not just Blackwell. Launches also depend on EC2 quota for P instances, and on capacity.

🤖 Generated with Claude Code

kerthcet and others added 5 commits November 25, 2026 11:49
Signed-off-by: kerthcet <kerthcet@gmail.com>
Signed-off-by: kerthcet <kerthcet@gmail.com>
Signed-off-by: kerthcet <kerthcet@gmail.com>
The AWS adapter boots the Amazon Linux 2 ECS GPU AMI, which ships NVIDIA driver
550.163.01 (aws/amazon-ecs-ami, 20261119). Blackwell needs R570 or later, and
buildUserData does not upgrade the driver, so a p6-b200 or p6-b300 instance would
launch and bill without running the workload.

Both rows stay listed but unavailable, so the aws adapter refuses them. The
kubernetes provider still serves them: it ignores availability, and an EKS node
boots the image its own Karpenter configuration picks. Moving to the AL2023 ECS GPU
AMI (driver 580.178.04) is the fix that lets them back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
logship kept its own copies of the label, annotation and nodeSelector keys it reads
a Pod's identity from. They now come from nebulav1alpha1 (EnabledLabel, EnabledValue,
InstanceIDAnnotation, ProviderLabel), so they cannot drift from what the placement
controller and virtual kubelet write. The Dockerfile already builds from the repo
root and copies api/, and api/v1alpha1 imports nothing else from Nebula.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 25, 2026 15:39
@InftyAI-Agent InftyAI-Agent added needs-triage Indicates an issue or PR lacks a label and requires one. needs-priority Indicates a PR lacks a label and requires one. do-not-merge/needs-kind Indicates a PR lacks a label and requires one. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The documented trust policy permits cross-tenant role assumption, and H200 placement still attempts unsupported Spot launches before falling back to OnDemand.

2 open issues
What changed in this PR

This PR expands Nebula’s GPU catalog for AWS and Kubernetes, shares API identity keys with logship, and documents private-image authentication.

Changes:

  • Adds H200 OnDemand offerings and B200/B300 entries for Kubernetes family mapping, with Blackwell disabled on AWS pending driver support.
  • Replaces logship’s duplicated identity constants with Nebula API constants and updates dependencies.
  • Adds private-image guidance covering Modal’s ECR role authentication.
File Description
pkg/​provider/​kubernetes/​kubernetes_test.go Tests H200, B200, and B300 instance-family mappings.
pkg/​provider/​catalog/​data/​aws.csv Adds Hopper and Blackwell catalog entries.
pkg/​provider/​catalog/​catalog_test.go Tests H200 mapping/pricing and AWS Blackwell refusal.
docs/​README.md Links the private-image guide.
docs/​private-image.md Documents image-pull Secrets and Modal ECR authentication.
components/​logship/​internal/​watch/​watch.go Uses shared API constants for Pod identity.
components/​logship/​internal/​watch/​watch_test.go Updates fixtures to use shared constants.
components/​logship/​go.sum Updates dependency checksums.
components/​logship/​go.mod Adds the Nebula dependency and updates indirect dependencies.
components/​logship/​cmd/​main.go Uses shared API constants in watcher startup logging.

Review effort: Balanced

Comment thread docs/private-image.md Resolved
Comment thread pkg/provider/catalog/data/aws.csv Resolved
@kerthcet kerthcet changed the title feat(aws): support H200 on AWS and Kubernetes; logship reads Nebula's keys feat(aws): expose api metadata Nov 25, 2026
The adapter booted Amazon Linux 2's ECS GPU AMI, whose NVIDIA driver 550.163.01 is
too old for Blackwell, so B200 and B300 were held back. It now picks the AL2023 ECS
GPU AMI (al2023-ami-ecs-gpu-hvm-*-kernel-6.1-x86_64-ebs), which, per
aws/amazon-ecs-ami's build config and release notes:

- pins the 580 driver series (580.178.04 in release 20261119);
- loads NVIDIA's open kernel modules, which Blackwell requires, for every GPU but
  P3/G3 and GRID;
- installs Docker and nvidia-container-toolkit, all buildUserData's
  `docker run --gpus all` needs;
- keeps a 30 GiB root on /dev/xvda, as awsAMIRootGiB prices.

B200 and B300 are available again. TestGPUAMINameFilter pins the choice against
AWS's real AMI names, failing if the filter drifts back to AL2. It moves off AL2 too,
past its end of support.

Not yet launched on a real account.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 25, 2026 16:22
@kerthcet kerthcet changed the title feat(aws): expose api metadata feat(aws): support H200, B200 and B300 on AWS and Kubernetes; logship reads Nebula's keys Nov 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The documentation overstates tenant isolation without namespace-to-role authorization and presents an incomplete Pod example missing required names and Nebula opt-in metadata.

4 open issues

Review effort: Balanced

Comment thread docs/private-image.md
Comment on lines +67 to +68
One role per set of repositories a tenant may read keeps tenants apart: a role can only pull what its own policy
allows, and only your workspace can assume it.
Comment thread docs/private-image.md
Comment on lines +70 to +71
### 3. Name the role in a Secret, and the Secret in the Pod

@kerthcet

Copy link
Copy Markdown
Member Author

/lgtm
/kind feature

@InftyAI-Agent InftyAI-Agent added lgtm Looks good to me, indicates that a PR is ready to be merged. feature Categorizes issue or PR as related to a new feature. and removed do-not-merge/needs-kind Indicates a PR lacks a label and requires one. labels Nov 25, 2026

@InftyAI-Agent InftyAI-Agent left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved: PR has both lgtm and approved labels

@InftyAI-Agent
InftyAI-Agent merged commit 16b0ef4 into InftyAI:main Nov 25, 2026
24 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. feature Categorizes issue or PR as related to a new feature. lgtm Looks good to me, indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a label and requires one. needs-triage Indicates an issue or PR lacks a label and requires one.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants