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).
- Host: GitHub
- URL: https://github.com/joyrex2001/quarkus-crddemo
- Owner: joyrex2001
- Created: 2020-07-17T20:03:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-17T20:03:52.000Z (almost 6 years ago)
- Last Synced: 2025-03-16T12:45:21.057Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/