Operators with Ansible

Using Ansible as a base can help you get off the ground faster with Kubernetes operators, allowing you to better manage and automate your Kubernetes clusters and scale containerized applications when you need it most. 

Why build Operators with Ansible? 

Newcomers to writing Kubernetes operators will need to learn a new language because Operators are usually written in Go by software developers that are highly familiar with Kubernetes. Ansible® is a first class citizen in the Operator SDK. Ansible-based Operators provide a lower barrier to entry, faster iterations, and the power of Ansible and its ecosystem. Put more simply, an Operator is designed to watch and respond to the resources in your cluster to enable your application to run as desired. After the Operator SDK is invoked, it’s Ansible code as opposed to a common approach of handling these events with Go code.

Ansible fits naturally into a Kubernetes Environment

Both use YAML to describe the desired state of the world. Both Ansible and OpenShift have vibrant communities working to solve common problems. Combining Ansible and Kubernetes frees up application engineers to minimize the new skill sets required to maximize time to delivery.

The same tried and trusted Ansible tooling lets you Automate and Orchestrate your applications across both new and existing platforms allowing teams to transition without having to learn new skills. With the k8s module, an Ansible user can manage applications on Kubernetes, on existing IT or across both with one simple language.

Get Started

Explore Operators is a home for the Kubernetes community to share Operators. Find an existing Operator or list your own today.

Find or contribute roles Ansible Roles can be the foundation of your Ansible Operators. Ansible Galaxy provides thousands of roles on which to base your Operator. Be inspired by or leverage the Ansible Community to create your Operator.

Ready to dive in? The Ansible Operator SDK Developer Guide is available to get you started writing Ansible-based Kubernetes Operators now.


On demand webinar

Building Kubernetes Operators in an Ansible-native way
Using Ansible frees up application engineers, maximizes time to automate and orchestrate your applications, doing it across new and existing platforms with one simple language.

Watch on demand


Reaching for the stars with Ansible Operator
This post shows you how to use Roles published to Ansible Galaxy as an Operator to manage an application in Kubernetes.

Read more


PodCTL - Enterprise Kubernetes
Learn how operators work with Ansible Playbooks, on and off-platform usage and more.


Listen now

Blog post

Ansible Operator
This post answers what is it, why it matters, and what you can do with Ansible Operators

Read more