Skip to content

Latest commit

 

History

History
138 lines (96 loc) · 9.02 KB

cs_hybrid.md

File metadata and controls

138 lines (96 loc) · 9.02 KB
copyright lastupdated
years
2014, 2018
2018-11-13

{:new_window: target="_blank"} {:shortdesc: .shortdesc} {:screen: .screen} {:pre: .pre} {:table: .aria-labeledby="caption"} {:codeblock: .codeblock} {:tip: .tip} {:note: .note} {:important: .important} {:deprecated: .deprecated} {:download: .download} {:tsSymptoms: .tsSymptoms} {:tsCauses: .tsCauses} {:tsResolve: .tsResolve}

Using {{site.data.keyword.containerlong_notm}} with {{site.data.keyword.Bluemix_notm}} Private

{: #hybrid_iks_icp}

If you have an {{site.data.keyword.Bluemix}} Private account, you can use it with select {{site.data.keyword.Bluemix_notm}} services, including {{site.data.keyword.containerlong}}. For more information, see the blog on Hybrid experience across {{site.data.keyword.Bluemix_notm}} Private and IBM Public CloudExternal link icon. {: shortdesc}

You understand the {{site.data.keyword.Bluemix_notm}} offerings. Now, you can connect your public and private cloud and reuse your private packages for public containers.

Connecting your public and private cloud with the strongSwan VPN

{: #hybrid_vpn}

Establish VPN connectivity between your public Kubernetes cluster and your {{site.data.keyword.Bluemix}} Private instance to allow two-way communication. {: shortdesc}

  1. Create a standard cluster with {{site.data.keyword.containerlong}} in {{site.data.keyword.Bluemix_notm}} Public or use an existing one. To create a cluster, choose between the following options:

  2. In your {{site.data.keyword.containerlong_notm}} cluster, follow the instructions to set up the strongSwan IPSec VPN service.

    • For Step 2, note that:

      • The local.id that you set in your {{site.data.keyword.containerlong_notm}} cluster must match what you later set as the remote.id in your {{site.data.keyword.Bluemix}} Private cluster.
      • The remote.id that you set in your {{site.data.keyword.containerlong_notm}} cluster must match what you later set as the local.id in your {{site.data.keyword.Bluemix}} Private cluster.
      • The preshared.secret that you set in your {{site.data.keyword.containerlong_notm}} cluster must match what you later set as the preshared.secret in your {{site.data.keyword.Bluemix}} Private cluster.
    • For Step 3, configure strongSwan for an inbound VPN connection.

      ipsec.auto: add
      loadBalancerIP: <portable_public_IP>
      

      {: codeblock}

  3. Note the portable public IP address that you set as the loadbalancerIP.

    kubectl get svc vpn-strongswan
    

    {: pre}

  4. Create a cluster in {{site.data.keyword.Bluemix_notm}} PrivateExternal link icon.

  5. In your {{site.data.keyword.Bluemix_notm}} Private cluster, deploy the strongSwan IPSec VPN service.

    1. Complete the strongSwan IPSec VPN workarounds External link icon.

    2. Set up the strongSwan VPN Helm chartExternal link icon in your private cluster.

      • In the configuration parameters, set the Remote gateway field to the value of the portable public IP address that you set as the loadbalancerIP of your {{site.data.keyword.containerlong_notm}} cluster.

        Operation at startup: start
        ...
        Remote gateway: <portable_public_IP>
        ...
        

        {: codeblock}

      • Remember that the private local.id must match the public remote.id, the private remote.id must match the public local.id, and the preshared.secret values for private and public must match.

      Now, you can initiate a connection from the {{site.data.keyword.Bluemix_notm}} Private cluster to the {{site.data.keyword.containerlong_notm}} cluster.

  6. Test the VPN connection between your clusters.

  7. Repeat these steps for each cluster that you want to connect.

Running {{site.data.keyword.Bluemix_notm}} Private images in public Kubernetes containers

{: #hybrid_ppa_importer}

You can run select licensed IBM products that were packaged for {{site.data.keyword.Bluemix_notm}} Private in a cluster in {{site.data.keyword.Bluemix_notm}} Public.
{: shortdesc}

Licensed software is available in IBM Passport Advantage External link icon. To use this software in a cluster in {{site.data.keyword.Bluemix_notm}} Public, you must download the software, extract the image, and upload the image to your namespace in {{site.data.keyword.registryshort}}. Independent of the environment where you plan to use the software, you must obtain the required license for the product first.

The following table is an overview of available {{site.data.keyword.Bluemix_notm}} Private products that you can use in your cluster in {{site.data.keyword.Bluemix_notm}} Public.

Product Name Version Part Number
IBM Db2 Direct Advanced Edition Server 11.1 CNU3TML
IBM Db2 Advanced Enterprise Server Edition Server 11.1 CNU3SML
IBM MQ Advanced 9.0.5 CNU1VML
IBM WebSphere Application Server Liberty 16.0.0.3 Docker Hub image
{: caption="Table. Supported {{site.data.keyword.Bluemix_notm}} Private products to be used in {{site.data.keyword.Bluemix_notm}} Public." caption-side="top"}

Before you begin:

To deploy an {{site.data.keyword.Bluemix_notm}} Private image in a cluster in {{site.data.keyword.Bluemix_notm}} Public:

  1. Follow the steps in the {{site.data.keyword.registryshort}} documentation to download the licensed software from IBM Passport Advantage, push the image to your namespace, and install the Helm chart in your cluster.

    For IBM WebSphere Application Server Liberty:

    1. Instead of obtaining the image from IBM Passport Advantage, use the Docker Hub image External link icon. For instructions on getting a production license, see Upgrading the image from Docker Hub to a production imageExternal link icon.

    2. Follow the Liberty Helm chart instructionsExternal link icon.

  2. Verify that the STATUS of the Helm chart shows DEPLOYED. If not, wait a few minutes, then try again.

    helm status <helm_chart_name>
    

    {: pre}

  3. Refer to the product-specific documentation for more information about how to configure and use the product with your cluster.