68 lines
1.5 KiB
Nix
68 lines
1.5 KiB
Nix
{
|
|
kubernetes.resources = {
|
|
configMaps.syncthing.data = {
|
|
PUID = "33";
|
|
PGID = "33";
|
|
TZ = "Europe/Amsterdam";
|
|
};
|
|
|
|
deployments.syncthing = {
|
|
metadata.labels.app = "syncthing";
|
|
|
|
spec = {
|
|
selector.matchLabels.app = "syncthing";
|
|
|
|
template = {
|
|
metadata.labels.app = "syncthing";
|
|
|
|
spec = {
|
|
containers.syncthing = {
|
|
image = "lscr.io/linuxserver/syncthing:1.23.6";
|
|
envFrom = [{ configMapRef.name = "syncthing"; }];
|
|
ports.web.containerPort = 8384;
|
|
|
|
volumeMounts = [
|
|
{
|
|
name = "config";
|
|
mountPath = "/config";
|
|
}
|
|
{
|
|
name = "nextcloud-data";
|
|
mountPath = "/data";
|
|
}
|
|
];
|
|
};
|
|
|
|
volumes = {
|
|
config.persistentVolumeClaim.claimName = "syncthing";
|
|
nextcloud-data.persistentVolumeClaim.claimName = "nextcloud";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
services.syncthing.spec = {
|
|
selector.app = "syncthing";
|
|
|
|
ports.web = {
|
|
port = 80;
|
|
targetPort = "web";
|
|
};
|
|
};
|
|
};
|
|
|
|
lab = {
|
|
nfsVolumes.syncthing.path = "syncthing/config";
|
|
|
|
ingresses.syncthing = {
|
|
host = "sync.kun.is";
|
|
entrypoint = "localsecure";
|
|
|
|
service = {
|
|
name = "syncthing";
|
|
portName = "web";
|
|
};
|
|
};
|
|
};
|
|
}
|