An open API service indexing awesome lists of open source software.

https://github.com/joyrex2001/quarkus-crddemo

Example project for the article "Spelen met de Kubernetes API" as published in the dutch Java magazine 4 (2020).
https://github.com/joyrex2001/quarkus-crddemo

Last synced: 9 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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.

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

See also:
* https://quarkus.io
* https://github.com/fabric8io/kubernetes-client
* https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/