{ kubernetes.resources = { deployments.syncthing.spec = { selector.matchLabels.app = "syncthing"; template = { metadata.labels.app = "syncthing"; spec = { containers.syncthing = { image = "lscr.io/linuxserver/syncthing:1.23.6"; ports.web.containerPort = 8384; env = { PUID.value = "33"; PGID.value = "33"; TZ.value = "Europe/Amsterdam"; }; volumeMounts = [ { name = "config"; mountPath = "/config"; } { name = "music"; mountPath = "/music"; } ]; }; volumes = { config.persistentVolumeClaim.claimName = "config"; music.persistentVolumeClaim.claimName = "music"; }; securityContext = { fsGroup = 33; fsGroupChangePolicy = "OnRootMismatch"; }; }; }; }; services.syncthing.spec = { selector.app = "syncthing"; ports.web = { port = 80; targetPort = "web"; }; }; persistentVolumeClaims.music.spec = { accessModes = [ "ReadWriteMany" ]; storageClassName = ""; resources.requests.storage = "1Mi"; volumeName = "music-syncthing"; }; }; lab = { ingresses.syncthing = { host = "sync.kun.is"; entrypoint = "localsecure"; service = { name = "syncthing"; portName = "web"; }; }; longhorn.persistentVolumeClaim.config = { volumeName = "syncthing"; storage = "400Mi"; }; }; }