pawelmalak / flame

Flame is self-hosted startpage for your server. Easily manage your apps and bookmarks with built-in editors.
MIT License
5.23k stars 254 forks source link

[HELP] Where set k8s annotation ? #367

Open m4dm4rtig4n opened 2 years ago

m4dm4rtig4n commented 2 years ago

Hello, I try to use k8s discovery but i don't found where i must set annotation :

m4dm4rtig4n commented 2 years ago

I have found in your code : https://github.com/pawelmalak/flame/blob/446b4095f6bb06e0f878efb4ac1f990a5ae7d39c/controllers/apps/docker/useKubernetes.js#L35

It's possible to scan IngressRoute in addition to ingress ?

Umh, it seems that Flame can't connect to the k8s API :

[2022-05-30 12:47:12.444 UTC+0] [ERROR] Can't connect to the Kubernetes API 
atropos112 commented 2 years ago

I expected for flame to connect to api via kubernetes.default.svc, as advised by kubernetes here but I am getting the same issue.

clanktron commented 2 years ago

Using the manifest files in the k8s directory worked for me. I also think adding support for ingressroute is a good idea.

p4block commented 2 years ago

Same here. Aside from not claiming a volume for persistence and needing to manually apply them to the same namespace, the end result is a working flame. It scans annotations added to Ingress objects no problem.

But I also use Traefik so all my services use IngressRoutes. Woops.

clanktron commented 2 years ago

If anyone is looking to add that functionality it might be better to just build it for the k8s api gateway since that seems to be a more standardized replacement for what ingressroutes were designed for.

m4dm4rtig4n commented 2 years ago

Using the manifest files in the k8s directory worked for me. I also think adding support for ingressroute is a good idea.

Which file did you use? shokohsc or other ?

m4dm4rtig4n commented 2 years ago

For information, i have found chart working with k8s integration : https://artifacthub.io/packages/helm/rlex/flame

And i have create issue in TrueCharts project for flame : https://github.com/truecharts/charts/issues/3392 (An up is welcome :))

clanktron commented 2 years ago

I used the files in the k8s/base directory with some modifications to add persistence. I would check if ur rbac is configured properly.