migrate prowlarr to kubernetes
This commit is contained in:
parent
75b609ea90
commit
100af46f88
3 changed files with 127 additions and 24 deletions
|
@ -18,6 +18,12 @@
|
|||
PGID = "1000";
|
||||
TZ = "Europe/Amsterdam";
|
||||
};
|
||||
|
||||
prowlarr-env.data = {
|
||||
PUID = "1000";
|
||||
PGID = "1000";
|
||||
TZ = "Europe/Amsterdam";
|
||||
};
|
||||
};
|
||||
|
||||
deployments = {
|
||||
|
@ -236,6 +242,49 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
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";
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
persistentVolumes = {
|
||||
|
@ -288,6 +337,16 @@
|
|||
path = "/mnt/data/nfs/radarr/config";
|
||||
};
|
||||
};
|
||||
|
||||
prowlarr-config.spec = {
|
||||
capacity.storage = "1Mi";
|
||||
accessModes = [ "ReadWriteMany" ];
|
||||
|
||||
nfs = {
|
||||
server = "lewis.hyp";
|
||||
path = "/mnt/data/nfs/prowlarr/config";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
persistentVolumeClaims = {
|
||||
|
@ -325,6 +384,13 @@
|
|||
resources.requests.storage = "1Mi";
|
||||
volumeName = "radarr-config";
|
||||
};
|
||||
|
||||
prowlarr-config.spec = {
|
||||
accessModes = [ "ReadWriteMany" ];
|
||||
storageClassName = "";
|
||||
resources.requests.storage = "1Mi";
|
||||
volumeName = "prowlarr-config";
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
|
@ -395,6 +461,19 @@
|
|||
targetPort = 7878;
|
||||
}];
|
||||
};
|
||||
|
||||
prowlarr.spec = {
|
||||
selector = {
|
||||
app = "media";
|
||||
component = "prowlarr";
|
||||
};
|
||||
|
||||
ports = [{
|
||||
protocol = "TCP";
|
||||
port = 80;
|
||||
targetPort = 9696;
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
ingresses = {
|
||||
|
@ -469,6 +548,24 @@
|
|||
}];
|
||||
}];
|
||||
};
|
||||
|
||||
prowlarr.spec = {
|
||||
ingressClassName = "traefik";
|
||||
|
||||
rules = [{
|
||||
host = "prowlarr.kun.is";
|
||||
|
||||
http.paths = [{
|
||||
path = "/";
|
||||
pathType = "Prefix";
|
||||
|
||||
backend.service = {
|
||||
name = "prowlarr";
|
||||
port.number = 80;
|
||||
};
|
||||
}];
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Reference in a new issue