mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 22:20:18 +00:00
Add external services v2 support.
This commit is contained in:
@@ -299,6 +299,7 @@ func init() {
|
||||
return err
|
||||
}
|
||||
out.CreateExternalLoadBalancer = in.Spec.CreateExternalLoadBalancer
|
||||
out.PublicIPs = in.Spec.PublicIPs
|
||||
out.ContainerPort = in.Spec.ContainerPort
|
||||
out.PortalIP = in.Spec.PortalIP
|
||||
out.ProxyPort = in.Spec.ProxyPort
|
||||
@@ -322,6 +323,7 @@ func init() {
|
||||
return err
|
||||
}
|
||||
out.Spec.CreateExternalLoadBalancer = in.CreateExternalLoadBalancer
|
||||
out.Spec.PublicIPs = in.PublicIPs
|
||||
out.Spec.ContainerPort = in.ContainerPort
|
||||
out.Spec.PortalIP = in.PortalIP
|
||||
out.Spec.ProxyPort = in.ProxyPort
|
||||
|
@@ -432,6 +432,8 @@ type Service struct {
|
||||
// This service will route traffic to pods having labels matching this selector.
|
||||
Selector map[string]string `json:"selector,omitempty" yaml:"selector,omitempty"`
|
||||
CreateExternalLoadBalancer bool `json:"createExternalLoadBalancer,omitempty" yaml:"createExternalLoadBalancer,omitempty"`
|
||||
// PublicIPs are used by external load balancers.
|
||||
PublicIPs []string `json:"publicIPs,omitempty" yaml:"publicIPs,omitempty"`
|
||||
|
||||
// ContainerPort is the name of the port on the container to direct traffic to.
|
||||
// Optional, if unspecified use the first port on the container.
|
||||
|
Reference in New Issue
Block a user