In this tutorial, we will show you how to create a cluster on which you can install Alibaba Cloud's Container Service for Kubernetes. Alibaba Cloud's Container Service for Kubernetes is made up of a Virtual Private Cloud (VPC) which contains clusters of Alibaba Cloud Elastic Compute Service (ECS) instances.
Before you can run Kubernetes containerized application environments on Alibaba Cloud's Container Service for Kubernetes you need to create a Kubernetes cluster.
Orchestrating containerized applications with virtual management tools, such as Kubernetes and Docker Swarm, allows developers to manage and monitor production and development environments made up of containerized applications built directly into the Alibaba Cloud Container Service.
Alibaba Cloud's Container Service is a scalable and reliable high-performance container management service that allows you to orchestrate and manage containerized application lifecycles with either Kubernetes or Docker Swarm.
Alibaba Cloud's Container Service offers multiple application release methods, including continuous integration, and also supports a microservices architecture. Container Service for Kubernetes provides enterprise level performance and flexibility for the management of Kubernetes containerized applications at every stage of the development lifecycle.
Alibaba Cloud's Container Service for Kubernetes simplifies cluster creation, management, and allows easy upscale. It also auto-integrates with Alibaba Cloud's virtualization, storage, network, and security services which improve and simplify the overall running environment for Kubernetes containerized applications.
Alibaba Cloud's Container Service is one of the first cloud container services to have passed the Certified Kubernetes Conformance Program.
Kubernetes is a large scale, open source, automated orchestration platform for multi-container applications. It eliminates the manual work involved in deploying and scaling containerized applications. Kubernetes orchestrates, manages, and monitors extensive, enterprise-grade clusters of nodes that together run containerized application stacks.
Kubernetes organizes containers into logical units for easy administration. It deals with the computing, networking, and storage infrastructure required by user workloads and is highly flexible and scalable. Kubernetes functions as both Platform as a Service (PaaS) and Infrastructure as a Service (IaaS) and is flexible, simple to use, and portable.
Kubernetes mainly orchestrates applications built up of Docker containers, but it can also manage any container system that conforms to the Open Container Initiative (OCI) standards for container image formats and runtimes.
Before we can install and run Kubernetes container stacks with Alibaba Cloud's Container Service, we need to have an Alibaba Cloud Container Service Kubernetes cluster ready and available for implementing our containerized systems. The Kubernetes cluster has three master nodes which orchestrate and maintain the application stacks by scheduling the containers on the worker nodes in the cluster.
This tutorial describes the preliminary step of building out a Kubernetes cluster. In a previous tutorial, we showed you how to implement Docker images on the Docker Swarm cluster with Alibaba Cloud's Container Service.
You will need an Alibaba Cloud account. If you don't already have one, head over to the Free Trial page to get $300-1200 worth of Alibaba Cloud products to try out with in the Alibaba Cloud Free Trial.
Before setting up the Kubernetes cluster, make sure you have activated Alibaba Cloud's Container Service, the Resource Orchestration Service (ROS), Resource Access Management (RAM), and Elastic Scaling Service (ESS) service.
Let's get started.
First, head over to the Products page and click Container Service.
You will arrive at the Container Service console page.
Make sure the Container Service – Kubernetes option is selected before clicking Create Kubernetes Cluster.
In the Kubernetes tab, give your Cluster a unique name and pick your Region and Zone.
You can Auto Create a VPC for the cluster or use an already existing VPC with Use Existing. We'll pick Auto Create.
Now set the Master and Worker node configuration. Master nodes default to a three node allowance. We will create just one Worker node for the cluster but in practice you will usually have many more Worker nodes than Masters.
If you have connected up a pre-existing VPC you can add pre-created ECS instances to the Worker nodes here.
Set a key-pair or a password for security purposes and pick the Kubernetes version you require.
Select the required services. For auto-created VPCs, you must select SNAT.
If you wish to expose the API service to the public network, you must select Public SLB.
You can enable SSH if you wish.
We have chosen to install the monitoring, logging, and network plugins.
The advanced configuration details allow you to set a maximum number of pods per node and decide whether to install a CA certificate.
When you're ready, click Create in the upper right-hand corner of the screen.
If there are any required services or roles not activated, you will be warned. Go ahead and activate them.
When you're ready, click Create again. You will see confirmation of your cluster set up and the associated costs and billing methods.
When you're happy with the details, click OK.
You will see a screen detailing the cluster creation process.
This process may take a while. Please be patient.
Once everything is created, you will see the components marked in green and a message saying the cluster has been successfully created.
You will see the cluster running.
Click the cluster name.
You can see Basic Information on the cluster.
On the Node List page, you will find details for the cluster nodes including status, roles, CPU usage details for each node, memory usage, update time and a click through to view the Alibaba Cloud CloudMonitor page for each ECS instance.
You can see details of all events on the cluster on the Event List page.
You can also click through to Cluster Audit where you will see information on events, visitor details, server loads, etc.
This page will be more useful when the container stacks are running.
You are now ready to build your Kubernetes containerized application environments with Alibaba Cloud's Container Service.
First, we told you how, along with Docker Swarm applications, you can build Kubernetes containerized applications with Alibaba Cloud's Container Service for Kubernetes.
We informed you that, before you can go ahead and build out your Kubernetes application environments, you must have a Container Service cluster ready for Kubernetes to run on.
We gave you some information about Alibaba Cloud's Container Service, specifically the Container Service Kubernetes product which manages large-scale containerized applications. We told you about Kubernetes and then we took you through the step-by-step process of setting up a Container Service Kubernetes cluster on Alibaba Cloud.
You are now ready to build out your Kubernetes environments and we will show you exactly how to do that in a future tutorial.
See you soon.
Redefining Mobile Verification with Phone Number Verification Service
2,624 posts | 720 followersFollow
Alibaba Clouder - March 21, 2019
Alibaba Clouder - June 9, 2020
Alibaba Clouder - June 18, 2019
Alibaba Clouder - August 25, 2020
Alibaba Container Service - April 11, 2019
Alibaba Clouder - June 18, 2019
2,624 posts | 720 followersFollow
Alibaba Cloud Container Service for Kubernetes is a fully managed cloud container management service that supports native Kubernetes and integrates with other Alibaba Cloud products.Learn More
An online computing service that offers elastic and secure virtual cloud servers to cater all your cloud hosting needs.Learn More
A virtual private cloud service that provides an isolated cloud network to operate resources in a secure environment.Learn More
More Posts by Alibaba Clouder