kpt
kpt copied to clipboard
kpt function to analyze OS/Arch info of an image and configure nodeSelector
Users have kubernetes clusters with different types of nodes (OS, Arch) but the container images they run may only support a subset of OS, Arch. So, package authors usenodeSelector
field to appropriate select nodes that support the shipped image, but this can be automated where a kpt function can analyze the OS/Arch info of a container image and customize the nodeSelector
.
This highlights the capability of out-of-band bulk automation that is cross-cutting can be done at the platform engineering level.
Linking to the comment for more context: https://github.com/GoogleContainerTools/kpt/pull/3380/files#r923899911