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