struct Kubernetes::Service::Spec

Included Modules

Defined in:

kubernetes.cr

Constructors

Instance Method Summary

Macros inherited from module Kubernetes::Serializable

add_field(type, getter_type, key = nil, **args, &block) add_field, field(type, key = nil, **args, &block) field, field?(type, key = nil, **args, &block) field?

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(ports : Array(Port), type : Kubernetes::Service::Type = :cluster_ip, ip_family_policy : Kubernetes::Service::IPFamilyPolicy = :single_stack) #

[View source]
def self.new(pull : JSON::PullParser) #

Instance Method Detail

def cluster_ip : String #

def cluster_ips : Array(String) #

def external_ips : Array(String) #

def external_name : String | Nil #

def external_traffic_policy : TrafficPolicy | Nil #

def health_check_node_port : Int32 | Nil #

def internal_traffic_policy : TrafficPolicy | Nil #

def ip_families : Array(IPFamily) #

def ip_family_policy : IPFamilyPolicy #

def load_balancer_ip : String | Nil #

def load_balancer_source_ranges : String | Nil #

def ports : Array(Port) #

def publish_not_ready_addresses : Bool | Nil #

def selector : Hash(String, String) | Nil #

def session_affinity : SessionAffinity | Nil #

def session_affinity_config : SessionAffinityConfig | Nil #

def type : Type #