|
1 | 1 | ---
|
2 |
| -title: Using the OVHcloud Managed Kubernetes LoadBalancer |
3 |
| -excerpt: Find out how to use and deploy an OVHcloud Managed Kubernetes LoadBalancer |
4 |
| -updated: 2024-09-11 |
| 2 | +title: Expose your app deployed on an OVHcloud Managed Kubernetes Service |
| 3 | +excerpt: Find out how to use and expose your app deployed on an OVHcloud Managed Kubernetes Service |
| 4 | +updated: 2024-09-23 |
5 | 5 | ---
|
6 | 6 |
|
7 | 7 | > [!warning]
|
8 |
| -> This documentation is about "LoadBalancer for K8s". If you want to benefit from the future MKS LoadBalancer implementation based on Octavia LoadBalancer, please refer to [this page](/pages/public_cloud/containers_orchestration/managed_kubernetes/expose_your_applications_using_a_load_balancer/). |
| 8 | +> The Loadbalancer section of this documentation is about "LoadBalancer for Managed Kubernetes Service. If you want to benefit from the new MKS LoadBalancing solution "Public Cloud LoadBalancer" based on Octavia LoadBalancer, please refer to [this page](/pages/public_cloud/containers_orchestration/managed_kubernetes/expose_your_applications_using_a_load_balancer). |
9 | 9 | >
|
10 |
| -> To force the usage of "LoadBalancer for K8s" in your MKS cluster, add this annotation `loadbalancer.ovhcloud.com/class: iolb` to your K8s Service. |
| 10 | +> To force the usage of "LoadBalancer for Managed Kubernetes" in your MKS cluster, add this annotation `loadbalancer.ovhcloud.com/class: iolb` to your Kubernetes Service. |
11 | 11 | >
|
12 |
| -> Note: "LoadBalancer for K8s" will be replaced by the Octavia implementation. |
| 12 | +> Note: Starting from MKS Kubernetes version 1.31, "LoadBalancer for Managed Kubernetes" is no longer the default loadbalancer solution and will be replaced by Public Cloud Loadbalancer. |
13 | 13 | >
|
14 | 14 |
|
15 | 15 | ## Objective
|
@@ -56,11 +56,11 @@ It's rather cumbersome to use `NodePort` `Services` in production. As you are us
|
56 | 56 |
|
57 | 57 | > [!warning]
|
58 | 58 | > In our OVHcloud Managed Kubernetes you have an easy way to access `NodePort` services. You need to get the *nodes* URL, an URL solving via round-robin DNS to one random node of your cluster. As `NodePort` services are exposed in the same port on every Node, you can use this *nodes* URL to access them.
|
59 |
| -> |
| 59 | +> |
60 | 60 | > In order to get the nodes URL, you get the *control plane* URL (the one given on `kubectl cluster-info`) and add the `nodes` element between the first and the second element of the URL
|
61 |
| -> |
| 61 | +> |
62 | 62 | > Example:
|
63 |
| -> |
| 63 | +> |
64 | 64 | > ```
|
65 | 65 | > $ kubectl cluster-info
|
66 | 66 | > Kubernetes control plane is running at https://xxxxxx.c1.gra9.k8s.ovh.net
|
@@ -91,18 +91,16 @@ The `LoadBalancer` is the best option for a production environment, with two cav
|
91 | 91 |
|
92 | 92 | OVHcloud currently provides two types of load balancers that can be used with Managed Kubernetes Services:
|
93 | 93 |
|
94 |
| -- [Load Balancer for Managed Kubernetes](https://www.ovhcloud.com/asia/public-cloud/load-balancer-kubernetes/), this load balancer type can only be used to expose resources of a Managed Kubernetes Service. It supports up to 2000 requests/second and a 200Mbits/s bandwidth. |
95 |
| -- [Public Load Balancer](https://www.ovhcloud.com/asia/public-cloud/load-balancer/), based on the OpenStack Octavia project, this load balancer type can also be used with standard OVHcloud instances. You can choose between three Load Balancer sizes (S,M,L), providing up to 40k requests/second and a 2 Gbits/second bandwidth. Other advantages are the capability to expose your Load Balancer privately (private-to-private) or publicly (public-to-private or public-to-public) using [Floating IPs](https://www.ovhcloud.com/asia/public-cloud/floating-ip/), the possibility to collect metrics and TCP/UDP protocols. |
| 94 | +- [Load Balancer for Managed Kubernetes](/links/public-cloud/load-balancer-kubernetes), this load balancer type can only be used to expose resources of a Managed Kubernetes Service. It supports up to 2000 requests/second and a 200Mbits/s bandwidth. Please note that this Loadbalancer will be depracated from MKS Kubernetes version 1.32 and upwards. |
| 95 | +- [Public Load Balancer](/links/public-cloud/load-balancer), based on the OpenStack Octavia project, this load balancer type can also be used with standard OVHcloud instances. You can choose between three Load Balancer sizes (S,M,L), providing up to 40k requests/second and a 2 Gbits/second bandwidth. Other advantages are the capability to expose your Load Balancer privately (private-to-private) or publicly (public-to-private or public-to-public) using [Floating IPs](/links/public-cloud/floating-ip), the possibility to collect metrics and TCP/UDP protocols. |
96 | 96 |
|
97 |
| -> [!warning] |
98 |
| -> Usage of the [Public Load Balancer](https://www.ovhcloud.com/asia/public-cloud/load-balancer/) with a Managed Kubernetes Service is currently in Beta phase, you can retrieve all the related information and request an access by joining our [Container & Orchestration dedicated Discord channel](https://discord.gg/ovhcloud). |
99 | 97 |
|
100 | 98 | ### Supported annotations
|
101 | 99 |
|
102 |
| -> [!primary] |
103 |
| -> This part of the documentation applies to [Load Balancer for Managed Kubernetes](https://www.ovhcloud.com/asia/public-cloud/load-balancer-kubernetes/). |
| 100 | +> [!primary] |
| 101 | +> This part of the documentation applies to [Load Balancer for Managed Kubernetes](/links/public-cloud/load-balancer-kubernetes). |
104 | 102 | >
|
105 |
| -> A dedicated documentation for [Public Load Balancer](https://www.ovhcloud.com/asia/public-cloud/load-balancer/) will be published with the release of the Beta phase. |
| 103 | +> A dedicated documentation for [Public Load Balancer](/links/public-cloud/load-balancer) is available, please look at the [Expose your applications using a load balancer](/pages/public_cloud/containers_orchestration/managed_kubernetes/expose_your_applications_using_a_load_balancer). |
106 | 104 |
|
107 | 105 | There are several annotations available to customize your load balancer:
|
108 | 106 |
|
@@ -195,7 +193,7 @@ deployment.apps/hello-world-deployment configured
|
195 | 193 | ```
|
196 | 194 |
|
197 | 195 | > [!primary]
|
198 |
| -> The application you have just deployed is a simple Nginx server with a single static *Hello World* page. |
| 196 | +> The application you have just deployed is a simple Nginx server with a single static *Hello World* page. |
199 | 197 | > Basically it just deploys the Docker image [`ovhplatform/hello`](https://hub.docker.com/r/ovhplatform/hello/)
|
200 | 198 |
|
201 | 199 | ### List the services
|
@@ -283,6 +281,6 @@ No resources found
|
283 | 281 |
|
284 | 282 | ## Go further
|
285 | 283 |
|
286 |
| -- If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/asia/professional-services/) to get a quote and ask our Professional Services experts for assisting you on your specific use case of your project. |
| 284 | +- If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](/links/professional-services) to get a quote and ask our Professional Services experts for assisting you on your specific use case of your project. |
287 | 285 |
|
288 | 286 | - Join our [community of users](https://community.ovh.com/en/).
|
0 commit comments