-
Notifications
You must be signed in to change notification settings - Fork 291
Adds Managed APIServer Loadbalancer #401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -203,6 +203,23 @@ type OpenstackClusterProviderSpec struct { | |
| // to get public internet to the VMs. | ||
| ExternalNetworkID string `json:"externalNetworkId,omitempty"` | ||
|
|
||
| // ManagedAPIServerLoadBalancer defines whether a LoadBalancer for the | ||
| // APIServer should be created. If set to true the following properties are | ||
| // mandatory: APIServerLoadBalancerFloatingIP, APIServerLoadBalancerPort | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is floating ip field necessary when this field is true if the comment for that field indicates it will be created if not specified?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure if I get it :). If this field is true that means an APIServerLoadBalancer should be created. If an APIServerLoadBalancer should be created we need a FloatingIP to associate it with the LB.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment of the floating ip field doesnt't say it will be created if not specified. It says the FloatingIP will be created (in OpenStack) if it doesn't already exist before (in OpenStack). But you have to set the value. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I understand, the field is always necessary then right? Thanks for clarifying
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. APIServerLoadBalancerFloatingIP is necessary if ManagedAPIServerLoadBalancer is set to true. |
||
| ManagedAPIServerLoadBalancer bool `json:"managedAPIServerLoadBalancer"` | ||
|
|
||
| // APIServerLoadBalancerFloatingIP is the floatingIP which will be associated | ||
| // to the APIServer loadbalancer. The floatingIP will be created if it not | ||
| // already exists. | ||
| APIServerLoadBalancerFloatingIP string `json:"apiServerLoadBalancerFloatingIP,omitempty"` | ||
|
|
||
| // APIServerLoadBalancerPort is the port on which the listener on the APIServer | ||
| // loadbalancer will be created | ||
| APIServerLoadBalancerPort int `json:"apiServerLoadBalancerPort,omitempty"` | ||
|
|
||
| // APIServerLoadBalancerAdditionalPorts adds additional ports to the APIServerLoadBalancer | ||
| APIServerLoadBalancerAdditionalPorts []int `json:"apiServerLoadBalancerAdditionalPorts,omitempty"` | ||
|
|
||
| // ManagedSecurityGroups defines that kubernetes manages the OpenStack security groups | ||
| // for now, that means that we'll create two security groups, one allowing SSH | ||
| // and API access from everywhere, and another one that allows all traffic to/from | ||
|
|
@@ -282,6 +299,10 @@ type Network struct { | |
|
|
||
| Subnet *Subnet `json:"subnet,omitempty"` | ||
| Router *Router `json:"router,omitempty"` | ||
|
|
||
| // Be careful when using APIServerLoadBalancer, because this field is optional and therefore not | ||
| // set in all cases | ||
| APIServerLoadBalancer *LoadBalancer `json:"apiServerLoadBalancer,omitempty"` | ||
| } | ||
|
|
||
| // Subnet represents basic information about the associated OpenStack Neutron Subnet | ||
|
|
@@ -298,6 +319,14 @@ type Router struct { | |
| ID string `json:"id"` | ||
| } | ||
|
|
||
| // LoadBalancer represents basic information about the associated OpenStack LoadBalancer | ||
| type LoadBalancer struct { | ||
| Name string `json:"name"` | ||
| ID string `json:"id"` | ||
| IP string `json:"ip"` | ||
| InternalIP string `json:"internalIP"` | ||
| } | ||
|
|
||
| // +genclient | ||
| // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||
|
|
||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.