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"; }];
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
containerPort = 8096;
|
|
|
|
protocol = "TCP";
|
|
|
|
}];
|
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-06 14:45:10 +00:00
|
|
|
volumes = [
|
2024-04-06 14:15:01 +00:00
|
|
|
{
|
|
|
|
name = "config";
|
2024-04-06 14:45:10 +00:00
|
|
|
persistentVolumeClaim.claimName = "jellyfin-config";
|
2024-04-06 14:15:01 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
2024-04-06 14:45:10 +00:00
|
|
|
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-06 14:45:10 +00:00
|
|
|
ports = [
|
|
|
|
{
|
|
|
|
containerPort = 9091;
|
|
|
|
protocol = "TCP";
|
|
|
|
}
|
|
|
|
# TODO: Only use TCP, as Kubernetes does not support multiple protocols for a port number.
|
|
|
|
# Should see if this works as correctly though.
|
|
|
|
{
|
|
|
|
containerPort = 31780;
|
|
|
|
protocol = "TCP";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
volumeMounts = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
mountPath = "/media";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
volumes = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
persistentVolumeClaim.claimName = "transmission-config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
persistentVolumeClaim.claimName = "media";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
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 = {
|
|
|
|
containers.jellyseerr = {
|
|
|
|
image = "fallenbagel/jellyseerr:1.7.0";
|
|
|
|
envFrom = [{ configMapRef.name = "jellyseerr-env"; }];
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
containerPort = 5055;
|
|
|
|
protocol = "TCP";
|
|
|
|
}];
|
|
|
|
|
|
|
|
volumeMounts = [{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/app/config";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
volumes = [{
|
|
|
|
name = "config";
|
|
|
|
persistentVolumeClaim.claimName = "jellyseerr-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"; }];
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
containerPort = 7878;
|
|
|
|
protocol = "TCP";
|
|
|
|
}];
|
|
|
|
|
|
|
|
volumeMounts = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
mountPath = "/media";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
volumes = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
persistentVolumeClaim.claimName = "radarr-config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
persistentVolumeClaim.claimName = "media";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
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 = {
|
|
|
|
containers.prowlarr = {
|
|
|
|
image = "lscr.io/linuxserver/prowlarr:latest";
|
|
|
|
envFrom = [{ configMapRef.name = "prowlarr-env"; }];
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
containerPort = 9696;
|
|
|
|
protocol = "TCP";
|
|
|
|
}];
|
|
|
|
|
|
|
|
volumeMounts = [{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
volumes = [{
|
|
|
|
name = "config";
|
|
|
|
persistentVolumeClaim.claimName = "prowlarr-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"; }];
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
containerPort = 8989;
|
|
|
|
protocol = "TCP";
|
|
|
|
}];
|
|
|
|
|
|
|
|
volumeMounts = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
mountPath = "/media";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
volumes = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
persistentVolumeClaim.claimName = "sonarr-config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
persistentVolumeClaim.claimName = "media";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
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"; }];
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
containerPort = 6767;
|
|
|
|
protocol = "TCP";
|
|
|
|
}];
|
|
|
|
|
|
|
|
volumeMounts = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
mountPath = "/config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
mountPath = "/media";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
volumes = [
|
|
|
|
{
|
|
|
|
name = "config";
|
|
|
|
persistentVolumeClaim.claimName = "bazarr-config";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "media";
|
|
|
|
persistentVolumeClaim.claimName = "media";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
persistentVolumes = {
|
|
|
|
jellyfin-config.spec = {
|
|
|
|
capacity.storage = "1Mi";
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
|
|
|
|
nfs = {
|
2024-04-12 21:31:10 +00:00
|
|
|
server = "lewis.dmz";
|
2024-04-06 14:15:01 +00:00
|
|
|
path = "/mnt/data/nfs/jellyfin/config";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
media.spec = {
|
|
|
|
capacity.storage = "1Mi";
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
|
|
|
|
nfs = {
|
2024-04-12 21:31:10 +00:00
|
|
|
server = "lewis.dmz";
|
2024-04-06 14:15:01 +00:00
|
|
|
path = "/mnt/data/nfs/media";
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 14:45:10 +00:00
|
|
|
|
|
|
|
transmission-config.spec = {
|
|
|
|
capacity.storage = "1Mi";
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
|
|
|
|
nfs = {
|
2024-04-12 21:31:10 +00:00
|
|
|
server = "lewis.dmz";
|
2024-04-06 14:45:10 +00:00
|
|
|
path = "/mnt/data/nfs/transmission/config";
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 15:10:34 +00:00
|
|
|
|
|
|
|
jellyseerr-config.spec = {
|
|
|
|
capacity.storage = "1Mi";
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
|
|
|
|
nfs = {
|
2024-04-12 21:31:10 +00:00
|
|
|
server = "lewis.dmz";
|
2024-04-06 15:10:34 +00:00
|
|
|
path = "/mnt/data/nfs/jellyseerr/config";
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 15:26:31 +00:00
|
|
|
|
|
|
|
radarr-config.spec = {
|
|
|
|
capacity.storage = "1Mi";
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
|
|
|
|
nfs = {
|
2024-04-12 21:31:10 +00:00
|
|
|
server = "lewis.dmz";
|
2024-04-06 15:26:31 +00:00
|
|
|
path = "/mnt/data/nfs/radarr/config";
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 15:36:29 +00:00
|
|
|
|
|
|
|
prowlarr-config.spec = {
|
|
|
|
capacity.storage = "1Mi";
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
|
|
|
|
nfs = {
|
2024-04-12 21:31:10 +00:00
|
|
|
server = "lewis.dmz";
|
2024-04-06 15:36:29 +00:00
|
|
|
path = "/mnt/data/nfs/prowlarr/config";
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 15:47:49 +00:00
|
|
|
|
|
|
|
sonarr-config.spec = {
|
|
|
|
capacity.storage = "1Mi";
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
|
|
|
|
nfs = {
|
2024-04-12 21:31:10 +00:00
|
|
|
server = "lewis.dmz";
|
2024-04-06 15:47:49 +00:00
|
|
|
path = "/mnt/data/nfs/sonarr/config";
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 15:55:27 +00:00
|
|
|
|
|
|
|
bazarr-config.spec = {
|
|
|
|
capacity.storage = "1Mi";
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
|
|
|
|
nfs = {
|
2024-04-12 21:31:10 +00:00
|
|
|
server = "lewis.dmz";
|
2024-04-06 15:55:27 +00:00
|
|
|
path = "/mnt/data/nfs/bazarr/config";
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
persistentVolumeClaims = {
|
|
|
|
jellyfin-config.spec = {
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
storageClassName = "";
|
|
|
|
resources.requests.storage = "1Mi";
|
|
|
|
volumeName = "jellyfin-config";
|
|
|
|
};
|
|
|
|
|
|
|
|
media.spec = {
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
storageClassName = "";
|
|
|
|
resources.requests.storage = "1Mi";
|
|
|
|
volumeName = "media";
|
|
|
|
};
|
2024-04-06 14:45:10 +00:00
|
|
|
|
|
|
|
transmission-config.spec = {
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
storageClassName = "";
|
|
|
|
resources.requests.storage = "1Mi";
|
|
|
|
volumeName = "transmission-config";
|
|
|
|
};
|
2024-04-06 15:10:34 +00:00
|
|
|
|
|
|
|
jellyseerr-config.spec = {
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
storageClassName = "";
|
|
|
|
resources.requests.storage = "1Mi";
|
|
|
|
volumeName = "jellyseerr-config";
|
|
|
|
};
|
2024-04-06 15:26:31 +00:00
|
|
|
|
|
|
|
radarr-config.spec = {
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
storageClassName = "";
|
|
|
|
resources.requests.storage = "1Mi";
|
|
|
|
volumeName = "radarr-config";
|
|
|
|
};
|
2024-04-06 15:36:29 +00:00
|
|
|
|
|
|
|
prowlarr-config.spec = {
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
storageClassName = "";
|
|
|
|
resources.requests.storage = "1Mi";
|
|
|
|
volumeName = "prowlarr-config";
|
|
|
|
};
|
2024-04-06 15:47:49 +00:00
|
|
|
|
|
|
|
sonarr-config.spec = {
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
storageClassName = "";
|
|
|
|
resources.requests.storage = "1Mi";
|
|
|
|
volumeName = "sonarr-config";
|
|
|
|
};
|
2024-04-06 15:55:27 +00:00
|
|
|
|
|
|
|
bazarr-config.spec = {
|
|
|
|
accessModes = [ "ReadWriteMany" ];
|
|
|
|
storageClassName = "";
|
|
|
|
resources.requests.storage = "1Mi";
|
|
|
|
volumeName = "bazarr-config";
|
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
|
|
|
|
2024-04-06 14:45:10 +00:00
|
|
|
services = {
|
|
|
|
jellyfin.spec = {
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "jellyfin";
|
|
|
|
};
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
protocol = "TCP";
|
|
|
|
port = 80;
|
|
|
|
targetPort = 8096;
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
transmission-web.spec = {
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "transmission";
|
|
|
|
};
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
protocol = "TCP";
|
|
|
|
port = 80;
|
|
|
|
targetPort = 9091;
|
|
|
|
}];
|
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";
|
|
|
|
};
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
protocol = "TCP";
|
|
|
|
port = 31780;
|
|
|
|
targetPort = 31780;
|
|
|
|
}];
|
|
|
|
};
|
2024-04-06 15:10:34 +00:00
|
|
|
|
|
|
|
jellyseerr.spec = {
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "jellyseerr";
|
|
|
|
};
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
protocol = "TCP";
|
|
|
|
port = 80;
|
|
|
|
targetPort = 5055;
|
|
|
|
}];
|
|
|
|
};
|
2024-04-06 15:26:31 +00:00
|
|
|
|
|
|
|
radarr.spec = {
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "radarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
protocol = "TCP";
|
|
|
|
port = 80;
|
|
|
|
targetPort = 7878;
|
|
|
|
}];
|
|
|
|
};
|
2024-04-06 15:36:29 +00:00
|
|
|
|
|
|
|
prowlarr.spec = {
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "prowlarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
protocol = "TCP";
|
|
|
|
port = 80;
|
|
|
|
targetPort = 9696;
|
|
|
|
}];
|
|
|
|
};
|
2024-04-06 15:47:49 +00:00
|
|
|
|
|
|
|
sonarr.spec = {
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "sonarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
protocol = "TCP";
|
|
|
|
port = 80;
|
|
|
|
targetPort = 8989;
|
|
|
|
}];
|
|
|
|
};
|
2024-04-06 15:55:27 +00:00
|
|
|
|
|
|
|
bazarr.spec = {
|
|
|
|
selector = {
|
|
|
|
app = "media";
|
|
|
|
component = "bazarr";
|
|
|
|
};
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
protocol = "TCP";
|
|
|
|
port = 80;
|
|
|
|
targetPort = 6767;
|
|
|
|
}];
|
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
|
|
|
|
2024-04-06 14:45:10 +00:00
|
|
|
ingresses = {
|
2024-04-07 12:07:05 +00:00
|
|
|
jellyfin = {
|
|
|
|
metadata.annotations."cert-manager.io/cluster-issuer" = "letsencrypt";
|
2024-04-06 15:36:29 +00:00
|
|
|
|
2024-04-07 12:07:05 +00:00
|
|
|
spec = {
|
|
|
|
ingressClassName = "traefik";
|
2024-04-06 15:36:29 +00:00
|
|
|
|
2024-04-07 12:07:05 +00:00
|
|
|
rules = [{
|
|
|
|
host = "media.kun.is";
|
2024-04-06 15:36:29 +00:00
|
|
|
|
2024-04-07 12:07:05 +00:00
|
|
|
http.paths = [{
|
|
|
|
path = "/";
|
|
|
|
pathType = "Prefix";
|
2024-04-06 15:36:29 +00:00
|
|
|
|
2024-04-07 12:07:05 +00:00
|
|
|
backend.service = {
|
|
|
|
name = "jellyfin";
|
|
|
|
port.number = 80;
|
|
|
|
};
|
|
|
|
}];
|
2024-04-06 15:36:29 +00:00
|
|
|
}];
|
2024-04-06 15:47:49 +00:00
|
|
|
|
2024-04-07 12:07:05 +00:00
|
|
|
tls = [{
|
|
|
|
secretName = "jellyfin-tls";
|
|
|
|
hosts = [ "media.kun.is" ];
|
2024-04-06 15:47:49 +00:00
|
|
|
}];
|
2024-04-07 12:07:05 +00:00
|
|
|
};
|
2024-04-06 15:47:49 +00:00
|
|
|
};
|
2024-04-06 15:55:27 +00:00
|
|
|
|
2024-04-08 18:56:24 +00:00
|
|
|
transmission = {
|
|
|
|
metadata.annotations = {
|
|
|
|
"cert-manager.io/cluster-issuer" = "letsencrypt";
|
|
|
|
"traefik.ingress.kubernetes.io/router.entrypoints" = "localsecure";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
ingressClassName = "traefik";
|
|
|
|
|
|
|
|
rules = [{
|
|
|
|
host = "transmission.kun.is";
|
|
|
|
|
|
|
|
http.paths = [{
|
|
|
|
path = "/";
|
|
|
|
pathType = "Prefix";
|
|
|
|
|
|
|
|
backend.service = {
|
|
|
|
name = "transmission-web";
|
|
|
|
port.number = 80;
|
|
|
|
};
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
|
|
|
|
tls = [{
|
|
|
|
secretName = "transmission-tls";
|
|
|
|
hosts = [ "transmission.kun.is" ];
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
jellyseerr = {
|
|
|
|
metadata.annotations = {
|
|
|
|
"cert-manager.io/cluster-issuer" = "letsencrypt";
|
|
|
|
"traefik.ingress.kubernetes.io/router.entrypoints" = "localsecure";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
ingressClassName = "traefik";
|
|
|
|
|
|
|
|
rules = [{
|
|
|
|
host = "jellyseerr.kun.is";
|
|
|
|
|
|
|
|
http.paths = [{
|
|
|
|
path = "/";
|
|
|
|
pathType = "Prefix";
|
|
|
|
|
|
|
|
backend.service = {
|
|
|
|
name = "jellyseerr";
|
|
|
|
port.number = 80;
|
|
|
|
};
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
|
|
|
|
tls = [{
|
|
|
|
secretName = "jellyseerr-tls";
|
|
|
|
hosts = [ "jellyseerr.kun.is" ];
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
radarr = {
|
|
|
|
metadata.annotations = {
|
|
|
|
"cert-manager.io/cluster-issuer" = "letsencrypt";
|
|
|
|
"traefik.ingress.kubernetes.io/router.entrypoints" = "localsecure";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
ingressClassName = "traefik";
|
|
|
|
|
|
|
|
rules = [{
|
|
|
|
host = "radarr.kun.is";
|
|
|
|
|
|
|
|
http.paths = [{
|
|
|
|
path = "/";
|
|
|
|
pathType = "Prefix";
|
|
|
|
|
|
|
|
backend.service = {
|
|
|
|
name = "radarr";
|
|
|
|
port.number = 80;
|
|
|
|
};
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
|
|
|
|
tls = [{
|
|
|
|
secretName = "radarr-tls";
|
|
|
|
hosts = [ "radarr.kun.is" ];
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
prowlarr = {
|
|
|
|
metadata.annotations = {
|
|
|
|
"cert-manager.io/cluster-issuer" = "letsencrypt";
|
|
|
|
"traefik.ingress.kubernetes.io/router.entrypoints" = "localsecure";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
ingressClassName = "traefik";
|
|
|
|
|
|
|
|
rules = [{
|
|
|
|
host = "prowlarr.kun.is";
|
|
|
|
|
|
|
|
http.paths = [{
|
|
|
|
path = "/";
|
|
|
|
pathType = "Prefix";
|
|
|
|
|
|
|
|
backend.service = {
|
|
|
|
name = "prowlarr";
|
|
|
|
port.number = 80;
|
|
|
|
};
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
|
|
|
|
tls = [{
|
|
|
|
secretName = "prowlarr-tls";
|
|
|
|
hosts = [ "prowlarr.kun.is" ];
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sonarr = {
|
|
|
|
metadata.annotations = {
|
|
|
|
"cert-manager.io/cluster-issuer" = "letsencrypt";
|
|
|
|
"traefik.ingress.kubernetes.io/router.entrypoints" = "localsecure";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
ingressClassName = "traefik";
|
|
|
|
|
|
|
|
rules = [{
|
|
|
|
host = "sonarr.kun.is";
|
|
|
|
|
|
|
|
http.paths = [{
|
|
|
|
path = "/";
|
|
|
|
pathType = "Prefix";
|
|
|
|
|
|
|
|
backend.service = {
|
|
|
|
name = "sonarr";
|
|
|
|
port.number = 80;
|
|
|
|
};
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
|
|
|
|
tls = [{
|
|
|
|
secretName = "sonarr-tls";
|
|
|
|
hosts = [ "sonarr.kun.is" ];
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
bazarr = {
|
|
|
|
metadata.annotations = {
|
|
|
|
"cert-manager.io/cluster-issuer" = "letsencrypt";
|
|
|
|
"traefik.ingress.kubernetes.io/router.entrypoints" = "localsecure";
|
|
|
|
};
|
|
|
|
spec = {
|
|
|
|
ingressClassName = "traefik";
|
|
|
|
|
|
|
|
rules = [{
|
|
|
|
host = "bazarr.kun.is";
|
|
|
|
|
|
|
|
http.paths = [{
|
|
|
|
path = "/";
|
|
|
|
pathType = "Prefix";
|
|
|
|
|
|
|
|
backend.service = {
|
|
|
|
name = "bazarr";
|
|
|
|
port.number = 80;
|
|
|
|
};
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
|
|
|
|
tls = [{
|
|
|
|
secretName = "bazarr-tls";
|
|
|
|
hosts = [ "bazarr.kun.is" ];
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
2024-04-06 14:15:01 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|