Compute Services

IBM Cloud Kubernetes Service Deployment Patterns #4: Multi-Zone Cluster, LoadBalancer Aggregating Whole Region Capacity

Share this post:

Deployment Patterns #4: Multi-Zone Cluster, App Exposed via LoadBalancer Aggregating Whole Region Capacity

In my previous post, “IBM Cloud Kubernetes Service: Deployment Patterns for Maximizing Throughput and Availability,” I briefly described a few cluster deployment patterns that should be considered when you are looking to deploy IBM Cloud Kubernetes Service clusters. When choosing the right pattern, you must consider the requirements of the application you are running (including scale), the SLA target, and the budget.

Example deployment pattern

In this article, we are going to go through  steps to deploy an example application with the following deployment pattern:


  1. Sign up and create a multi-zone IBM Cloud Kubernetes Service cluster using the IBM Cloud Console. You can read the documentation on deploying a cluster and specifically how multi-zone clusters work. Important: You have to use the paid tier.
  2. Open a ticket! There is a manual step for this to work, unfortunately. You have to open a ticket on the portal (Technical > Infrastructure > Public Network Question) and add the following to the request:
    “Please set up the network to allow capacity aggregation on the public VLANs associated with my account. {It is even better if you list your public VLANs.} The reference ticket for this request is:
  3. Download and apply the following example Deployment and Service resource yaml, which will expose the echoserver application via the LoadBalancer service on port 1884 in three availability zones you specify in the yaml.
    $ kubectl apply -f iks_multi-zone_cluster_app_via_LoadBalancer_and_aggregate_capacity.yaml
    Note: Do not forget to edit the lines marked with NEED TO EDIT!
  4. Check the IP address of the LoadBalancer service:

Test the app

  1. To test, load the IP:port you specified in your browser or initiate curlcommands (like my example):
    $ curl http://{your IP here}:1884/
  2. You will see a response like the following (run it for each LoadBalancerIP address):

You can see the source IP address in the client_address field because we applied the externalTrafficPolicy: Local in the LoadBalancer Service resource. On the return path, the packets are using their local gateway to leave IBM Cloud.

Finding the right pattern

As you learn more about your workload, you can adjust and even switch between patterns as needed. Different applications will require different patterns; please let us help you decide which is right!

You can learn more about the various deployment patterns in the following posts:

Contact us

If you have questions, engage our team via Slack by registering here and joining the discussion in the #general channel on our public IBM Cloud Kubernetes Service Slack

Chief Architect, Networking – IBM Cloud Kubernetes Service

More Compute Services stories
April 18, 2019

Bring Your Own ALB: DNS with Health Checks and SSL Certificates (Beta)

If you've ever wanted to run a web server, an API gateway, an Ingress controller, a Kafka proxy, a service that has a binary protocol like an MQTT service or database, or essentially anything that runs on TCP (or UDP), you can now run it in IBM Cloud Kubernetes Service on a host name.

Continue reading

April 17, 2019

Container Orchestration Explained

In the past, we've talked about containerization technology and dove into Kubernetes as an orchestration platform, but we're going to take a step back to look at why container orchestration is necessary and the benefits it brings to both developers and operations teams.

Continue reading

April 9, 2019

Improve Your Application Insights Using Log Analysis with LogDNA

IBM Log Analysis with LogDNA has a solution for multi-tenant services running on IBM Cloud. Starting now, platform service logs from your IBM Cloud multi-tenant services will be appearing in your provisioned LogDNA instances.

Continue reading