Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModulePort = "port" FieldType = "type" FieldLabels = "labels" FieldAnnotations = "annotations" CSPAliCloud = "alicloud" CSPAWS = "aws" ProtocolTCP = "TCP" ProtocolUDP = "UDP" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Port ¶
type Port struct { // Type is the specific cloud vendor that provides load balancer, works when Public // is true, supports CSPAliCloud and CSPAWS for now. Type string `yaml:"type,omitempty" json:"type,omitempty"` // Port is the exposed port of the workload.Service. Port int `yaml:"port,omitempty" json:"port,omitempty"` // TargetPort is the backend container.Container port. TargetPort int `yaml:"targetPort,omitempty" json:"targetPort,omitempty"` // Protocol is protocol used to expose the port, support ProtocolTCP and ProtocolUDP. Protocol string `yaml:"protocol,omitempty" json:"protocol,omitempty"` // Public defines whether to expose the port through Internet. Public bool `yaml:"public,omitempty" json:"public,omitempty"` // Labels are the attached labels of the port, works only when the Public is true. Labels map[string]string `yaml:"labels,omitempty" json:"labels,omitempty"` // Annotations are the attached annotations of the port, works only when the Public is true. Annotations map[string]string `yaml:"annotations,omitempty" json:"annotations,omitempty"` }
Port defines the exposed port of workload.Service, which can be used to describe how the workload.Service get accessed.
Click to show internal directories.
Click to hide internal directories.