Categorygithub.com/Education-Orga/traefik-operator
repository
0.0.0-20240228111651-7d14a1000dcb
Repository: https://github.com/education-orga/traefik-operator.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

traefik-operator

This repository contains the source code of an operator for orchestrating Traefik. The project is resulted by a design research due to a master thesis.

Design

1. Project Setup

kubebuilder init --domain mh.edu.com --repo github.com/Education-Orga/traefik-operator

2. API Creation

# kind TraefikInstance
kubebuilder create api --group traefik --version v1alpha1 --kind TraefikInstance

3. Business Logic

  • CR Development of kind TraefikInstance
  • Custom Controller Logic /pkg/deployment/deploy.go
  • Reconcile: integration of business logic /internal/traefikinstance_controller.go

Testing

xxx

Run the operator

1. Local outside of a cluster

Clone the repository and run:

make run

2. Docker deployment inside of a cluster

Clone the repository and run:

# build the docker image 
make docker-build IMG=<image-name>

# push the docker image 
make docker-push IMG=<image-name>

# deploy the operator to the cluster
make deploy

# undeploy the operator to the cluster
make undeploy