Share via


StatefulSetSpecV1.ServiceName Property

Definition

Gets or sets the name of the governing service for the StatefulSet. The service name is used to maintain the network identity of each pod and is required for controlling the storage and network identities of the pods in the StatefulSet. Each pod will inherit its DNS hostname from this service name.

[YamlDotNet.Serialization.YamlMember(Alias="serviceName")]
public string ServiceName { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="serviceName")>]
member this.ServiceName : string with get, set
Public Property ServiceName As String

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to