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,28 +30,33 @@
}; };
}; };
services.esrom.spec = { services = {
type = "ExternalName"; esrom.spec = {
externalName = "esrom.dmz"; type = "ExternalName";
externalName = "esrom.dmz";
ports.web = { ports.web = {
port = 80; port = 80;
targetPort = 80; targetPort = 80;
};
};
traefik-dashboard.spec = {
selector = {
"app.kubernetes.io/name" = "traefik";
"app.kubernetes.io/instance" = "traefik-kube-system";
};
ports.web = {
port = 80;
targetPort = "traefik";
};
}; };
}; };
}; };
lab.ingresses = { lab = {
ek2024 = { ingresses.esrom = {
host = "ek2024.kun.is";
service = {
name = "ek2024";
portName = "web";
};
};
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";
};
}; };
} }