class K8S::Api::Core::V1::Endpoints
- K8S::Api::Core::V1::Endpoints
- K8S::Kubernetes::Resource
- Reference
- Object
Overview
Endpoints is a collection of endpoints that implement the actual service. Example: Name: "mysvc", Subsets: [ { Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] }, { Addresses: [{"ip": "10.10.3.3"}], Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] }, ]
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- K8S::Kubernetes::Resource::Object
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.16/api/core/v1/endpoints.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, metadata : Apimachinery::Apis::Meta::V1::ObjectMeta? = nil, subsets : Array(Api::Core::V1::EndpointSubset)? = nil)
Class Method Summary
Instance Method Summary
- #api_version : String
- #kind : String
- #merge(other)
-
#metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?
Standard object's metadata.
-
#metadata=(metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?)
Standard object's metadata.
- #subsets : Array(Api::Core::V1::EndpointSubset)?
- #subsets=(subsets : Array(Api::Core::V1::EndpointSubset)?)
- #to_h
Instance methods inherited from module K8S::Kubernetes::Resource::Object
api_version : String
api_version,
kind : String
kind,
metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?
metadata,
metadata! : Apimachinery::Apis::Meta::V1::ObjectMeta
metadata!
Instance methods inherited from class K8S::Kubernetes::Resource
api_version : String
api_version,
kind : String
kind
Constructor methods inherited from class K8S::Kubernetes::Resource
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)new(pull : JSON::PullParser) new
Class methods inherited from class K8S::Kubernetes::Resource
from_file(file)
from_file,
from_files(*paths)
from_files
Constructor Detail
def self.new(*, metadata : Apimachinery::Apis::Meta::V1::ObjectMeta? = nil, subsets : Array(Api::Core::V1::EndpointSubset)? = nil)
#
Class Method Detail
Instance Method Detail
def metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?
#
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
def metadata=(metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?)
#
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata