feat(traefik): Expose traefik dashboard on Tailscale

This commit is contained in:
Pim Kunis 2024-07-24 22:21:47 +02:00
parent fd70b4d934
commit 5398db801c

View file

@ -30,7 +30,8 @@
};
};
services.esrom.spec = {
services = {
esrom.spec = {
type = "ExternalName";
externalName = "esrom.dmz";
@ -39,19 +40,23 @@
targetPort = 80;
};
};
traefik-dashboard.spec = {
selector = {
"app.kubernetes.io/name" = "traefik";
"app.kubernetes.io/instance" = "traefik-kube-system";
};
lab.ingresses = {
ek2024 = {
host = "ek2024.kun.is";
service = {
name = "ek2024";
portName = "web";
ports.web = {
port = 80;
targetPort = "traefik";
};
};
};
};
esrom = {
lab = {
ingresses.esrom = {
host = "esrom.kun.is";
service = {
@ -59,5 +64,10 @@
portName = "web";
};
};
tailscaleIngresses.tailscale = {
host = "traefik";
service.name = "traefik-dashboard";
};
};
}