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
|
|
|
deployments = {
|
2024-07-17 09:59:48 +00:00
|
|
|
jellyfin.spec = {
|
|
|
|
selector.matchLabels = {
|
2024-04-06 14:15:01 +00:00
|
|
|
app = "media";
|
|
|
|
component = "jellyfin";
|
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
strategy = {
|
|
|
|
type = "RollingUpdate";
|
|
|
|
|
|
|
|
rollingUpdate = {
|
|
|
|
maxSurge = 0;
|
|
|
|
maxUnavailable = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
template = {
|
|
|
|
metadata.labels = {
|
2024-04-06 14:15:01 +00:00
|
|
|
app = "media";
|
|
|
|
component = "jellyfin";
|
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
spec = {
|
|
|
|
containers.jellyfin = {
|
|
|
|
image = "jellyfin/jellyfin:10.9.7";
|
|
|
|
ports.web.containerPort = 8096;
|
|
|
|
imagePullPolicy = "Always";
|
2024-06-15 10:49:31 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
env.JELLYFIN_PublishedServerUrl.value = "https://media.kun.is";
|
2024-06-15 10:49:31 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
volumeMounts = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
mountPath = "/media";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "cache";
|
|
|
|
mountPath = "/config/transcodes";
|
|
|
|
}
|
|
|
|
];
|
2024-04-06 14:45:10 +00:00
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
volumes = {
|
|
|
|
config.persistentVolumeClaim.claimName = "jellyfin";
|
|
|
|
cache.persistentVolumeClaim.claimName = "jellyfin-cache";
|
2024-06-29 10:28:18 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
media.hostPath = {
|
|
|
|
path = "/mnt/longhorn/persistent/media";
|
|
|
|
type = "Directory";
|
2024-04-14 19:00:15 +00:00
|
|
|
};
|
2024-07-17 09:59:48 +00:00
|
|
|
};
|
2024-05-23 20:30:30 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
securityContext = {
|
|
|
|
fsGroup = 0;
|
|
|
|
fsGroupChangePolicy = "OnRootMismatch";
|
|
|
|
};
|
2024-05-26 12:34:19 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms = [{
|
|
|
|
matchExpressions = [{
|
|
|
|
key = "hasMedia";
|
|
|
|
operator = "In";
|
|
|
|
values = [ "true" ];
|
2024-05-26 12:34:19 +00:00
|
|
|
}];
|
2024-07-17 09:59:48 +00:00
|
|
|
}];
|
2024-04-06 14:45:10 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
transmission.spec = {
|
|
|
|
selector.matchLabels = {
|
2024-04-06 14:45:10 +00:00
|
|
|
app = "media";
|
|
|
|
component = "transmission";
|
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
strategy = {
|
|
|
|
type = "RollingUpdate";
|
2024-04-06 14:45:10 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
rollingUpdate = {
|
|
|
|
maxSurge = 0;
|
|
|
|
maxUnavailable = 1;
|
|
|
|
};
|
|
|
|
};
|
2024-07-12 14:08:15 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
template = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "transmission";
|
2024-07-12 14:08:15 +00:00
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
spec = {
|
|
|
|
containers.transmission = {
|
|
|
|
image = "lscr.io/linuxserver/transmission:4.0.6";
|
|
|
|
imagePullPolicy = "Always";
|
2024-04-06 14:45:10 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
ports = {
|
|
|
|
web.containerPort = 9091;
|
|
|
|
bittorrent.containerPort = 31780;
|
2024-04-06 14:45:10 +00:00
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
env = {
|
|
|
|
PUID.value = "1000";
|
|
|
|
PGID.value = "1000";
|
|
|
|
TZ.value = "Europe/Amsterdam";
|
2024-04-14 19:00:15 +00:00
|
|
|
};
|
2024-05-23 20:30:30 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
volumeMounts = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
mountPath = "/media";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
volumes = {
|
|
|
|
config.persistentVolumeClaim.claimName = "transmission";
|
|
|
|
media.persistentVolumeClaim.claimName = "media";
|
|
|
|
};
|
|
|
|
|
|
|
|
securityContext = {
|
|
|
|
fsGroup = 1000;
|
|
|
|
fsGroupChangePolicy = "OnRootMismatch";
|
2024-04-06 14:45:10 +00:00
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 15:10:34 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
jellyseerr.spec = {
|
|
|
|
selector.matchLabels = {
|
2024-04-06 15:10:34 +00:00
|
|
|
app = "media";
|
|
|
|
component = "jellyseerr";
|
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
strategy = {
|
|
|
|
type = "RollingUpdate";
|
2024-07-12 13:53:01 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
rollingUpdate = {
|
|
|
|
maxSurge = 0;
|
|
|
|
maxUnavailable = 1;
|
2024-07-12 13:53:01 +00:00
|
|
|
};
|
2024-07-17 09:59:48 +00:00
|
|
|
};
|
2024-07-12 13:53:01 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
template = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "jellyseerr";
|
|
|
|
};
|
2024-04-06 15:10:34 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
spec = {
|
|
|
|
volumes.config.persistentVolumeClaim.claimName = "jellyseerr";
|
2024-04-14 19:00:15 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
containers.jellyseerr = {
|
|
|
|
image = "fallenbagel/jellyseerr:1.9.2";
|
|
|
|
ports.web.containerPort = 5055;
|
|
|
|
imagePullPolicy = "Always";
|
2024-04-06 15:10:34 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
env = {
|
|
|
|
LOG_LEVEL.value = "debug";
|
|
|
|
TZ.value = "Europe/Amsterdam";
|
2024-04-06 15:10:34 +00:00
|
|
|
};
|
2024-05-23 20:30:30 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
volumeMounts = [{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/app/config";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
securityContext = {
|
|
|
|
fsGroup = 0;
|
|
|
|
fsGroupChangePolicy = "OnRootMismatch";
|
2024-04-06 15:10:34 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 15:26:31 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
radarr.spec = {
|
|
|
|
selector.matchLabels = {
|
2024-04-06 15:26:31 +00:00
|
|
|
app = "media";
|
|
|
|
component = "radarr";
|
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
strategy = {
|
|
|
|
type = "RollingUpdate";
|
|
|
|
|
|
|
|
rollingUpdate = {
|
|
|
|
maxSurge = 0;
|
|
|
|
maxUnavailable = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
template = {
|
|
|
|
metadata.labels = {
|
2024-04-06 15:26:31 +00:00
|
|
|
app = "media";
|
|
|
|
component = "radarr";
|
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
spec = {
|
|
|
|
containers.radarr = {
|
|
|
|
image = "lscr.io/linuxserver/radarr:5.7.0";
|
|
|
|
ports.web.containerPort = 7878;
|
|
|
|
imagePullPolicy = "Always";
|
2024-07-12 14:08:15 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
env = {
|
|
|
|
PUID.value = "1000";
|
|
|
|
PGID.value = "1000";
|
|
|
|
TZ.value = "Europe/Amsterdam";
|
|
|
|
};
|
2024-07-12 14:08:15 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
volumeMounts = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
mountPath = "/media";
|
|
|
|
}
|
|
|
|
];
|
2024-04-06 15:26:31 +00:00
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
volumes = {
|
|
|
|
config.persistentVolumeClaim.claimName = "radarr";
|
|
|
|
media.persistentVolumeClaim.claimName = "media";
|
|
|
|
};
|
2024-05-23 20:30:30 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
securityContext = {
|
|
|
|
fsGroup = 1000;
|
|
|
|
fsGroupChangePolicy = "OnRootMismatch";
|
2024-04-06 15:26:31 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 15:36:29 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
prowlarr.spec = {
|
|
|
|
selector.matchLabels = {
|
2024-04-06 15:36:29 +00:00
|
|
|
app = "media";
|
|
|
|
component = "prowlarr";
|
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
strategy = {
|
|
|
|
type = "RollingUpdate";
|
2024-07-12 14:08:15 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
rollingUpdate = {
|
|
|
|
maxSurge = 0;
|
|
|
|
maxUnavailable = 1;
|
2024-07-12 14:08:15 +00:00
|
|
|
};
|
2024-07-17 09:59:48 +00:00
|
|
|
};
|
2024-07-12 14:08:15 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
template = {
|
|
|
|
metadata.labels = {
|
|
|
|
app = "media";
|
|
|
|
component = "prowlarr";
|
|
|
|
};
|
2024-04-06 15:36:29 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
spec = {
|
|
|
|
volumes.config.persistentVolumeClaim.claimName = "prowlarr";
|
2024-04-14 19:00:15 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
containers.prowlarr = {
|
|
|
|
image = "lscr.io/linuxserver/prowlarr:1.20.1";
|
|
|
|
ports.web.containerPort = 9696;
|
|
|
|
imagePullPolicy = "Always";
|
2024-04-06 15:36:29 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
env = {
|
|
|
|
PUID.value = "1000";
|
|
|
|
PGID.value = "1000";
|
|
|
|
TZ.value = "Europe/Amsterdam";
|
2024-04-06 15:36:29 +00:00
|
|
|
};
|
2024-05-23 20:30:30 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
volumeMounts = [{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
securityContext = {
|
|
|
|
fsGroup = 1000;
|
|
|
|
fsGroupChangePolicy = "OnRootMismatch";
|
2024-04-06 15:36:29 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 15:47:49 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
sonarr.spec = {
|
|
|
|
selector.matchLabels = {
|
2024-04-06 15:47:49 +00:00
|
|
|
app = "media";
|
|
|
|
component = "sonarr";
|
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
strategy = {
|
|
|
|
type = "RollingUpdate";
|
|
|
|
|
|
|
|
rollingUpdate = {
|
|
|
|
maxSurge = 0;
|
|
|
|
maxUnavailable = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
template = {
|
|
|
|
metadata.labels = {
|
2024-04-06 15:47:49 +00:00
|
|
|
app = "media";
|
|
|
|
component = "sonarr";
|
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
spec = {
|
|
|
|
containers.sonarr = {
|
|
|
|
image = "lscr.io/linuxserver/sonarr:4.0.6";
|
|
|
|
ports.web.containerPort = 8989;
|
|
|
|
imagePullPolicy = "Always";
|
2024-07-12 14:08:15 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
env = {
|
|
|
|
PUID.value = "1000";
|
|
|
|
PGID.value = "1000";
|
|
|
|
TZ.value = "Europe/Amsterdam";
|
|
|
|
};
|
2024-07-12 14:08:15 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
volumeMounts = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
mountPath = "/media";
|
|
|
|
}
|
|
|
|
];
|
2024-04-06 15:47:49 +00:00
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
volumes = {
|
|
|
|
config.persistentVolumeClaim.claimName = "sonarr";
|
|
|
|
media.persistentVolumeClaim.claimName = "media";
|
|
|
|
};
|
2024-05-23 20:30:30 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
securityContext = {
|
|
|
|
fsGroup = 1000;
|
|
|
|
fsGroupChangePolicy = "OnRootMismatch";
|
2024-04-06 15:47:49 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 15:55:27 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
bazarr.spec = {
|
|
|
|
selector.matchLabels = {
|
2024-04-06 15:55:27 +00:00
|
|
|
app = "media";
|
|
|
|
component = "bazarr";
|
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
strategy = {
|
|
|
|
type = "RollingUpdate";
|
|
|
|
|
|
|
|
rollingUpdate = {
|
|
|
|
maxSurge = 0;
|
|
|
|
maxUnavailable = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
template = {
|
|
|
|
metadata.labels = {
|
2024-04-06 15:55:27 +00:00
|
|
|
app = "media";
|
|
|
|
component = "bazarr";
|
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
spec = {
|
|
|
|
containers.bazarr = {
|
|
|
|
image = "lscr.io/linuxserver/bazarr:1.4.3";
|
|
|
|
ports.web.containerPort = 6767;
|
|
|
|
imagePullPolicy = "Always";
|
2024-07-12 14:08:15 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
env = {
|
|
|
|
PUID.value = "1000";
|
|
|
|
PGID.value = "1000";
|
|
|
|
TZ.value = "Europe/Amsterdam";
|
|
|
|
};
|
2024-07-12 14:08:15 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
volumeMounts = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
mountPath = "/media";
|
|
|
|
}
|
|
|
|
];
|
2024-04-06 15:55:27 +00:00
|
|
|
};
|
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
volumes = {
|
|
|
|
config.persistentVolumeClaim.claimName = "bazarr";
|
|
|
|
media.persistentVolumeClaim.claimName = "media";
|
|
|
|
};
|
2024-05-23 20:30:30 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
securityContext = {
|
|
|
|
fsGroup = 1000;
|
|
|
|
fsGroupChangePolicy = "OnRootMismatch";
|
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
|
|
|
};
|
|
|
|
|
2024-07-21 19:00:32 +00:00
|
|
|
transmission.spec = {
|
2024-04-06 14:45:10 +00:00
|
|
|
type = "LoadBalancer";
|
2024-07-21 19:00:32 +00:00
|
|
|
loadBalancerIP = myLib.globals.transmissionIPv4;
|
2024-04-06 14:45:10 +00:00
|
|
|
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "transmission";
|
|
|
|
};
|
|
|
|
|
2024-07-21 19:00:32 +00:00
|
|
|
ports = {
|
|
|
|
bittorrent = {
|
|
|
|
port = 31780;
|
|
|
|
targetPort = "bittorrent";
|
|
|
|
};
|
|
|
|
|
|
|
|
web = {
|
|
|
|
port = 80;
|
|
|
|
targetPort = "web";
|
|
|
|
};
|
2024-04-14 19:43:31 +00:00
|
|
|
};
|
2024-04-06 14:45:10 +00:00
|
|
|
};
|
2024-04-06 15:10:34 +00:00
|
|
|
|
|
|
|
jellyseerr.spec = {
|
2024-07-21 19:00:32 +00:00
|
|
|
type = "LoadBalancer";
|
|
|
|
loadBalancerIP = myLib.globals.jellyseerrIPv4;
|
|
|
|
|
2024-04-06 15:10:34 +00:00
|
|
|
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 = {
|
2024-07-21 19:00:32 +00:00
|
|
|
type = "LoadBalancer";
|
|
|
|
loadBalancerIP = myLib.globals.radarrIPv4;
|
|
|
|
|
2024-04-06 15:26:31 +00:00
|
|
|
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 = {
|
2024-07-21 19:00:32 +00:00
|
|
|
type = "LoadBalancer";
|
|
|
|
loadBalancerIP = myLib.globals.prowlarrIPv4;
|
|
|
|
|
2024-04-06 15:36:29 +00:00
|
|
|
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 = {
|
2024-07-21 19:00:32 +00:00
|
|
|
type = "LoadBalancer";
|
|
|
|
loadBalancerIP = myLib.globals.sonarrIPv4;
|
|
|
|
|
2024-04-06 15:47:49 +00:00
|
|
|
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 = {
|
2024-07-21 19:00:32 +00:00
|
|
|
type = "LoadBalancer";
|
|
|
|
loadBalancerIP = myLib.globals.bazarrIPv4;
|
|
|
|
|
2024-04-06 15:55:27 +00:00
|
|
|
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-06-29 10:28:18 +00:00
|
|
|
|
2024-07-17 09:59:48 +00:00
|
|
|
persistentVolumeClaims = {
|
|
|
|
jellyfin-cache.spec = {
|
|
|
|
accessModes = [ "ReadWriteOnce" ];
|
|
|
|
resources.requests.storage = "20Gi";
|
|
|
|
};
|
|
|
|
|
|
|
|
media.spec = {
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
storageClassName = "";
|
|
|
|
resources.requests.storage = "1Mi";
|
|
|
|
volumeName = "media-media";
|
|
|
|
};
|
2024-06-29 10:28:18 +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 = {
|
2024-07-21 19:00:32 +00:00
|
|
|
ingresses.jellyfin = {
|
|
|
|
host = "media.kun.is";
|
2024-04-06 15:47:49 +00:00
|
|
|
|
2024-07-21 19:00:32 +00:00
|
|
|
service = {
|
|
|
|
name = "jellyfin";
|
|
|
|
portName = "web";
|
2024-04-06 15:47:49 +00:00
|
|
|
};
|
2024-07-21 19:00:32 +00:00
|
|
|
};
|
2024-04-06 15:55:27 +00:00
|
|
|
|
2024-07-21 19:00:32 +00:00
|
|
|
tailscaleIngresses = {
|
|
|
|
tailscale-jellyseerr = {
|
|
|
|
host = "jellyseerr";
|
|
|
|
service.name = "jellyseerr";
|
2024-04-08 18:56:24 +00:00
|
|
|
};
|
|
|
|
|
2024-07-21 19:00:32 +00:00
|
|
|
tailscale-radarr = {
|
|
|
|
host = "radarr";
|
|
|
|
service.name = "radarr";
|
2024-04-08 18:56:24 +00:00
|
|
|
};
|
|
|
|
|
2024-07-21 19:00:32 +00:00
|
|
|
tailscale-sonarr = {
|
|
|
|
host = "sonarr";
|
|
|
|
service.name = "sonarr";
|
2024-04-08 18:56:24 +00:00
|
|
|
};
|
|
|
|
|
2024-07-21 19:00:32 +00:00
|
|
|
tailscale-bazarr = {
|
|
|
|
host = "bazarr";
|
|
|
|
service.name = "bazarr";
|
2024-04-08 18:56:24 +00:00
|
|
|
};
|
|
|
|
|
2024-07-21 19:00:32 +00:00
|
|
|
tailscale-prowlarr = {
|
|
|
|
host = "prowlarr";
|
|
|
|
service.name = "prowlarr";
|
2024-04-08 18:56:24 +00:00
|
|
|
};
|
|
|
|
|
2024-07-21 19:00:32 +00:00
|
|
|
tailscale-transmission = {
|
|
|
|
host = "transmission";
|
|
|
|
service.name = "transmission";
|
2024-04-08 18:56:24 +00:00
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
2024-07-17 09:59:48 +00:00
|
|
|
|
|
|
|
longhorn.persistentVolumeClaim = {
|
|
|
|
jellyfin = {
|
|
|
|
volumeName = "jellyfin";
|
|
|
|
storage = "5Gi";
|
|
|
|
};
|
|
|
|
|
|
|
|
transmission = {
|
|
|
|
volumeName = "transmission";
|
|
|
|
storage = "25Mi";
|
|
|
|
};
|
|
|
|
|
|
|
|
jellyseerr = {
|
|
|
|
volumeName = "jellyseerr";
|
|
|
|
storage = "75Mi";
|
|
|
|
};
|
|
|
|
|
|
|
|
radarr = {
|
|
|
|
volumeName = "radarr";
|
|
|
|
storage = "300Mi";
|
|
|
|
};
|
|
|
|
|
|
|
|
prowlarr = {
|
|
|
|
volumeName = "prowlarr";
|
|
|
|
storage = "150Mi";
|
|
|
|
};
|
|
|
|
|
|
|
|
sonarr = {
|
|
|
|
volumeName = "sonarr";
|
|
|
|
storage = "150Mi";
|
|
|
|
};
|
|
|
|
|
|
|
|
bazarr = {
|
|
|
|
volumeName = "bazarr";
|
|
|
|
storage = "25Mi";
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
|
|
|
}
|