Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

GrahamDumpleton-abandoned/lab-dropper-operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lab - Dropper Operator

This workshop provides a demo of a Kubernetes operator implemented using the Python operator framework kopf.

Deploying the Spawner

To deploy the spawner for the workshop, first clone this Git repository to your own machine.

Next create a project in OpenShift into which the workshop is to be deployed.

oc new-project workshops

From within the top level of the Git repository, now run:

./.workshop/scripts/deploy-spawner.sh

The name of the deployment will be lab-dropper-operator.

You can determine the hostname for the URL to access the workshop by running:

oc get route lab-dropper-operator

Building the Workshop

The deployment created above will use an image for an empty workshop.

To deploy this workshop content, or make changes to the workshop content and test them, edit the files in the Git repository and then run:

./.workshop/scripts/build-workshop.sh

This will replace the existing image used by the active deployment.

If you are running an existing instance of the workshop, from your web browser select "Restart Workshop" from the menu top right of the workshop environment dashboard.

When you are happy with your changes, push them back to the remote Git repository.

If you need to change the RBAC definitions, or what resources are created when a project is created, change the definitions in the templates directory. You can then re-run:

./.workshop/scripts/deploy-spawner.sh

and it will update the active definitions.

Note that if you do this, you will need to re-run:

./.workshop/scripts/build-workshop.sh

to have any local content changes be used once again as it will revert back to using the image on quay.io.

Deleting the Workshop

To delete the spawner and any active sessions, including projects, run:

./.workshop/scripts/delete-spawner.sh

To delete the build configuration for the workshop image, run:

./.workshop/scripts/delete-workshop.sh

To delete special resources for CRDs and cluster roles for the workshop, run:

./.workshop/scripts/delete-resources.sh

About

Demo workshop on creating a Kubernetes operator with Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published