Skip to content

Operator Framework and Ansible Hands-on Workshop

Introduction

In this workshop you will automate the deployment of an Hello World! application to OpenShift, with an Hello World operator, implemented with Ansible.

Your first simple operator will do for you the automates of the creation of :

  • a deployment
  • a service
  • a route
    • Therefor it needs to collect the application domain information

Your operator will have some of the capabilities in Level 1 as you see in the image below.

Note: The image resource you can find on the Operator Framework: What? page.

This is the definition for Level 1 from the Operator Framework

Features

Installation Of The Workload

  • Operator deploys an Operand or configures off-cluster resources

  • Operator waits for managed resources to reach a healthy state

  • Operator conveys readiness of application or managed resources to the user leveraging the status block of the Custom Resource

Configuration Of The Workload

  • Operator provides configuration via the spec section of the Custom Resource

  • Operator reconciles configuration and updates to it with the status of the managed resources

Objectives

This workshop will show you how to setup a development environment and deploy your first Operator written in Ansible.

Upon completing this workshop you will learn the following:

Estimated time and level

Time Level
60 min beginner to intermediate

Note: The installation of all prerequistes isn't included.

Prerequisites

  • A fedora 30 or higher system (not a container image) with access to the Internet
  • OpenShift 4.x Cluster environment and a cluster admin account

It would be good, if you are basicly familar with ...

Technology/Frameworks Used

Additional information:

Following tools are needed to be installed on your local machine:

Credits

Additional resources

YouTube "How it does work?":

Operator Resources:

Internal OperatorHub in your RedHat OpenShift cluster.