Forecastle provides a handy dashboard to show all the applications running on Kubernetes exposed through an Ingress.
- Kubernetes >=
1.20.0
- Kustomize >=
v3.5.3
- Forecastle image:
docker.io/stakater/forecastle:v1.0.145
- Forecastle repo: https://github.com/stakater/Forecastle
Forecastle is deployed with the following configuration:
- watch every namespace for ingresses
- CRD support disabled
- unprivileged Pod
- hardened RBAC
- constrained resources
Forecastle can be deployed by running the following command at the root of the project:
kustomize build katalog/forecastle | kubectl apply -f -
Once deployed, to have an ingress show up in the dashboard provided by Forecastle run:
kubectl annotate ingress <YOUR_INGRESS> "forecastle.stakater.com/expose=true" --overwrite
You can now create custom resources to add apps to forecastle dynamically. This decouples the application configuration from Ingresses as well as forecastle config. You can create the custom resource ForecastleApp
like the following:
apiVersion: forecastle.stakater.com/v1alpha1
kind: ForecastleApp
metadata:
name: sighup-example-app
namespace: ingress-nginx
labels:
app: forecastle
spec:
name: sighup
group: dev
icon: https://raw.githubusercontent.com/sighupio/fury-distribution/main/docs/assets/fury-epta-white.png
url: https://sighup.io/
networkRestricted: false
properties:
Version: "1"
Forecastle supports discovering URL's ForecastleApp CRD from the following resources:
- Ingress
The kubernetes.io/ingress.class
annotation is required by Forecastle to have the ingress displayed in the dashboard, therefore you need to add such annotation to all your ingresses even when using a single ingress controller.