Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Introduction to DevOps with Kubernetes
  • Table Of Contents Toc
Introduction to DevOps with Kubernetes

Introduction to DevOps with Kubernetes

By : Onur Yılmaz , Süleyman Akba≈ü
5 (1)
close
close
Introduction to DevOps with Kubernetes

Introduction to DevOps with Kubernetes

5 (1)
By: Onur Yılmaz , Süleyman Akba≈ü

Overview of this book

Kubernetes and DevOps are the two pillars that can keep your business at the top by ensuring high performance of your IT infrastructure. Introduction to DevOps with Kubernetes will help you develop the skills you need to improve your DevOps with the power of Kubernetes. The book begins with an overview of Kubernetes primitives and DevOps concepts. You'll understand how Kubernetes can assist you with overcoming a wide range of real-world operation challenges. You will get to grips with creating and upgrading a cluster, and then learn how to deploy, update, and scale an application on Kubernetes. As you advance through the chapters, you’ll be able to monitor an application by setting up a pod failure alert on Prometheus. The book will also guide you in configuring Alertmanager to send alerts to the Slack channel and trace down a problem on the application using kubectl commands. By the end of this book, you’ll be able to manage the lifecycle of simple to complex applications on Kubernetes with confidence.
Table of Contents (11 chapters)
close
close

Chapter 3: Introduction to Kubernetes

Activity 3: Installing a WordPress Blog and Database on Kubernetes

Solution:

Perform the following steps to complete this activity:

  1. Create a two-container stateful set definition inside the wordpress-database.yaml file with the following specifications:

    The nme should be wordpress-database and the replica count should be set to 1. The database container should have the name of database and use the container image of mysql:5.7. Publish the container to port 3306 and mount the data volume to the /var/lib/mysql path. In addition, set the following environment variables:

    Figure 3.24: Environment variables

    Create a blog container with the name blog using the latest WordPress container image and publish the container to port 80. In addition, set the following environment variables:

    Figure 3.25: Environment variables

    Include a volume claim with the name data and 1GB storage.

    The stateful set description as YAML for the specification is as follows...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Introduction to DevOps with Kubernetes
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon