Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Document Kubernetes CPU and memory requests and limits

オープン 初心者向け
#1,875 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@IEvangelist がすでに取り組んでいます。

2026年10月30日 から。

  • #1996 @IEvangelist による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
azure, csharp, kubernetes

調査の方向性

サンプルでは、AppHost のプロジェクトリソースに PublishAsKubernetesService を使用し、生成された Pod のコンテナに Resources.Requests と Resources.Limits を設定しています。MDX サイトにある既存の Kubernetes または AKS への発行に関するドキュメントを探し、サンプルをそのままコピーしたセクションを追加してください。requests と limits の違い、および Kubernetes のリソース量の記法を説明し、値は省略可能でデフォルト値はないことを記載してください。ページがビルドでき、サンプルが現在の C# API と一致していれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Summary

Add an AppHost documentation sample showing how to configure Kubernetes CPU and memory requests and limits by customizing the generated Kubernetes workload.

Aspire already supports this for C# AppHosts through PublishAsKubernetesService. The Kubernetes and Azure Kubernetes Service integrations use the same Kubernetes publishing path, so the same sample applies to both deployment targets.

Proposed sample

builder.AddProject<Projects.Api>("api")
    .PublishAsKubernetesService(resource =>
    {
        var container = resource.Workload!.PodTemplate.Spec.Containers[0];
        container.Resources ??= new();

        container.Resources.Requests["cpu"] = "250m";
        container.Resources.Requests["memory"] = "256Mi";
        container.Resources.Limits["cpu"] = "1";
        container.Resources.Limits["memory"] = "512Mi";
    });

The documentation should explain:

  • The difference between requests (scheduling reservations) and limits (runtime caps).
  • Kubernetes quantity syntax, including examples such as 250m, 1, 256Mi, and 512Mi.
  • That CPU and memory values are optional and no defaults are added by Aspire.
  • That the customization applies to the generated pod container for both Kubernetes and AKS deployments.
  • That this is currently a C# customization surface; broader polyglot workload-model customization is a separate product/API concern.

Scope

This issue is documentation-only. It does not require a new resource-limits API in microsoft/aspire.

主要言語
MDX
スター
200
フォーク
93
平均マージ
2日 6時間
マージ済み PR(30日)
67

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/aspire.dev のほかの issue

microsoft/aspire.dev の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。