Class EndpointSlice
EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.
Inherited Members
Namespace: Pulumi.Kubernetes.Discovery.V1Beta1
Assembly: Pulumi.Kubernetes.dll
Syntax
public class EndpointSlice : KubernetesResource
Constructors
View SourceEndpointSlice(String, EndpointSliceArgs, CustomResourceOptions)
Create a EndpointSlice resource with the given unique name, arguments, and options.
Declaration
public EndpointSlice(string name, EndpointSliceArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| EndpointSliceArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAddressType
addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.
Declaration
public Output<string> AddressType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ApiVersion
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
Declaration
public Output<string> ApiVersion { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Endpoints
endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.
Declaration
public Output<ImmutableArray<Endpoint>> Endpoints { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<Endpoint>> |
Kind
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Declaration
public Output<string> Kind { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Metadata
Standard object's metadata.
Declaration
public Output<ObjectMeta> Metadata { get; }
Property Value
| Type | Description |
|---|---|
| Output<ObjectMeta> |
Ports
ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports.
Declaration
public Output<ImmutableArray<EndpointPort>> Ports { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<EndpointPort>> |
Methods
View SourceGet(String, Input<String>, CustomResourceOptions)
Get an existing EndpointSlice resource's state with the given name and ID.
Declaration
public static EndpointSlice Get(string name, Input<string> id, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| EndpointSlice |