feat(syncthing): Only expose on tailnet

This commit is contained in:
Pim Kunis 2024-07-21 16:50:52 +02:00
parent 6f3a7a3c44
commit 8fc6961362

View file

@ -1,15 +1,29 @@
{
kubernetes.resources = {
serviceAccounts.syncthing = { };
deployments.syncthing.spec = {
selector.matchLabels.app = "syncthing";
strategy = {
type = "RollingUpdate";
rollingUpdate = {
maxSurge = 0;
maxUnavailable = 1;
};
};
template = {
metadata.labels.app = "syncthing";
spec = {
serviceAccountName = "syncthing";
containers.syncthing = {
image = "lscr.io/linuxserver/syncthing:1.23.6";
ports.web.containerPort = 8384;
imagePullPolicy = "Always";
env = {
PUID.value = "33";
@ -60,19 +74,15 @@
};
lab = {
ingresses.syncthing = {
host = "sync.kun.is";
entrypoint = "localsecure";
service = {
name = "syncthing";
portName = "web";
};
};
longhorn.persistentVolumeClaim.config = {
volumeName = "syncthing";
storage = "400Mi";
};
tailscale = {
enable = true;
allowedServiceAccounts = [ "syncthing" ];
deploymentsWithSidecarContainers.syncthing.hostName = "syncthing";
};
};
}