Skip to content

itamar-marom/abstract-workload

Repository files navigation

abstract-workload

This is an example of operator development using the Kubebuilder operator framework.
Detailed explanation of this project can be found here

AbstractWorkload - is a Kubernetes CRD which serve as an abstraction for stateless and stateful applications.

API reference:

apiVersion: examples.itamar.marom/v1alpha1
kind: AbstractWorkload
metadata:
  name: 
spec:
  containerImage: # Container Image to deploy
  replicas: # Number of replicas to deploy
  workloadType: # stateful / stateless

Examples

Stateless

apiVersion: examples.itamar.marom/v1alpha1
kind: AbstractWorkload
metadata:
  name: test-stateless
spec:
  containerImage: "nginx:latest"
  replicas: 2
  workloadType: stateless

Stateful

apiVersion: examples.itamar.marom/v1alpha1
kind: AbstractWorkload
metadata:
  name: test-stateful
spec:
  containerImage: "nginx:latest"
  replicas: 1
  workloadType: stateful

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published