このページの情報の一部またはすべては、S3NS の Trusted Cloud には適用されない場合があります。
aarch64、AMD64、または混合アーキテクチャの GKE クラスタにアプリケーションをデプロイする
デフォルトでは、ターゲット クラスタのアーキテクチャが混在している場合(x86 と Arm の両方)でも、Skaffold はターゲット クラスタのアーキテクチャを自動的に検出し、ワークステーションのアーキテクチャと一致するイメージを構築します。
ビルドするプラットフォームを指定 skaffold.yaml
ファイルにパラメータ追加することもできます。これにより、Skaffold の自動検出がオーバーライドされます。
イメージをビルドするときに Skaffold の自動検出をオーバーライドする場合は、skaffold.yaml
ファイルでイメージをビルドするプラットフォームを指定できます。
次のリストに、CLI の --platform
フラグまたは skaffold.yaml
ファイルの platforms
パラメータで使用できる値を示します。
x86 |
Arm |
amd64 |
aarch64 |
linux/amd64 |
linux/aarch64 |
イメージをビルドするプラットフォームを指定するには、skaffold.yaml
ファイルに platforms
パラメータを追加します。
build:
platforms: ["linux/aarch64"]
artifacts:
- image: example
Arm と混合アーキテクチャの GKE クラスタ用の Cloud Code のサポートの詳細については、Arm のサポートをご覧ください。
サポートを利用する
フィードバックを送信するには、
GitHub で問題を報告します。または、
Stack Overflow で質問します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-02-11 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-02-11 UTC。"],[[["Skaffold automatically detects the target cluster's architecture and builds a matching image, even in mixed-architecture environments."],["You can override Skaffold's automatic detection by specifying the desired platform using the `platforms` parameter in your `skaffold.yaml` file."],["The `platforms` parameter in `skaffold.yaml` or the `--platform` flag in the CLI can use values like `amd64`, `linux/amd64`, `aarch64`, or `linux/aarch64`."],["To specify the platform, add a `platforms` section to your `skaffold.yaml` file under the `build` section, with an array of desired values, such as `platforms: [\"linux/aarch64\"]`."]]],[]]