joyrex2001 / quarkus-crddemo

Example project for the article "Spelen met de Kubernetes API" as published in the dutch Java magazine 4 (2020).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quarkus Kubernetes CRD demo

This is an example project demonstrating how to extend the Kubernetes API with a new resource "Broadcasts" and use the fabric8-kubernetes-client in combination with Quarkus to display the contents of this resource in a webpage using websockets.

Before you start, add the crd that is available in the manifests folder to your k8s cluster. The example.yaml contains a couple of usage examples of this crd for easy testing. After that you can run the service and visit the webpage hosted on port 8080.

kubectl apply -f manifests/crd.yaml
kubectl apply -f manifests/example.yaml
mvn quarkus:dev

See also:

About

Example project for the article "Spelen met de Kubernetes API" as published in the dutch Java magazine 4 (2020).


Languages

Language:Java 83.2%Language:HTML 16.8%