Deploy your applications to aarch64, AMD64, or mixed-architecture GKE clusters
Stay organized with collections
Save and categorize content based on your preferences.
By default, Skaffold automatically detects
your target cluster's architecture and builds an image that matches your
workstation's architecture, even if your target cluster's architecture is mixed
(both x86 and Arm).
You also have the option to add a parameter in your
skaffold.yaml file that specifies what platform to build for, which overrides
Skaffold's automatic detection.
Specify the platform to build images for
If you want to override Skaffold's automatic detection when building your image,
you can specify the platform that you want to build images for in
your skaffold.yaml
file.
The following list shows the possible values for the
--platform flag in your CLI, or the platforms parameter in
your skaffold.yaml file:
x86
Arm
amd64
aarch64
linux/amd64
linux/aarch64
Add the platforms parameter to your skaffold.yaml file
To specify the platform you want to build your image for, add the platforms
parameter to your skaffold.yaml file:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["Skaffold automatically detects the target cluster's architecture and builds a matching image by default."],["You can override Skaffold's automatic architecture detection by specifying the target platform in your `skaffold.yaml` file."],["The `platforms` parameter in the `skaffold.yaml` file allows you to set the desired architecture, using values such as `linux/aarch64` or `amd64`."],["The `platforms` parameter can be added to the build section of your `skaffold.yaml` file to customize the architecture of the built image."],["The `platforms` parameter can be specified either in your CLI using `--platform`, or by using `platforms` inside your `skaffold.yaml` file."]]],[]]