2024-03-28 20:44:21 +00:00
|
|
|
{
|
|
|
|
kubernetes.resources = {
|
|
|
|
configMaps.syncthing.data = {
|
|
|
|
PUID = "33";
|
|
|
|
PGID = "33";
|
|
|
|
TZ = "Europe/Amsterdam";
|
|
|
|
};
|
|
|
|
|
2024-05-23 19:34:29 +00:00
|
|
|
deployments.syncthing = {
|
|
|
|
metadata.labels.app = "syncthing";
|
2024-03-28 20:44:21 +00:00
|
|
|
|
2024-05-23 19:34:29 +00:00
|
|
|
spec = {
|
|
|
|
selector.matchLabels.app = "syncthing";
|
2024-03-28 20:44:21 +00:00
|
|
|
|
2024-05-23 19:34:29 +00:00
|
|
|
template = {
|
|
|
|
metadata.labels.app = "syncthing";
|
2024-03-28 20:44:21 +00:00
|
|
|
|
2024-05-23 19:34:29 +00:00
|
|
|
spec = {
|
|
|
|
containers.syncthing = {
|
|
|
|
image = "lscr.io/linuxserver/syncthing:1.23.6";
|
|
|
|
envFrom = [{ configMapRef.name = "syncthing"; }];
|
|
|
|
ports.web.containerPort = 8384;
|
2024-03-28 20:44:21 +00:00
|
|
|
|
2024-05-23 19:34:29 +00:00
|
|
|
volumeMounts = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "music";
|
|
|
|
mountPath = "/music";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-03-28 20:44:21 +00:00
|
|
|
|
2024-05-23 19:34:29 +00:00
|
|
|
volumes = {
|
|
|
|
config.persistentVolumeClaim.claimName = "syncthing";
|
|
|
|
music.persistentVolumeClaim.claimName = "music";
|
|
|
|
};
|
|
|
|
|
|
|
|
securityContext = {
|
|
|
|
fsGroup = 33;
|
|
|
|
fsGroupChangePolicy = "OnRootMismatch";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-03-28 20:44:21 +00:00
|
|
|
|
|
|
|
services.syncthing.spec = {
|
|
|
|
selector.app = "syncthing";
|
|
|
|
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.web = {
|
2024-03-28 20:44:21 +00:00
|
|
|
port = 80;
|
2024-04-14 19:43:31 +00:00
|
|
|
targetPort = "web";
|
|
|
|
};
|
2024-03-28 20:44:21 +00:00
|
|
|
};
|
2024-04-14 21:11:19 +00:00
|
|
|
};
|
2024-03-28 20:44:21 +00:00
|
|
|
|
2024-04-14 21:34:54 +00:00
|
|
|
lab = {
|
|
|
|
ingresses.syncthing = {
|
|
|
|
host = "sync.kun.is";
|
|
|
|
entrypoint = "localsecure";
|
|
|
|
|
|
|
|
service = {
|
|
|
|
name = "syncthing";
|
|
|
|
portName = "web";
|
|
|
|
};
|
2024-04-08 18:56:24 +00:00
|
|
|
};
|
2024-03-28 20:44:21 +00:00
|
|
|
};
|
|
|
|
}
|