• Complain

Vohra - Kubernetes Microservices with Docker

Here you can read online Vohra - Kubernetes Microservices with Docker full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. City: Berkeley;CA, year: 2016, publisher: Apress, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Vohra Kubernetes Microservices with Docker
  • Book:
    Kubernetes Microservices with Docker
  • Author:
  • Publisher:
    Apress
  • Genre:
  • Year:
    2016
  • City:
    Berkeley;CA
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Kubernetes Microservices with Docker: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Kubernetes Microservices with Docker" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Start using Kubernetes in complex big data and enterprise applications, including Docker containers. Starting with installing Kubernetes on a single node, the book introduces Kubernetes with a simple Hello example and discusses using environment variables in Kubernetes.
Next,Kubernetes Microservices with Dockerdiscusses using Kubernetes with all major groups of technologies such as relational databases, NoSQL databases, and in the Apache Hadoop ecosystem.
The book concludes with using multi container pods and installing Kubernetes on a multi node cluster.
a concise but clear introduction to containers, Docker and Kubernetes, using simple real-world examples to pass on the core concepts, via repetition, and is a very useful enabler.10/10
Dave Hay MBCS CITP: review for BCS, The Chartered Institute for IT (http: //www.bcs.org/content/conWebDoc/58512)
What You Will Learn

Install Kubernetes on a single node
Set environment variables
Create multi-container pods using Docker
Use volumes
Use Kubernetes with the Apache Hadoop ecosystem, NoSQL databases, and RDBMSs
Install Kubernetes on a multi-node cluster
Who This Book Is For
Application developers including Apache Hadoop developers, database developers and NoSQL developers.

Vohra: author's other books


Who wrote Kubernetes Microservices with Docker? Find out the surname, the name of the author of the book and a list of all author's works by series.

Kubernetes Microservices with Docker — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Kubernetes Microservices with Docker" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Part I
Getting Started
Deepak Vohra 2016
Deepak Vohra Kubernetes Microservices with Docker 10.1007/978-1-4842-1907-2_1
1. Installing Kubernetes Using Docker
Deepak Vohra 1
(1)
White Rock, British Columbia, Canada
Kubernetes is software for managing a cluster of Docker containers. Kubernetes orchestration includes scheduling, distributing workload, and scaling. Kubernetes takes the software encapsulation provided by Docker further by introducing Pods. A Pod is a collection of one or more Docker containers with single interface features such as providing networking and filesystem at the Pod level rather than at the container level. Kubernetes also introduces labels using which services and replication controllers (replication controller is used to scale a cluster) identify or select the containers or pods they manage. Kubernetes is lightweight, portable (suited for the cloud architecture), and modular.
Kubernetes may be run on almost any platform. Local machine solutions include local Docker based, Vagrant, and no-VM local cluster. Hosted solutions include Google Container Engine. Some of the other platforms supported by Kubernetes are Fedora (Ansible and Manual), Amazon Web Services, Mesos, vSphere, and CoreOS. Kubernetes is an orchestration software for Docker containers; the recommended solution for installation is to use the Docker Engine. In this chapter we shall install Kubernetes on Docker, which runs on Ubuntu. We shall use an Amazon EC2 instance hosting Ubuntu as the operating system. In this chapter, a single node installation of Kubernetes is discussed. Multi-node installation of Kubernetes is discussed in chapter . This chapter has the following sections.
  • Setting the Environment
  • Installing Docker
  • Installing Kubernetes
  • Starting etcd
  • Starting Kubernetes Master
  • Starting Service Proxy
  • Listing the Kubernetes Docker Containers
  • Installing kubectl
  • Listing Services
  • Listing Nodes
  • Testing the Kubernetes Installation
Setting the Environment
The following software is required for this chapter.
  • - Docker Engine (latest version)
  • - Kubernetes (version 1.01)
Linux is required to support 64-bit software. We have used an Amazon EC2 instance created from AMI Ubuntu Server 14.04 LTS (HVM), SSD Volume Type - ami-d05e75b8. An Amazon EC2 instance based on the Ubuntu AMI is shown in Figure .
Figure 1-1 Amazon EC2 Instance Based on Ubuntu AMI A different Ubuntu - photo 1
Figure 1-1.
Amazon EC2 Instance Based on Ubuntu AMI
A different Ubuntu version may be used if the requirement of a 64-bit architecture is met. The minimum kernel version requirement is 3.10. The kernel version may be verified with the following command.
uname r
The Public IP would be different for different users. Multiple Amazon EC2 instances and therefore multiple Public IP addresses have been used in the book as a different Public IP is assigned each time an Amazon EC2 instance is started. The Private IP Address of an Amazon EC2 instance is the same across restarts. SSH into an Ubuntu instance on Amazon EC2 (Public IP is 52.91.80.173 in following command).
ssh -i "docker.pem" ubuntu@52.91.80.173
The Amazon EC2 instance gets logged in as shown in Figure . The command prompt becomes ubuntu@ip-172-30-1-190 instead of root@localhost. Ip 172.30.1.190 is the Private IP of the Amazon EC2 instance and would also be different for different users.
Figure 1-2 Loging into an Amazon EC2 instance In the next section we shall - photo 2
Figure 1-2.
Loging into an Amazon EC2 instance
In the next section we shall install Docker on Ubuntu hosted on an Amazon EC2 instance.
Installing Docker
Ubuntu uses apt for package management; apt stores a list of repositories in the /etc/apt/sources.list list. Dockers apt repository is kept in the /etc/apt/sources.list.d/docker.list file. First, add the new repository key (gpg key) for the Docker repository with the following command.
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
The new gpg key gets added as shown in Figure .
Figure 1-3 Adding a new gpg key Next update the apt sources for the Docker - photo 3
Figure 1-3.
Adding a new gpg key
Next, update the apt sources for the Docker repository in the /etc/apt/sources.list.d/docker.list file based on the Ubuntu distribution, which may be found with the following command.
lsb_release a
For Ubuntu Trusty, add the following line to the /etc/apt/sources.list.d/docker.list file; the docker.list file may be opened with sudo vi /etc/apt/sources.list.d/docker.list.
deb https://apt.dockerproject.org/repo ubuntu-trusty main
Create the /etc/apt/sources.list.d/docker.list file if the file does not already exist. The updated file is shown in Figure . Save the file with the :wq command if opened in the vi editor.
Figure 1-4 Creating the dockerlist file The entry to be added would be - photo 4
Figure 1-4.
Creating the docker.list file
The entry to be added would be different for different Ubuntu distributions as listed in Table .
Table 1-1.
The docker.list file Entry Based on Ubuntu Distribution
Ubuntu Distribution
Entry
Ubuntu Precise 12.04 (LTS)
deb https://apt.dockerproject.org/repo ubuntu-precise main
Ubuntu Trusty 14.04 (LTS)
deb https://apt.dockerproject.org/repo ubuntu-trusty main
Ubuntu Vivid 15.04
deb https://apt.dockerproject.org/repo ubuntu-vivid main
Run the following commands after updating the /etc/apt/sources.list.d/docker.list file to update the apt package index.
sudo apt-get update
Apt package index gets updated as shown in Figure .
Figure 1-5 Updating Ubuntu Package List Purge the old repository if it - photo 5
Figure 1-5.
Updating Ubuntu Package List
Purge the old repository if it exists with the following command.
sudo apt-get purge lxc-docker*
The output in Figure indicates that the old packages lxc-docker and lxc-docker-virtual-package are not installed and therefore not removed.
Figure 1-6 Purging the Old Repository Run the following command to verify - photo 6
Figure 1-6.
Purging the Old Repository
Run the following command to verify that apt is pulling from the updated repository for Docker.
sudo apt-cache policy docker-engine
The output in Figure indicates that the new repository ubuntu-trusty as specified in the /etc/apt/sources.list.d/docker.list is being used.
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Kubernetes Microservices with Docker»

Look at similar books to Kubernetes Microservices with Docker. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Kubernetes Microservices with Docker»

Discussion, reviews of the book Kubernetes Microservices with Docker and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.