NashTech Blog

Setting Up Keptn: A Step-by-Step Guide

In the evolving landscape of DevOps and cloud-native applications, Keptn has emerged as a powerful tool for automating continuous delivery and operations. If you’re ready to harness the its power, the first step is setting it up in your environment. This guide will walk you through the process of installing, ensuring you’re ready to leverage its capabilities.

Prerequisites

Before diving into the installation, make sure you have the following:

  • A Kubernetes cluster (version 1.19 or later).
  • Helm CLI (version 3.0 or later).
  • kubectl CLI (version 1.19 or later).
  • A machine with Docker installed (for local testing).

Step 1: Install the CLI

The CLI is your primary interface for interacting with Keptn. To install it, run the following command:

$ curl -sL https://get.keptn.sh | sudo -E bash

Verify the installation by running:

$ keptn version

This should return the version of CLI installed.

Step 2: Install Keptn on Kubernetes

With the Keptn CLI installed, you can now install it on your Kubernetes cluster. Run the following command to install it using Helm:

$ keptn install --platform=kubernetes

This command deploys Keptn and its services into your cluster. The installation might take a few minutes as it sets up various components, including the control plane, shipyard controller, and event broker.

Step 3: Expose the Keptn Bridge

Keptn comes with a web UI called Keptn Bridge, where you can monitor your projects, services, and environments. To expose the Bridge, run:

$ kubectl port-forward svc/keptn-bridge -n keptn 8080:8080

You can now access the Bridge by navigating to http://localhost:8080

Step 4: Verify the Installation

To ensure that everything is set up correctly, you can verify the installation by running:

$ keptn status

This command should confirm that all components are running as expected.

Conclusion

Setting up Keptn is the first step toward streamlining your cloud-native operations. By following the steps outlined in this guide, you now have a fully operational instance ready to handle automated delivery, operations, and remediation tasks. As you continue to explore it, you’ll discover its powerful features that can help you achieve faster, more reliable software delivery. With it installed, you’re well on your way to automating complex processes and improving the quality of your deployments.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top