Mount media locally
This commit is contained in:
parent
7418159761
commit
851a7d0dcf
1 changed files with 63 additions and 3 deletions
|
@ -162,6 +162,18 @@ in {
|
||||||
fsGroup = 51;
|
fsGroup = 51;
|
||||||
fsGroupChangePolicy = "OnRootMismatch";
|
fsGroupChangePolicy = "OnRootMismatch";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms = [
|
||||||
|
{
|
||||||
|
matchExpressions = [
|
||||||
|
{
|
||||||
|
key = "hasMedia";
|
||||||
|
operator = "In";
|
||||||
|
values = ["true"];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -268,13 +280,29 @@ in {
|
||||||
|
|
||||||
volumes = {
|
volumes = {
|
||||||
config.persistentVolumeClaim.claimName = "radarr";
|
config.persistentVolumeClaim.claimName = "radarr";
|
||||||
media.persistentVolumeClaim.claimName = "media";
|
|
||||||
|
media.hostPath = {
|
||||||
|
path = "/mnt/longhorn/persistent/media";
|
||||||
|
type = "Directory";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
securityContext = {
|
securityContext = {
|
||||||
fsGroup = 410;
|
fsGroup = 410;
|
||||||
fsGroupChangePolicy = "OnRootMismatch";
|
fsGroupChangePolicy = "OnRootMismatch";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms = [
|
||||||
|
{
|
||||||
|
matchExpressions = [
|
||||||
|
{
|
||||||
|
key = "hasMedia";
|
||||||
|
operator = "In";
|
||||||
|
values = ["true"];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -381,13 +409,29 @@ in {
|
||||||
|
|
||||||
volumes = {
|
volumes = {
|
||||||
config.persistentVolumeClaim.claimName = "sonarr";
|
config.persistentVolumeClaim.claimName = "sonarr";
|
||||||
media.persistentVolumeClaim.claimName = "media";
|
|
||||||
|
media.hostPath = {
|
||||||
|
path = "/mnt/longhorn/persistent/media";
|
||||||
|
type = "Directory";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
securityContext = {
|
securityContext = {
|
||||||
fsGroup = 411;
|
fsGroup = 411;
|
||||||
fsGroupChangePolicy = "OnRootMismatch";
|
fsGroupChangePolicy = "OnRootMismatch";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms = [
|
||||||
|
{
|
||||||
|
matchExpressions = [
|
||||||
|
{
|
||||||
|
key = "hasMedia";
|
||||||
|
operator = "In";
|
||||||
|
values = ["true"];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -441,13 +485,29 @@ in {
|
||||||
|
|
||||||
volumes = {
|
volumes = {
|
||||||
config.persistentVolumeClaim.claimName = "bazarr";
|
config.persistentVolumeClaim.claimName = "bazarr";
|
||||||
media.persistentVolumeClaim.claimName = "media";
|
|
||||||
|
media.hostPath = {
|
||||||
|
path = "/mnt/longhorn/persistent/media";
|
||||||
|
type = "Directory";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
securityContext = {
|
securityContext = {
|
||||||
fsGroup = 412;
|
fsGroup = 412;
|
||||||
fsGroupChangePolicy = "OnRootMismatch";
|
fsGroupChangePolicy = "OnRootMismatch";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms = [
|
||||||
|
{
|
||||||
|
matchExpressions = [
|
||||||
|
{
|
||||||
|
key = "hasMedia";
|
||||||
|
operator = "In";
|
||||||
|
values = ["true"];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue