Blog
  • AI Gateway
  • AI Security
  • AIOps
  • API Security
  • API Gateway
    • API Management
    • API Development
    • API Design
    • Automation
    • Service Mesh
    • Insomnia
  1. Home
  2. Blog
  3. Engineering
  4. Automating Your Developer Pipeline With APIOps (DevOps + GitOps)
Engineering
June 1, 2021
5 min read

Automating Your Developer Pipeline With APIOps (DevOps + GitOps)

Ross McDonald
Topics
API GatewayAPIOpsGitOpsKong KonnectTutorials
Share on Social

More on this topic

eBooks

API Infrastructure: ESB versus API Gateway

eBooks

5 Questions To Ask Your API Gateway Vendor

See Kong in action

Accelerate deployments, reduce vulnerabilities, and gain real-time visibility. 

Get a Demo

Want to learn more about the nuts and bolts of APIOps? Download our eBook, Unlocking the Full Potential of your APIs with APIOps, and learn about the stages of APIOps, get an understanding of the technical assets required, and explore the tooling needed to transform API development and management.

APIOps is the complete end-to-end automation of the API lifecycle, combining DevOps and GitOps. With APIOps, you can enhance your productivity through the reuse of APIs.

In this tutorial, we'll walk you through how to:

  • Set up an end-to-end automation framework in Kong Konnect.
  • Leverage Kong’s declarative configuration tool (decK) to update your API configurations.
  • Tie decK into a CI/CD framework for automating updates in the same way you update and deliver code.
  • Deploy services with a few simple commands using the tools you already use today.
  • Apply policy and govern your services in the same way.

How Does decK Work?

As you can see in the below diagram, decK follows four discrete steps.

  1. Capture the snapshot of our Konnect configuration with the deck konnect dump command.
  2. Update the state file that gets persisted with the changes we want to make. That could be creating a new service, updating a plugin configuration or anything that lives within the Konnect interface.
  3. Compare what we have locally versus what’s inside of Konnect with the deck konnect diff command to ensure that the configurations have not drifted unexpectedly.
  4. Synchronize the changes back into the control plane and push those changes to the data planes (the API gateways) with the deck konnect sync command.

Kong Konnect decK Automation APIOps

Why Should I Use decK?

The goal of decK is to tie the simple building blocks of capture, update, compare and synchronize into your automation pipeline. You can then include these in your existing source control and automation tooling in a machine-readable, easy-to-use format. That way, you'll keep everything within the current change management and governance processes that you already have in place.

Before following the steps below, make sure you have installed decK.

decK Example #1: Change a Plugin Configuration

For a quick example of how you can tie the four steps of decK automation together, let's disable one of our Kong plugins in Konnect.

Kong Konnect Plugins ServiceHub

1. Capture

To capture the current state of our Konnect configuration, run the deck konnect dump command from the terminal or CLI. By default, the system will store the output in YAML format under a konnect.yaml file in your current working directory.

2. Update

Open the konnect.yaml file using a text editor of your choice. Once done, we can see the state that we have persisted inside of the Konnect control plane. Using our example environment, you can see several versions and plugins for the Payment Service.

Kong Service Packages Example

Kong Plugins Settings

Let’s say we want to disable the Bot Detection plugin. Under any plugin, you can find an enabled toggle, which we’ll simply set to false. Save the file.

Kong Plugin Example Disabled

3. Compare

Let’s compare those changes with what’s currently living in Konnect to ensure that the changes we're making are the right ones. For that, we can run deck konnect diff.

Here we can see that we’ve detected one change. Enabled has changed from true to false. We have one updated artifact, which is what we wanted. Now that we've verified the changes, let's update the control plane.

Konnect Plugin Example Konnect Diff

4. Synchronize

To synchronize our changes, we’re going to run deck konnect sync.

The change has persisted.

Kong Plugin Automation Bot Detection

Now, if we refresh the screen in the Konnect interface and go down to our plugins, the Bot Detection plugin is disabled.

Kong plugins bot detection in the Konnect ServiceHub

decK Example #2: Pushing Policy Updates to Kong Konnect

For a more concrete example, I have a GitHub repository configured with GitHub Actions CI/CD functionality. We can use this for pushing policy updates to Konnect.

Kong APIOps starter kit GitHub

Imagine I’m a stakeholder for the payments API service currently deployed. After speaking with our operations team, it turns out the backend service is struggling to keep up with the current request load. They’ve asked that I lower the rate limit to ensure the stability of the backend service. Easy enough.

1. Capture

In Visual Studio Code, we can see the state file from Konnect. The Payment Service is there.

Kong service automation example

Here’s the Rate Limiting plugin.

Kong rate limiting plugin automation

If we expand this, we can view and edit the configuration. It’s currently set to five per second.

Kong Rate Limiting Automation

2. Update

Let’s lower this to two per second.

Kong rate limiting automation

3. Compare

Then, we'll run git diff to compare. We’ve just made a change from five to two.

Kong Konnect git diff

4. Synchronize

As part of my repository settings, we can’t push to the deploy branch specifically, so we’ll have to create a pull request. Run git checkout -b chore/reduce-rate-limit.

Add the changes with git add –all.

Commit them with git commit -m "Reducing rate limit".

Then, push them to GitHub with git push origin chore/reduce-rate-limit.

With our changes pushed, we can open a pull request. But before we do that, let's take a quick look at the GitHub workflow that we defined. We’re using a self-hosted runner. And we're running a deck konnect sync—so a very easy and straightforward pipeline for updating the changes.

Kong Automation with GitHub Actions

We could also include drift detection inside the pipeline to ensure that no changes occurred since we last persisted our state file (for example, another developer didn't make a similar but conflicting change). For this example, we’re going to apply the change via pull request.

Let's deploy our chore/reduce-rate-limit branch.

Kong rate limiting automation setup

Let's create the pull request. In this case, we could have enforced reviewers and different checks. However, since that’s just a testing repository, go ahead and merge.

Kong rate limiting automation GitHub

In the background, our runner is automatically running a series of steps. In this case, just applying that decK configuration.

If we jump to the Konnect interface, we can see the rate limit has now been reduced to two per second, just like we asked.

Kong Konnect Rate Limiting Plugin Config

Back in our service version, we should start to see that the change has been taking effect. Clients should begin seeing 429 errors.

Kong Konnect Vitals traffic status code 429

Conclusion

Kongrats! Now you're ready to get your code to market faster, reuse services more often and be more productive so you can spend more time doing the things you love. No more wasted time waiting for manual API reviews!

You're ready to leverage the decK CLI tool to declaratively capture, compare and apply updates to your Konnect configuration. Doing so could tie back into your CI/CD framework for performing end-to-end updates while keeping your configuration within a source code repository.

That way, you'll be able to leverage your existing change control processes already in place and deliver policy updates and other configuration changes, just like you deliver code. The result will be improved governance, consistency and stability without any hassle.

Start a free trial or contact us if you have any questions as you're getting set up.

Once you've successfully set up APIOps with Konnect decK, you may find these other tutorials helpful:

  • Implementing Client Credentials With Kong and Okta
  • 3 Ways Kong Helps With API Gateway Governance
  • Getting Started with Kong Mesh and Open Policy Agent

Developer agility meets compliance and security. Discover how Kong can help you become an API-first company.

Get a DemoStart for Free
Topics
API GatewayAPIOpsGitOpsKong KonnectTutorials
Share on Social
Ross McDonald

Recommended posts

Federated Deployments with Control Plane Groups

Kong Logo
EngineeringSeptember 24, 2025

In this blog post, we'll talk about the significant challenge of managing and governing a growing number of APIs across multiple teams in an organization — and how Control Plane Groups are a clear solution to avoid the chaos of inconsistent policies

Declan Keane

Unlocking API Analytics for Product Managers

Kong Logo
EngineeringSeptember 9, 2025

Meet Emily. She’s an API product manager at ACME, Inc., an ecommerce company that runs on dozens of APIs. One morning, her team lead asks a simple question: “Who’s our top API consumer, and which of your APIs are causing the most issues right now?”

Christian Heidenreich

Kong Acquires OpenMeter to Bring API and AI Monetization to the Agentic Era

Kong Logo
NewsSeptember 3, 2025

Today, we’re announcing that Kong has acquired  OpenMeter , the open source and SaaS leader for real-time usage metering and billing. OpenMeter’s capabilities will be integrated into Kong Konnect, enabling usage-based pricing, entitlements, and invo

Saju Pillai

Level Up Your Digital Health Platform with Kong, SMART on FHIR, Okta

Kong Logo
EngineeringSeptember 2, 2025

The healthcare industry is buzzing about FHIR (Fast Healthcare Interoperability Resources). Pronounced “fire,” this widely adopted data standard has been revolutionizing how healthcare information is exchanged. But building a truly modern, secure, a

Biswa Mohanty

Guide to API Testing: Understanding the Basics

Kong Logo
EngineeringSeptember 1, 2025

Behind every smooth user experience is a maze of APIs quietly handling requests, responses, and data flows. This makes APIs critical connectors that enable applications to communicate and share data seamlessly. When these vital conduits fail, the

Adam Bauman

Announcing terraform-provider-konnect v3

Kong Logo
Product ReleasesAugust 22, 2025

It’s been almost a year since we released our  Konnect Terraform provider . In that time we’ve seen over 300,000 installs, have 1.7 times as many resources available, and have expanded the provider to include data sources to enable federated managem

Michael Heap

Securing Enterprise AI: OWASP Top 10 LLM Vulnerabilities Guide

Kong Logo
EngineeringJuly 31, 2025

Organizations are going all-in on large language models (LLMs), with research finding 72% anticipate increased LLM spending in the coming year (and about 40% are already investing more than $250,000 USD per year). As enterprises rapidly adopt LLMs

Michael Field

Ready to see Kong in action?

Get a personalized walkthrough of Kong's platform tailored to your architecture, use cases, and scale requirements.

Get a Demo
Powering the API world

Increase developer productivity, security, and performance at scale with the unified platform for API management, AI gateways, service mesh, and ingress controller.

Sign up for Kong newsletter

Platform
Kong KonnectKong GatewayKong AI GatewayKong InsomniaDeveloper PortalGateway ManagerCloud GatewayGet a Demo
Explore More
Open Banking API SolutionsAPI Governance SolutionsIstio API Gateway IntegrationKubernetes API ManagementAPI Gateway: Build vs BuyKong vs PostmanKong vs MuleSoftKong vs Apigee
Documentation
Kong Konnect DocsKong Gateway DocsKong Mesh DocsKong AI GatewayKong Insomnia DocsKong Plugin Hub
Open Source
Kong GatewayKumaInsomniaKong Community
Company
About KongCustomersCareersPressEventsContactPricing
  • Terms•
  • Privacy•
  • Trust and Compliance•
  • © Kong Inc. 2025