Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Kubernetes on AWS
Kubernetes on AWS

Kubernetes on AWS: Deploy and manage production-ready Kubernetes clusters on AWS

eBook
€8.99 €23.99
Paperback
€29.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Kubernetes on AWS

Start Your Engines

In this chapter, we will be taking our first steps with Kubernetes. You will learn how to start a cluster suitable for learning and development use on your own workstation, and will begin to learn how to use Kubernetes itself. In this chapter, we will do the following:

  • Learn how to install and use Minikube to run Kubernetes
  • Build a simple application that runs in a Docker container
  • Use Kubernetes to run simple applications

Your own Kubernetes

Minikube is a tool that makes it easy to run a simple Kubernetes cluster on your workstation. It is very useful, as it allows you to test your applications and configurations locally and quickly iterate on your applications without needing access to a larger cluster. For our purposes, it is the ideal tool to get some practical hands-on experience with Kubernetes. It is very simple to install and configure, as you will discover.

Installation

You will need a few tools to get Kubernetes running on your workstation:

  • kubectl is the Kubernetes command-line interface. Throughout this book, you will be using it to interact with Kubernetes.
In the Kubernetes community, no one agrees how to pronounce kubectl.

Try...

Building and launching a simple application on Minikube

Let's take our first steps to building a simple application on our local minikube cluster and getting it to run.

The first thing we need to do is build a container image for our application. The simplest way to do this is to create a Dockerfile and use the docker build command.

Use your favorite text editor to create a file called Dockerfile with the following content:

Dockerfile 
FROM nginx:alpine 
RUN echo "<h1>Hello World</h1>" > /usr/share/nginx/html/index.html 

To build the application, first ensure your Docker client is pointing to the Docker instance inside the Minikube VM by running:

    eval $(minikube docker-env)

Then use Docker to build the image. In this case, we are tagging the image hello, but you could use any tag you wanted:

    docker build -t hello:v1 .

Kubectl has a run command...

Summary

Well done for making it this far. If you have followed along with the examples in this chapter, you should be well on your way to learning how to use Kubernetes to manage your own applications. You should be able to do the following:

  • Use Minikube to set up a single node Kubernetes cluster on your workstation
  • Build a simple application container using Docker
  • Run a pod on your Minikube cluster
  • Declare a Kubernetes configuration using a Manifest file, so you can reproduce your setup
  • Set up a service so you can access your application
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Leverage the power of Kubernetes on AWS to deploy highly scalable applications
  • Provision Kubernetes clusters on Amazon EC2 environments
  • Implement best practices to improve efficiency and security of Kubernetes on the cloud

Description

Docker containers promise to radicalize the way developers and operations build, deploy, and manage applications running on the cloud. Kubernetes provides the orchestration tools you need to realize that promise in production. Kubernetes on AWS guides you in deploying a production-ready Kubernetes cluster on the AWS platform. You will then discover how to utilize the power of Kubernetes, which is one of the fastest growing platforms for production-based container orchestration, to manage and update your applications. Kubernetes is becoming the go-to choice for production-grade deployments of cloud-native applications. This book covers Kubernetes from first principles. You will start by learning about Kubernetes' powerful abstractions - Pods and Services - that make managing container deployments easy. This will be followed by a guided tour through setting up a production-ready Kubernetes cluster on AWS, while learning the techniques you need to successfully deploy and manage your own applications. By the end of the book, you will have gained plenty of hands-on experience with Kubernetes on Amazon Web Services. You will also have picked up some tips on deploying and managing applications, keeping your cluster and applications secure, and ensuring that your whole system is reliable and resilient to failure.

Who is this book for?

If you’re a cloud engineer, cloud solution provider, sysadmin, site reliability engineer, or developer with an interest in DevOps and are looking for an extensive guide to running Kubernetes in the AWS environment, this book is for you. Though any previous knowledge of Kubernetes is not expected, some experience with Linux and Docker containers would be a bonus.

What you will learn

  • Learn how to provision a production-ready Kubernetes cluster on AWS
  • Deploy your own applications to Kubernetes with Helm
  • Discover strategies for troubleshooting your cluster and know where to find help with issues
  • Explore the best ways to monitor your cluster and the applications running on it
  • Supercharge your cluster by integrating it with the tools provided by the AWS platform
  • Architect your cluster for high availability

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 30, 2018
Length: 270 pages
Edition : 1st
Language : English
ISBN-13 : 9781788392358
Vendor :
Google
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Nov 30, 2018
Length: 270 pages
Edition : 1st
Language : English
ISBN-13 : 9781788392358
Vendor :
Google
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 103.97
Getting Started with Kubernetes
€36.99
Kubernetes on AWS
€29.99
AWS Certified Solutions Architect ??? Associate Guide
€36.99
Total 103.97 Stars icon
Banner background image

Table of Contents

11 Chapters
Google's Infrastructure for the Rest of Us Chevron down icon Chevron up icon
Start Your Engines Chevron down icon Chevron up icon
Reach for the Cloud Chevron down icon Chevron up icon
Managing Change in Your Applications Chevron down icon Chevron up icon
Managing Complex Applications with Helm Chevron down icon Chevron up icon
Planning for Production Chevron down icon Chevron up icon
A Production-Ready Cluster Chevron down icon Chevron up icon
Sorry My App Ate the Cluster Chevron down icon Chevron up icon
Storing State Chevron down icon Chevron up icon
Managing Container Images Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
(3 Ratings)
5 star 0%
4 star 0%
3 star 0%
2 star 0%
1 star 100%
David N. Aug 17, 2023
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
This book is from 2018 and really doesn't even cover the AWS implementations of Kubernetes (EKS / ECS). This book topically covers Kubernetes but does not do so in any way better than books or 'bibles' on K8S. Buyer beware and read the Table of Contents before purchasing this book. It really should be titled Kubernetes with ITIL operations. Very little coverage of EKS in this book.
Amazon Verified review Amazon
Martin B. Mar 23, 2021
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
This is supposed to be covering concepts of Kubernetes on the AWS Cloud however instead of using AWS EKS it's setting up EC2 instances to run the environment, being that the book was published in Nov 2018 when EKS publicly launched in July 2018 and was announced at re:Invent 2017 it's a joke that Packt published this and more so that it is still being sold.
Amazon Verified review Amazon
Nick from Chicago Aug 27, 2020
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
Starting with chapter 2, the exercises do not work, presumably they worked when the book was printed, but in a year in a half a lot has changed.Giving up on chapter 2 I went on to chapter 3, where the problems continued. Rather than using a cloudformation template, the author has you type dozens of long commands, he has them so you can't see the output, so its hard to tell if they worked or not, when I got to the launch bastion, I see many of the variables were not set, and the VPC and subnets were not created.Additionally the github repo does not have any of this code, and it does not appear to have been updated since the book was printed.Furthermore, 2 of the chapters are not in the book and it directs you to a PDF.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.