Book Image

Introduction to DevOps with Kubernetes

By : Onur Yılmaz, Süleyman Akba≈ü
Book Image

Introduction to DevOps with Kubernetes

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)

Chapter 9: Monitoring Applications in Kubernetes

Activity 10: Setting Up Alert Notifications in Kubernetes

Solution:

Perform the following steps to complete this activity:

  1. Create an Incoming Webhook for the devops channel. Click on your username and then click on Customize Slack:
    Figure 9.43: Customizing Slack to add Incoming Webhooks
  2. On the next page, click on Configure Apps, which will direct you to the following screen. Here, search for Incoming Webhooks, as follows:
    Figure 9.44: Searching for Incoming Webhooks
  3. Click on Add Configuration, as follows:
    Figure 9.45: Adding Incoming Webhooks configurations
  4. Select the channel that you want to set for the alerting notifications, and then click on Add Incoming WebHooks integration:
    Figure 9.46: Adding Incoming Webhooks to the devops channel
  5. From the resulting page, note down the Webhook URL that will be used to configure Alertmanager:
    Figure 9.47: The generated Webhook URL

    If you can see the Webhook URL already...