2024-04-13 21:25:48 +00:00
|
|
|
{ myLib, ... }: {
|
2024-04-06 14:15:01 +00:00
|
|
|
kubernetes.resources = {
|
2024-04-06 14:45:10 +00:00
|
|
|
configMaps = {
|
|
|
|
jellyfin-env.data.JELLYFIN_PublishedServerUrl = "https://media.kun.is";
|
|
|
|
transmission-env.data = {
|
|
|
|
PUID = "1000";
|
|
|
|
PGID = "1000";
|
|
|
|
TZ = "Europe/Amsterdam";
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
2024-04-06 15:10:34 +00:00
|
|
|
|
|
|
|
jellyseerr-env.data = {
|
|
|
|
LOG_LEVEL = "debug";
|
|
|
|
TZ = "Europe/Amsterdam";
|
|
|
|
};
|
2024-04-06 15:26:31 +00:00
|
|
|
|
|
|
|
radarr-env.data = {
|
|
|
|
PUID = "1000";
|
|
|
|
PGID = "1000";
|
|
|
|
TZ = "Europe/Amsterdam";
|
|
|
|
};
|
2024-04-06 15:36:29 +00:00
|
|
|
|
|
|
|
prowlarr-env.data = {
|
|
|
|
PUID = "1000";
|
|
|
|
PGID = "1000";
|
|
|
|
TZ = "Europe/Amsterdam";
|
|
|
|
};
|
2024-04-06 15:47:49 +00:00
|
|
|
|
|
|
|
sonarr-env.data = {
|
|
|
|
PUID = "1000";
|
|
|
|
PGID = "1000";
|
|
|
|
TZ = "Europe/Amsterdam";
|
|
|
|
};
|
2024-04-06 15:55:27 +00:00
|
|
|
|
|
|
|
bazarr-env.data = {
|
|
|
|
PUID = "1000";
|
|
|
|
PGID = "1000";
|
|
|
|
TZ = "Europe/Amsterdam";
|
|
|
|
};
|
2024-04-06 14:45:10 +00:00
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
|
2024-04-06 14:45:10 +00:00
|
|
|
deployments = {
|
|
|
|
jellyfin = {
|
|
|
|
metadata.labels = {
|
2024-04-06 14:15:01 +00:00
|
|
|
app = "media";
|
|
|
|
component = "jellyfin";
|
|
|
|
};
|
|
|
|
|
2024-04-06 14:45:10 +00:00
|
|
|
spec = {
|
|
|
|
selector.matchLabels = {
|
2024-04-06 14:15:01 +00:00
|
|
|
app = "media";
|
|
|
|
component = "jellyfin";
|
|
|
|
};
|
|
|
|
|
2024-04-06 14:45:10 +00:00
|
|
|
template = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "jellyfin";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
containers.jellyfin = {
|
|
|
|
image = "jellyfin/jellyfin:10.8.13-1";
|
|
|
|
envFrom = [{ configMapRef.name = "jellyfin-env"; }];
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.web.containerPort = 8096;
|
2024-04-06 14:15:01 +00:00
|
|
|
|
2024-04-06 14:45:10 +00:00
|
|
|
volumeMounts = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
mountPath = "/media";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
|
2024-04-14 19:00:15 +00:00
|
|
|
volumes = {
|
|
|
|
config.persistentVolumeClaim.claimName = "jellyfin-config";
|
|
|
|
media.persistentVolumeClaim.claimName = "media";
|
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
2024-04-06 14:45:10 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
transmission = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "transmission";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
selector.matchLabels = {
|
|
|
|
app = "media";
|
|
|
|
component = "transmission";
|
|
|
|
};
|
|
|
|
|
|
|
|
template = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "transmission";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
containers.transmission = {
|
|
|
|
image = "lscr.io/linuxserver/transmission:latest";
|
|
|
|
envFrom = [{ configMapRef.name = "transmission-env"; }];
|
2024-04-06 14:15:01 +00:00
|
|
|
|
2024-04-14 19:43:31 +00:00
|
|
|
ports = {
|
|
|
|
web.containerPort = 9091;
|
|
|
|
bittorrent.containerPort = 31780;
|
|
|
|
};
|
2024-04-06 14:45:10 +00:00
|
|
|
|
|
|
|
volumeMounts = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
mountPath = "/media";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-04-14 19:00:15 +00:00
|
|
|
volumes = {
|
|
|
|
config.persistentVolumeClaim.claimName = "transmission-config";
|
|
|
|
media.persistentVolumeClaim.claimName = "media";
|
|
|
|
};
|
2024-04-06 14:45:10 +00:00
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 15:10:34 +00:00
|
|
|
|
|
|
|
jellyseerr = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "jellyseerr";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
selector.matchLabels = {
|
|
|
|
app = "media";
|
|
|
|
component = "jellyseerr";
|
|
|
|
};
|
|
|
|
|
|
|
|
template = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "jellyseerr";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
2024-04-14 19:00:15 +00:00
|
|
|
volumes.config.persistentVolumeClaim.claimName = "jellyseerr-config";
|
|
|
|
|
2024-04-06 15:10:34 +00:00
|
|
|
containers.jellyseerr = {
|
|
|
|
image = "fallenbagel/jellyseerr:1.7.0";
|
|
|
|
envFrom = [{ configMapRef.name = "jellyseerr-env"; }];
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.web.containerPort = 5055;
|
2024-04-06 15:10:34 +00:00
|
|
|
|
|
|
|
volumeMounts = [{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/app/config";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 15:26:31 +00:00
|
|
|
|
|
|
|
radarr = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "radarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
selector.matchLabels = {
|
|
|
|
app = "media";
|
|
|
|
component = "radarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
template = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "radarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
containers.radarr = {
|
|
|
|
image = "lscr.io/linuxserver/radarr:latest";
|
|
|
|
envFrom = [{ configMapRef.name = "radarr-env"; }];
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.web.containerPort = 7878;
|
2024-04-06 15:26:31 +00:00
|
|
|
|
|
|
|
volumeMounts = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
mountPath = "/media";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-04-14 19:00:15 +00:00
|
|
|
volumes = {
|
|
|
|
config.persistentVolumeClaim.claimName = "radarr-config";
|
|
|
|
media.persistentVolumeClaim.claimName = "media";
|
|
|
|
};
|
2024-04-06 15:26:31 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 15:36:29 +00:00
|
|
|
|
|
|
|
prowlarr = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "prowlarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
selector.matchLabels = {
|
|
|
|
app = "media";
|
|
|
|
component = "prowlarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
template = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "prowlarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
2024-04-14 19:00:15 +00:00
|
|
|
volumes.config.persistentVolumeClaim.claimName = "prowlarr-config";
|
|
|
|
|
2024-04-06 15:36:29 +00:00
|
|
|
containers.prowlarr = {
|
|
|
|
image = "lscr.io/linuxserver/prowlarr:latest";
|
|
|
|
envFrom = [{ configMapRef.name = "prowlarr-env"; }];
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.web.containerPort = 9696;
|
2024-04-06 15:36:29 +00:00
|
|
|
|
|
|
|
volumeMounts = [{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 15:47:49 +00:00
|
|
|
|
|
|
|
sonarr = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "sonarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
selector.matchLabels = {
|
|
|
|
app = "media";
|
|
|
|
component = "sonarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
template = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "sonarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
containers.sonarr = {
|
|
|
|
image = "lscr.io/linuxserver/sonarr:latest";
|
|
|
|
envFrom = [{ configMapRef.name = "sonarr-env"; }];
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.web.containerPort = 8989;
|
2024-04-06 15:47:49 +00:00
|
|
|
|
|
|
|
volumeMounts = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
mountPath = "/media";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-04-14 19:00:15 +00:00
|
|
|
volumes = {
|
|
|
|
config.persistentVolumeClaim.claimName = "sonarr-config";
|
|
|
|
media.persistentVolumeClaim.claimName = "media";
|
|
|
|
};
|
2024-04-06 15:47:49 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 15:55:27 +00:00
|
|
|
|
|
|
|
bazarr = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "bazarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
selector.matchLabels = {
|
|
|
|
app = "media";
|
|
|
|
component = "bazarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
template = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "bazarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
containers.bazarr = {
|
|
|
|
image = "lscr.io/linuxserver/bazarr:latest";
|
|
|
|
envFrom = [{ configMapRef.name = "bazarr-env"; }];
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.web.containerPort = 6767;
|
2024-04-06 15:55:27 +00:00
|
|
|
|
|
|
|
volumeMounts = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
mountPath = "/media";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-04-14 19:00:15 +00:00
|
|
|
volumes = {
|
|
|
|
config.persistentVolumeClaim.claimName = "bazarr-config";
|
|
|
|
media.persistentVolumeClaim.claimName = "media";
|
|
|
|
};
|
2024-04-06 15:55:27 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
|
|
|
|
2024-04-06 14:45:10 +00:00
|
|
|
services = {
|
|
|
|
jellyfin.spec = {
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "jellyfin";
|
|
|
|
};
|
|
|
|
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.web = {
|
2024-04-06 14:45:10 +00:00
|
|
|
port = 80;
|
2024-04-14 19:43:31 +00:00
|
|
|
targetPort = "web";
|
|
|
|
};
|
2024-04-06 14:45:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
transmission-web.spec = {
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "transmission";
|
|
|
|
};
|
|
|
|
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.web = {
|
2024-04-06 14:45:10 +00:00
|
|
|
port = 80;
|
2024-04-14 19:43:31 +00:00
|
|
|
targetPort = "web";
|
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
|
|
|
|
2024-04-06 14:45:10 +00:00
|
|
|
transmission-bittorrent.spec = {
|
|
|
|
type = "LoadBalancer";
|
2024-04-13 21:25:48 +00:00
|
|
|
loadBalancerIP = myLib.globals.bittorrentIPv4;
|
2024-04-06 14:45:10 +00:00
|
|
|
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "transmission";
|
|
|
|
};
|
|
|
|
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.bittorrent = {
|
2024-04-06 14:45:10 +00:00
|
|
|
port = 31780;
|
2024-04-14 19:43:31 +00:00
|
|
|
targetPort = "bittorrent";
|
|
|
|
};
|
2024-04-06 14:45:10 +00:00
|
|
|
};
|
2024-04-06 15:10:34 +00:00
|
|
|
|
|
|
|
jellyseerr.spec = {
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "jellyseerr";
|
|
|
|
};
|
|
|
|
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.web = {
|
2024-04-06 15:10:34 +00:00
|
|
|
port = 80;
|
2024-04-14 19:43:31 +00:00
|
|
|
targetPort = "web";
|
|
|
|
};
|
2024-04-06 15:10:34 +00:00
|
|
|
};
|
2024-04-06 15:26:31 +00:00
|
|
|
|
|
|
|
radarr.spec = {
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "radarr";
|
|
|
|
};
|
|
|
|
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.web = {
|
2024-04-06 15:26:31 +00:00
|
|
|
port = 80;
|
2024-04-14 19:43:31 +00:00
|
|
|
targetPort = "web";
|
|
|
|
};
|
2024-04-06 15:26:31 +00:00
|
|
|
};
|
2024-04-06 15:36:29 +00:00
|
|
|
|
|
|
|
prowlarr.spec = {
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "prowlarr";
|
|
|
|
};
|
|
|
|
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.web = {
|
2024-04-06 15:36:29 +00:00
|
|
|
port = 80;
|
2024-04-14 19:43:31 +00:00
|
|
|
targetPort = "web";
|
|
|
|
};
|
2024-04-06 15:36:29 +00:00
|
|
|
};
|
2024-04-06 15:47:49 +00:00
|
|
|
|
|
|
|
sonarr.spec = {
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "sonarr";
|
|
|
|
};
|
|
|
|
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.web = {
|
2024-04-06 15:47:49 +00:00
|
|
|
port = 80;
|
2024-04-14 19:43:31 +00:00
|
|
|
targetPort = "web";
|
|
|
|
};
|
2024-04-06 15:47:49 +00:00
|
|
|
};
|
2024-04-06 15:55:27 +00:00
|
|
|
|
|
|
|
bazarr.spec = {
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "bazarr";
|
|
|
|
};
|
|
|
|
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.web = {
|
2024-04-06 15:55:27 +00:00
|
|
|
port = 80;
|
2024-04-14 19:43:31 +00:00
|
|
|
targetPort = "web";
|
|
|
|
};
|
2024-04-06 15:55:27 +00:00
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
2024-04-14 21:11:19 +00:00
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
|
2024-04-14 21:34:54 +00:00
|
|
|
lab = {
|
|
|
|
ingresses = {
|
|
|
|
jellyfin = {
|
|
|
|
host = "media.kun.is";
|
2024-04-06 15:47:49 +00:00
|
|
|
|
2024-04-14 21:34:54 +00:00
|
|
|
service = {
|
|
|
|
name = "jellyfin";
|
|
|
|
portName = "web";
|
|
|
|
};
|
2024-04-06 15:47:49 +00:00
|
|
|
};
|
2024-04-06 15:55:27 +00:00
|
|
|
|
2024-04-14 21:34:54 +00:00
|
|
|
transmission = {
|
|
|
|
host = "transmission.kun.is";
|
|
|
|
entrypoint = "localsecure";
|
2024-04-08 18:56:24 +00:00
|
|
|
|
2024-04-14 21:34:54 +00:00
|
|
|
service = {
|
|
|
|
name = "transmission-web";
|
|
|
|
portName = "web";
|
|
|
|
};
|
2024-04-08 18:56:24 +00:00
|
|
|
};
|
|
|
|
|
2024-04-14 21:34:54 +00:00
|
|
|
jellyseerr = {
|
|
|
|
host = "jellyseerr.kun.is";
|
|
|
|
entrypoint = "localsecure";
|
2024-04-08 18:56:24 +00:00
|
|
|
|
2024-04-14 21:34:54 +00:00
|
|
|
service = {
|
|
|
|
name = "jellyseerr";
|
|
|
|
portName = "web";
|
|
|
|
};
|
2024-04-08 18:56:24 +00:00
|
|
|
};
|
|
|
|
|
2024-04-14 21:34:54 +00:00
|
|
|
radarr = {
|
|
|
|
host = "radarr.kun.is";
|
|
|
|
entrypoint = "localsecure";
|
2024-04-08 18:56:24 +00:00
|
|
|
|
2024-04-14 21:34:54 +00:00
|
|
|
service = {
|
|
|
|
name = "radarr";
|
|
|
|
portName = "web";
|
|
|
|
};
|
2024-04-08 18:56:24 +00:00
|
|
|
};
|
|
|
|
|
2024-04-14 21:34:54 +00:00
|
|
|
prowlarr = {
|
|
|
|
host = "prowlarr.kun.is";
|
|
|
|
entrypoint = "localsecure";
|
2024-04-08 18:56:24 +00:00
|
|
|
|
2024-04-14 21:34:54 +00:00
|
|
|
service = {
|
|
|
|
name = "prowlarr";
|
|
|
|
portName = "web";
|
|
|
|
};
|
2024-04-08 18:56:24 +00:00
|
|
|
};
|
|
|
|
|
2024-04-14 21:34:54 +00:00
|
|
|
sonarr = {
|
|
|
|
host = "sonarr.kun.is";
|
|
|
|
entrypoint = "localsecure";
|
2024-04-08 18:56:24 +00:00
|
|
|
|
2024-04-14 21:34:54 +00:00
|
|
|
service = {
|
|
|
|
name = "sonarr";
|
|
|
|
portName = "web";
|
|
|
|
};
|
2024-04-08 18:56:24 +00:00
|
|
|
};
|
|
|
|
|
2024-04-14 21:34:54 +00:00
|
|
|
bazarr = {
|
|
|
|
host = "bazarr.kun.is";
|
|
|
|
entrypoint = "localsecure";
|
2024-04-08 18:56:24 +00:00
|
|
|
|
2024-04-14 21:34:54 +00:00
|
|
|
service = {
|
|
|
|
name = "bazarr";
|
|
|
|
portName = "web";
|
|
|
|
};
|
2024-04-08 18:56:24 +00:00
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
2024-04-14 21:34:54 +00:00
|
|
|
|
|
|
|
nfsVolumes = {
|
|
|
|
jellyfin-config.path = "jellyfin/config";
|
|
|
|
media.path = "media";
|
2024-04-29 13:23:31 +00:00
|
|
|
music.path = "media/music";
|
2024-04-14 21:34:54 +00:00
|
|
|
transmission-config.path = "transmission/config";
|
|
|
|
jellyseerr-config.path = "jellyseerr/config";
|
|
|
|
radarr-config.path = "radarr/config";
|
|
|
|
prowlarr-config.path = "prowlarr/config";
|
|
|
|
sonarr-config.path = "sonarr/config";
|
|
|
|
bazarr-config.path = "bazarr/config";
|
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
|
|
|
}
|