Skip to content

Latest commit

 

History

History
274 lines (207 loc) · 16.7 KB

getting-started.md

File metadata and controls

274 lines (207 loc) · 16.7 KB
copyright lastupdated keywords subcollection
years
2014, 2019
2019-09-25
kubernetes, iks, containers
containers

{: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} {:preview: .preview}

<style> </style>

Getting started with {{site.data.keyword.containerlong_notm}}

{: #getting-started}

Deploy highly available containerized apps in Kubernetes clusters and use the powerful tools of {{site.data.keyword.containerlong}} to automate, isolate, secure, manage, and monitor your workloads across zones or regions. {: shortdesc}

Classic infrastructure provider icon Classic clusters

Create a Kubernetes cluster on {{site.data.keyword.cloud_notm}} classic infrastructure worker nodes with classic subnet and VLAN networking support. Choose between a variety of virtual, bare metal, GPU, or software-defined storage flavors.

VPC infrastructure provider icon VPC on Classic

Create your cluster in a Virtual Private Cloud (VPC) that gives you the security of a private cloud with the dynamic scalability of a public cloud. Control network traffic with security groups and access control lists.

Overview

{: #gs-overview}

Learn more about {{site.data.keyword.containerlong}}, its capabilities and the options that are available to you to customize the cluster to your needs. {: shortdesc}

What is {{site.data.keyword.containerlong_notm}} and how does it work?
{{site.data.keyword.containerlong_notm}} is a managed Kubernetes offering to create your own Kubernetes cluster of compute hosts to deploy and manage containerized apps on {{site.data.keyword.cloud_notm}}. As a certified Kubernetes provider, {{site.data.keyword.containerlong_notm}} provides intelligent scheduling, self-healing, horizontal scaling, service discovery and load balancing, automated rollouts and rollbacks, and secret and configuration management for your apps. Combined with an intuitive user experience, built-in security and isolation, and advanced tools to secure, manage, and monitor your cluster workloads, you can rapidly deliver highly available and secure containerized apps in the public cloud.

What is Kubernetes?
Kubernetes is an open source platform for managing containerized workloads and services across multiple hosts, and offers management tools for deploying, automating, monitoring, and scaling containerized apps with minimal to no manual intervention. For more information, see the Kubernetes documentation.

What container platform can I choose from?
With {{site.data.keyword.containerlong_notm}}, you can select from two container management platforms: the IBM version of community Kubernetes and Red Hat OpenShift on IBM Cloud. In community Kubernetes clusters, you get access to community Kubernetes API features that are considered beta or higher by the community. Your worker nodes are set up with an Ubuntu operating system and you can use native Kubernetes commands or APIs to work with your cluster and the cluster resources. Red Hat OpenShift on IBM Cloud is a Kubernetes-based platform that is designed especially to accelerate your containerized app delivery processes that run on a Red Hat Enterprise Linux 7 operating system. For more information, see Comparison between OpenShift and community Kubernetes clusters.

In this getting started tutorial, you create a community Kubernetes cluster. If you want to create an OpenShift cluster instead, see Getting started with {{site.data.keyword.openshiftlong}}. {: note}

What compute host infrastructure does the service offer?
With {{site.data.keyword.containerlong_notm}}, you can create your cluster of compute hosts on classic {{site.data.keyword.cloud_notm}} infrastructure., or VPC on Classic infrastructure.

Classic clusters are created on your choice of virtual or bare metal worker nodes that are connected to VLANs. If you require additional local disks, you can also choose one of the bare metal flavors that are designed for software-defined storage solutions, such as Portworx. Depending on the level of hardware isolation that you need, virtual worker nodes can be set up as shared or dedicated nodes, whereas bare metal machines are always set up as dedicated nodes.

VPC on Classic clusters are created in your own Virtual Private Cloud that gives you the security of a private cloud environment with the dynamic scalability of a public cloud. You use security groups as your virtual firewalls for instance-level protection, and network access control lists to protect the subnets that your worker nodes are connected to. VPC on Classic clusters can be provisioned on shared virtual infrastructure only.

For more information, see Overview of Classic and VPC infrastructure providers.

Where can I learn more about the service?
Review the following links to find out more about the benefits and responsibilities when you use {{site.data.keyword.containerlong_notm}}.


Getting started with classic clusters

{: #clusters_gs}

Create a free classic cluster with one worker node and deploy your first app to {{site.data.keyword.cloud_notm}}. {:shortdesc}

Creating a free classic cluster

{: #classic-cluster-create}

Set up your free classic cluster with one worker node by using the {{site.data.keyword.cloud_notm}} console. {: shortdesc}

Before you begin:

To create a free classic cluster:

  1. In the {{site.data.keyword.cloud_notm}} Catalog External link icon, select Kubernetes Cluster and click Create. A cluster configuration page opens. By default, Free cluster is selected.

  2. Give your cluster a unique name.

  3. Click Create Cluster. A worker pool is created that contains one worker node.

The worker node can take a few minutes to provision, but you can see the progress in the Worker nodes tab. When the status reaches Ready, you can start working with your cluster!

Deploying an app to your classic cluster

{: #classic-deploy-app}

Deploy your first nginx app in your classic cluster by using the Kubernetes dashboard. The Kubernetes dashboard External link icon is a web console component that is provided by the open source community and installed in your cluster by default. Use the Kubernetes dashboard to manage resources that are within your cluster, such as pods, services, and namespaces. {: shortdesc}

  1. From the cluster details page, click Kubernetes dashboard.
  2. Click Create.
  3. Select the Create an app tab.
  4. Configure your nginx app.
    1. Enter a name for your app.
    2. Enter nginx for your container image.
  5. Click Deploy.
  6. From the Workloads > Deployments menu, select your nginx deployment and review the details for your deployment.

Congratulations! You just deployed your first app in your Kubernetes classic cluster.

What's next

{: #classic-whats-next}

  • Go through the {{site.data.keyword.containerlong_notm}} tutorial for installing the CLI or using the Kubernetes Terminal, creating a private registry, setting up your cluster environment, adding a service to your cluster, and deploying a {{site.data.keyword.watson}} app.
  • Create a standard classic cluster with multiple worker nodes that you can customize to your workload requirements and set up your cluster for high availability.

Getting started with VPC on Classic clusters

{: #vpc-classic-gs}

Create a Virtual Private Cloud (VPC), provision your standard VPC on Classic cluster, and deploy your first app by using the {{site.data.keyword.cloud_notm}} console. {:shortdesc}

Creating a standard VPC on Classic cluster

{: #vpc-classic-cluster-create}

Create a standard VPC on Classic cluster in a single zone by using the {{site.data.keyword.cloud_notm}} console. For more detailed information about your cluster customization options, see Creating a standard VPC on Classic cluster. {: shortdesc}

VPC on Classic clusters can be created as a standard cluster only, and as such incur costs. Be sure to review the order summary at the end of this tutorial to review the costs for your cluster. To keep your costs to a minimum, set up your cluster as a single zone cluster with one worker node only. {: important}

Before you begin:

To create a standard VPC on Classic cluster:

  1. Create a Virtual Private Cloud (VPC) External link icon with a subnet that is located in the zone where you want to create the cluster. Make sure to attach a public gateway to your subnet so that you can access public endpoints from your cluster. This public gateway is used later on to access container images from DockerHub.
  2. From the {{site.data.keyword.containerlong_notm}} dashboard External link icon, click Create cluster.
  3. Configure your cluster environment.
    1. Select Kubernetes as your container platform and select the Kubernetes version 1.15 or later.
    2. Select VPC infrastructure.
    3. From the Virtual Private Cloud drop-down menu, select the VPC that you created earlier.
    4. Fill out the cluster name, resource group, and geography.
    5. For the Location, select the zone for which you created a VPC subnet earlier.
  4. Select the 2 vCPUs 4GB RAM worker node flavor.
  5. For the number of worker nodes, enter 1.
  6. Review the order summary to verify the estimated costs for your cluster.
  7. Click Create cluster.

The worker node can take a few minutes to provision, but you can see the progress in the Worker nodes tab. When the status reaches Ready, you can start working with your cluster!

Deploying an app to your VPC cluster

{: #vpc-deploy-app}

With your VPC on Classic cluster all set up, deploy your first nginx app by using the Kubernetes dashboard. The Kubernetes dashboard External link icon is a web console component that is provided by the open source community and installed in your cluster by default. Use the Kubernetes dashboard to manage resources that are within your cluster, such as pods, services, and namespaces. {: shortdesc}

  1. From the cluster details page, click Kubernetes dashboard.
  2. Click Create.
  3. Select the Create an app tab.
  4. Configure your nginx app.
    1. Enter a name for your app.
    2. Enter nginx for your container image.
  5. Click Deploy.
  6. From the Workloads > Deployments menu, select your nginx deployment and review the details for your deployment.

Congratulations! You just deployed your first app in your Kubernetes VPC cluster.

What's next

{: #vpc-classic-whats-next}