Skip to content

Latest commit

 

History

History
314 lines (235 loc) · 21.2 KB

cs_locations.md

File metadata and controls

314 lines (235 loc) · 21.2 KB
copyright lastupdated keywords subcollection
years
2014, 2020
2020-02-07
kubernetes, iks, mzr, szr, multizone, multi az
containers

{:codeblock: .codeblock} {:deprecated: .deprecated} {:download: .download} {:external: target="_blank" .external} {:faq: data-hd-content-type='faq'} {:gif: data-image-type='gif'} {:help: data-hd-content-type='help'} {:important: .important} {:new_window: target="_blank"} {:note: .note} {:pre: .pre} {:preview: .preview} {:screen: .screen} {:shortdesc: .shortdesc} {:support: data-reuse='support'} {:table: .aria-labeledby="caption"} {:tip: .tip} {:troubleshoot: data-hd-content-type='troubleshoot'} {:tsCauses: .tsCauses} {:tsResolve: .tsResolve} {:tsSymptoms: .tsSymptoms}

Locations

{: #regions-and-zones}

You can deploy {{site.data.keyword.containerlong}} clusters worldwide. When you create a cluster, its resources remain in the location that you deploy the cluster to. To work with your cluster, you can access the service via a global API endpoint. {:shortdesc}

{{site.data.keyword.containerlong_notm}} locations

{{site.data.keyword.containerlong_notm}} locations

{{site.data.keyword.cloud_notm}} resources used to be organized into regions that were accessed via region-specific endpoints. Use the global endpoint instead. {: deprecated}

{{site.data.keyword.containerlong_notm}} locations

{: #locations}

{{site.data.keyword.cloud_notm}} resources are organized into a hierarchy of geographic locations. {{site.data.keyword.containerlong_notm}} is available in a subset of these locations, including all six worldwide multizone-capable regions and select single zone regions. Other {{site.data.keyword.cloud_notm}} services might be available globally or within a specific location. {: shortdesc}

ibmcloud ks supported-locations

{: pre}

How locations are organized

{: #example_locations_org}

The following image is used as an example to explain how {{site.data.keyword.containerlong_notm}} locations are organized. {: shortdesc}

Organization of {{site.data.keyword.containerlong_notm}} locations

Type Example Description
Geography North America (na) An organizational grouping that is based on geographic continents.
Country Canada (ca) The location's country within the geography.
Metro Mexico City (mex-cty), Dallas (dal) The name of a city where 1 or more data centers (zones) are located. A metro can be multizone-capable and have multizone-capable data centers, such as Dallas, or can have only single zone data centers, such as Mexico City. If you create a cluster in a multizone-capable metro, the Kubernetes master and worker nodes can be spread across zones for high availability.
Data center (zone) Dallas 12 (dal12) A physical location of the compute, network, and storage infrastructure and related cooling and power that host cloud services and applications. Clusters can be spread across data centers, or zones, in an multizone architecture for high availability. Zones are isolated from each other, which ensures no shared single point of failure.
{: caption="Organization of {{site.data.keyword.containerlong_notm}} locations."}
{: summary="The table shows organization of {{site.data.keyword.containerlong_notm}} locations. Rows are to be read from the left to right, with the location type in column one, an example of the type in column two, and the description in column three."}

Single and multizone locations in {{site.data.keyword.containerlong_notm}}

{: #zones}

The following tables list the available single and multizone locations in {{site.data.keyword.containerlong_notm}}. Note that in certain metros, you can provision a cluster as a single zone or multizone cluster. Free clusters are only available in select geographies as only single zone clusters with one worker node. Classic clusters are available in both multizone metros and single zones, but VPC clusters are available only in select multizone metros. {: shortdesc}

  • Multizone: If you create a cluster in a multizone metro location, the replicas of your highly available Kubernetes master are automatically spread across zones. You have the option to spread your worker nodes across zones to protect your apps from a zone failure.
  • Single zone: If you create a cluster in a single zone (data center) location, you can create multiple worker nodes but you cannot spread them across zones. The highly available master includes three replicas on separate hosts, but is not spread across zones.
  • VPC regions and zones: VPC resources are provisioned in a region, which is a separate group of zones within a metro. The zones are mapped to separate data centers that can vary depending on your account, to ensure that resources are distributed evenly across zones in a multizone architecture. As such, the zones are noted with the region name in the API and CLI (us-south-1), and by the metro location in the console (Dallas 1).

To quickly determine whether a zone is multizone-capable, your can run ibmcloud ks supported-locations and look for the value in the Multizone Metro column. {: tip}

{{site.data.keyword.cloud_notm}} resources used to be organized into regions that were accessed via region-specific endpoints. The tables list the previous regions for informational purposes. Going forward, you can use the global endpoint to move toward a region-less architecture. {: deprecated}

Geography Country Metro Data center Deprecated region
Asia Pacific Australia Sydney syd01, syd04, syd05 AP South (ap-south, au-syd)
Asia Pacific Japan Tokyo tok02, tok04, tok05 AP North (ap-north, jp-tok)
Europe Germany Frankfurt fra02, fra04, fra05 EU Central (eu-central, eu-de)
Europe United Kingdom London lon04, lon05*, lon06 UK South (uk-south, eu-gb)
North America United States Dallas dal10, dal12, dal13 US South (us-south)
North America United States Washington, D.C. wdc04, wdc06, wdc07 US East (us-east)
{: class="simple-tab-table"}
{: caption="Available multizone metro locations for classic clusters in {{site.data.keyword.containerlong_notm}}." caption-side="top"}
{: #locationtabtablemulti}
{: tab-title="Multizone metros for classic clusters"}
{: tab-group="location-multi-single"}
Geography Country Metro Data center Deprecated region
Asia Pacific Australia Melbourne mel01 AP South (ap-south, au-syd)
Asia Pacific Australia Sydney syd01, syd04, syd05 AP South (ap-south, au-syd)
Asia Pacific China Hong Kong
SAR of the PRC
hkg02 AP North (ap-north, jp-tok)
Asia Pacific India Chennai che01 AP North (ap-north, jp-tok)
Asia Pacific Japan Tokyo tok02, tok04, tok05 AP North (ap-north, jp-tok)
Asia Pacific Korea Seoul seo01 AP North (ap-north, jp-tok)
Asia Pacific Singapore Singapore sng01 AP North (ap-north, jp-tok)
Europe France Paris par01 EU Central (eu-central, eu-de)
Europe Germany Frankfurt fra02, fra04, fra05 EU Central (eu-central, eu-de)
Europe Italy Milan mil01 EU Central (eu-central, eu-de)
Europe The Netherlands Amsterdam ams03 EU Central (eu-central, eu-de)
Europe Norway Oslo osl01 EU Central (eu-central, eu-de)
Europe United Kingdom London lon02*, lon04, lon05*, lon06 UK South (uk-south, eu-gb)
North America Canada Montreal mon01 US East (us-east)
North America Canada Toronto tor01 US East (us-east)
North America Mexico Mexico City mex01 US South (us-south)
North America United States Dallas dal10, dal12, dal13 US South (us-south)
North America United States San Jose sjc03, sjc04 US South (us-south)
North America United States Washington, D.C. wdc04, wdc06, wdc07 US East (us-east)
South America Brazil São Paulo sao01 US South (us-south)
{: class="simple-tab-table"}
{: caption="Available single zone data center locations for classic clusters in {{site.data.keyword.containerlong_notm}}." caption-side="top"}
{: #locationtabtablesingle}
{: tab-title="Single zones for classic clusters"}
{: tab-group="location-multi-single"}

| Geography | Country | Metro | Region | Zone | Location | |-----|-----|-----|-----|-----| | Asia Pacific | Australia | Sydney | au-syd | au-syd-1
au-syd-2
au-syd-3 | Sydney 1
Sydney 2
Sydney 3| | Asia Pacific | Japan | Tokyo | jp-tok | jp-tok-1
jp-tok-2
jp-tok-3 | Tokyo 1
Tokyo 2
Tokyo 3| | Europe | Germany | Frankfurt | eu-de | eu-de-1
eu-de-2
eu-de-3 | Frankfurt 1
Frankfurt 2
Frankfurt 3| | Europe | United Kingdom | London | eu-gb | eu-gb-1
eu-gb-2
eu-gb-3 | London 1
London 2
London 3| | North America | United States | Dallas | us-south | us-south-1
us-south-2
us-south-3 | Dallas 1
Dallas 2
Dallas 3| {: class="simple-tab-table"} {: caption="Available multizone metro locations for VPC clusters in {{site.data.keyword.containerlong_notm}}." caption-side="top"} {: #locationtabtablemultivpc} {: tab-title="Multizone metros for VPC clusters"} {: tab-group="location-multi-single"}

* lon05 replaces lon02. New clusters must use lon05, which supports highly available masters that are spread across zones. {: note}

Single zone clusters

{: #regions_single_zone}

In a single zone cluster, your cluster's resources remain in the zone in which the cluster is deployed. The following image highlights the relationship of single zone cluster components with an example of the Toronto, Canada tor01 location. {: shortdesc}

Understanding where your cluster resources reside

Understanding where your single zone cluster resources are.

  1. Your cluster's resources, including the master and worker nodes, are in the same data center that you deployed the cluster to. When you initiate local container orchestration actions, such as kubectl commands, the information is exchanged between your master and worker nodes within the same zone.

  2. If you set up other cluster resources, such as storage, networking, compute, or apps running in pods, the resources and their data remain in the zone that you deployed your cluster to.

  3. When you initiate cluster management actions, such as using ibmcloud ks commands, basic information about the cluster (such as name, ID, user, the command) is routed through a regional endpoint via the global endpoint. Regional endpoints are located in the nearest multizone metro region. In this example, the metro region is Washington, D.C.

Multizone clusters

{: #regions_multizone}

In a multizone cluster, your cluster's resources are spread across multiple zones for higher availability. {: shortdesc}

  1. Worker nodes are spread across multiple zones in the metro location to provide more availability for your cluster. The Kubernetes master replicas are also spread across zones. When you initiate local container orchestration actions, such as kubectl commands, the information is exchanged between your master and worker nodes through the global endpoint.

  2. Other cluster resources, such as storage, networking, compute, or apps running in pods, vary in how they deploy to the zones in your multizone cluster. For more information, review these topics:

  3. When you initiate cluster management actions, such as using ibmcloud ks commands, basic information about the cluster (such as name, ID, user, the command) is routed through the global endpoint.

Free clusters

{: #regions_free}

Free clusters are limited to specific locations and are available for only classic infrastructure, not VPC infrastructure. For more information about free clusters, see the FAQ. {: shortdesc}

Creating a free cluster in the CLI: You can create a free cluster in select regions only. Your cluster is created in a data center within the region that you target. You cannot specify the data center. The following regions are available.

  • Sydney metro in ibmcloud ks init --host https://au-syd.containers.cloud.ibm.com
  • Frankfurt metro in ibmcloud ks init --host https://eu-de.containers.cloud.ibm.com
  • London metro in ibmcloud ks init --host https://eu-gb.containers.cloud.ibm.com
  • Dallas metro in ``ibmcloud ks init --host https://us-south.containers.cloud.ibm.com`

Creating a free cluster in the {{site.data.keyword.cloud_notm}} console: When you use the console, you cannot select a location. Your cluster is created in one of the following locations.

  • Dallas metro in North America
  • Frankfurt or London metros in Europe
  • Sydney metro in Asia Pacific

Accessing the global endpoint

{: #endpoint}

You can organize your resources across {{site.data.keyword.cloud_notm}} services by using {{site.data.keyword.cloud_notm}} locations (formerly called regions). For example, you can deploy an app to a cluster by using a private Docker image that is stored in your {{site.data.keyword.registryshort_notm}} of the same location. To access these resources, you can use the global endpoints and filter by location. {:shortdesc}

Logging in to {{site.data.keyword.cloud_notm}}

{: #login-ic}

When you log in to the {{site.data.keyword.cloud_notm}} (ibmcloud) command line, you are prompted to select a region. However, this region does not affect the {{site.data.keyword.containerlong_notm}} plug-in (ibmcloud ks) endpoint, which still uses the global endpoint. Note that you do still need to target the resource group that your cluster is in if it is not in the default resource group. {: shortdesc}

To log in to the {{site.data.keyword.cloud_notm}} global API endpoint and target the resource group that your cluster is in:

ibmcloud login -a https://cloud.ibm.com -g <nondefault_resource_group_name>

{: pre}

Logging in to {{site.data.keyword.containerlong_notm}}

{: #login-iks}

When you log in to {{site.data.keyword.cloud_notm}}, you can access the {{site.data.keyword.containershort_notm}}. To help you get started, check out the following resources for using the {{site.data.keyword.containerlong_notm}} CLI and API. {: shortdesc}

{{site.data.keyword.containerlong_notm}} CLI:

When you use the new global functionality in the {{site.data.keyword.containerlong_notm}} CLI, consider the following changes from the legacy region-based functionality.

  • Listing resources:

    • When you list resources, such as with the ibmcloud ks cluster ls, ibmcloud ks subnets, or ibmcloud ks zone ls commands, resources in all locations are returned. To filter resources by a specific location, certain commands include a --location flag. For example, if you filter clusters for the wdc metro, multizone clusters in that metro and single-zone clusters in data centers (zones) within that metro are returned. If you filter clusters for the wdc06 data center (zone), multizone clusters that have a worker node in that zone and single-zone clusters in that zone are returned. Example to filter by location:
      ibmcloud ks cluster ls -l dal -l seo
      
      {: pre}
    • Other commands do not return resources in all locations. To run credential set/unset/get, api-key reset, and vlan spanning get commands, you must specify a region in the --region.
  • Working with resources:

    • When you use the global endpoint, you can work with resources that you have access permissions to in any location, even if you target one region and the resource that you want to work with is in another region.
    • If you have clusters with the same name in different regions, use the cluster ID when you run commands or set a region with the ibmcloud ks init command and use the cluster name when you run commands.
  • Legacy functionality:

    • If you need to list and work with resources from one region only, you can use the ibmcloud ks init command to target a regional endpoint instead of the global endpoint. Example to target the US South regional endpoint:
      ibmcloud ks init --host https://us-south.containers.cloud.ibm.com
      
      {: pre}
    • To use the global functionality, you can use the ibmcloud ks init command again to target the global endpoint. Example to target the global endpoint again:
      ibmcloud ks init --host https://containers.cloud.ibm.com
      
      {: pre}



{{site.data.keyword.containerlong_notm}} API:

To interact with the global {{site.data.keyword.containerlong_notm}} API, enter the command type and append global/v1/command to the endpoint.

Example of GET /clusters global API:

GET https://containers.cloud.ibm.com/global/v1/clusters

{: codeblock}


If you need to specify a region in an API call, remove the /global parameter from the path and pass the region name in the X-Region header. To list available regions, review the Deprecated region column in the {{site.data.keyword.containerlong_notm}} locations table.


Deprecated: Previous {{site.data.keyword.cloud_notm}} region and zone structure

{: #bluemix_regions}

Previously, your {{site.data.keyword.cloud_notm}} resources were organized into regions. Regions are a conceptual tool to organize zones, and can include zones (data centers) in different countries and geographies. The following table maps the previous {{site.data.keyword.cloud_notm}} regions, {{site.data.keyword.containerlong_notm}} regions, and {{site.data.keyword.containerlong_notm}} zones. Multizone-capable zones are in bold. {: shortdesc}

Region-specific endpoints are deprecated. Use the global endpoint instead. If you must use regional endpoints, set the IKS_BETA_VERSION environment variable in the {{site.data.keyword.containerlong_notm}} plug-in to 0.2. {: deprecated}

{{site.data.keyword.containerlong_notm}} region Corresponding {{site.data.keyword.cloud_notm}} regions Available zones in the region
AP North (standard clusters only) Tokyo che01, hkg02, seo01, sng01, tok02, tok04, tok05
AP South Sydney mel01, syd01, syd04, syd05
EU Central Frankfurt ams03, fra02, fra04, fra05, mil01, osl01, par01
UK South London lon02, lon04, lon05, lon06
US East (standard clusters only) Washington DC mon01, tor01, wdc04, wdc06, wdc07
US South Dallas dal10, dal12, dal13, mex01, sjc03, sjc04, sao01
{: caption="Corresponding {{site.data.keyword.containershort}} and {{site.data.keyword.cloud_notm}} regions, with zones. Multizone-capable zones are in bold." caption-side="top"}

By using {{site.data.keyword.containerlong_notm}} regions, you can create or access Kubernetes clusters in a region other than the {{site.data.keyword.cloud_notm}} region that you are logged in to. {{site.data.keyword.containerlong_notm}} region endpoints refer specifically to the {{site.data.keyword.containerlong_notm}}, not {{site.data.keyword.cloud_notm}} as a whole.

You might want to log in to another {{site.data.keyword.containerlong_notm}} region for the following reasons:

  • You created {{site.data.keyword.cloud_notm}} services or private Docker images in one region and want to use them with {{site.data.keyword.containerlong_notm}} in another region.
  • You want to access a cluster in a region that is different from the default {{site.data.keyword.cloud_notm}} region that you are logged in to.

To switch regions, use the ibmcloud ks init command.