|
25 | 25 | :uri-oci-documentation: https://docs.cloud.oracle.com/iaas/Content/home.htm |
26 | 26 | :uri-oci-instance-principal: https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm |
27 | 27 | :uri-oci-kms: https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm |
| 28 | +:uri-oci-loadbalancer-annotations: https://github.com/oracle/oci-cloud-controller-manager/blob/master/docs/load-balancer-annotations.md |
28 | 29 | :uri-oci-manage-dynamic-groups: https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingdynamicgroups.htm |
29 | 30 | :uri-oci-manage-policies: https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingpolicies.htm |
30 | 31 | :uri-oci-ocir: https://docs.cloud.oracle.com/iaas/Content/Registry/Concepts/registryoverview.htm |
| 32 | +:uri-oci-load-balancers: https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengcreatingloadbalancer.htm#Specifyi |
| 33 | +:uri-oci-oke-flexible-loadbalancers: https://medium.com/@lmukadam/creating-flexible-oci-load-balancers-with-oke-bd98e0318976 |
31 | 34 | :uri-oci-secret: https://docs.cloud.oracle.com/en-us/iaas/Content/KeyManagement/Tasks/managingsecrets.htm |
32 | 35 | :uri-oci-authtoken: https://docs.cloud.oracle.com/iaas/Content/Registry/Tasks/registrygettingauthtoken.htm |
33 | 36 | :uri-oci-waf: https://docs.cloud.oracle.com/en-us/iaas/Content/WAF/Concepts/overview.htm |
|
73 | 76 | . link:#creating-a-service-account-for-cicd-tools[Creating a service account for CI/CD tools] |
74 | 77 | . link:#enabling-waf[Monitor and Protect your application using OCI WAF] |
75 | 78 | . link:#enabling-podsecuritypolicy[Enabling PodSecurityPolicy Admissions Controller] |
| 79 | +. link:#using-dynamic-and-flexible-load-balancers[Using Dynamic and Flexible Load Balancers] |
76 | 80 |
|
77 | 81 | === Assumptions |
78 | 82 |
|
@@ -348,4 +352,27 @@ admission_controller_options = { |
348 | 352 | Ensure you also read {uri-psp}[the documentation] before enabling it. |
349 | 353 |
|
350 | 354 | **** |
351 | | -N.B. This field is updatable. You can set to `true` and `false` and run terraform apply again. |
| 355 | +N.B. This field is updatable. You can set to `true` and `false` and run terraform apply again. |
| 356 | +**** |
| 357 | + |
| 358 | +=== Using Dynamic and Flexible Load Balancers |
| 359 | + |
| 360 | +When you create a service of type LoadBalancer, by default, an OCI Load Balancer with dynamic shape 100Mbps will be created. |
| 361 | + |
| 362 | +You can override this shape by using the {uri-oci-loadbalancer-annotations}[OCI Load Balancer Annotations]. In order to keep using the dynamic shape but change the available total bandwidth to 400Mbps, use the following annotation on your LoadBalancer service: |
| 363 | + |
| 364 | +`service.beta.kubernetes.io/oci-load-balancer-shape: "400Mbps"` |
| 365 | + |
| 366 | +You can also change the shape to flexible and set a minimum and maximum bandwidth: |
| 367 | + |
| 368 | +``` |
| 369 | +service.beta.kubernetes.io/oci-load-balancer-shape: "flexible" |
| 370 | +service.beta.kubernetes.io/oci-load-balancer-shape-flex-min: 50 |
| 371 | +service.beta.kubernetes.io/oci-load-balancer-shape-flex-max: 200 |
| 372 | +``` |
| 373 | + |
| 374 | +Review the following documentation and articles on creating load balancers of different shapes using Ingress Controllers: |
| 375 | + |
| 376 | +* {uri-oci-load-balancers}[Specifying Alternative Load Balancer Shapes] |
| 377 | + |
| 378 | +* {uri-oci-oke-flexible-loadbalancers}[Creating flexible OCI Load Balancers with OKE] |
0 commit comments