HostAliasV1
Class sealed net10.0
Represents a host alias configuration which maps an IP address to a set of hostnames. This is used for specifying additional host entries in a pod's /etc/hosts file.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class HostAliasV1{ // ...}Constructors1
Section titled ConstructorsProperties2
Section titled PropertiesHostnamesgetList<string> Represents a collection of hostnames associated with a specific IP address. This property contains a list of hostnames used for defining aliases.
Ipget; setstring Gets or sets the IP address associated with the HostAlias in the Kubernetes resource definition.