nitter readonly deployment

This commit is contained in:
Gabriel Simmer 2024-03-31 02:06:06 +01:00
parent 712e488c89
commit f2a8ed2065
Signed by: arch
SSH key fingerprint: SHA256:m3OEcdtrnBpMX+2BDGh/byv3hrCekCLzDYMdvGEKPPQ
2 changed files with 31 additions and 2 deletions

View file

@ -9,6 +9,14 @@
data = ["100::"];
};
};
"uptime" = {
a = {
data = ["91.107.206.145"];
};
aaaa = {
data = ["2a01:4f8:c012:5ec6::"];
};
};
"cluster" = {
a = {
data = ["100.77.43.133" "100.121.5.8" "100.106.229.20"];
@ -36,7 +44,6 @@
"request-media"
"tools"
"ytproxy"
"nitter"
"changedetect"
] (name: {cname.data = "cluster";})
// lib.attrsets.genAttrs [
@ -50,6 +57,7 @@
"proxmox"
"pw"
"tokyo"
"nitter"
] (name: {
cname = {
ttl = 0;

View file

@ -15,6 +15,10 @@ in
port = 8080;
targetPort = 8080;
};
ports.readonly = {
port = 8081;
targetPort = 8081;
};
};
};
kubernetes.resources.deployments.nitter.spec = {
@ -42,7 +46,24 @@ in
subPath = "guest_accounts.json";
}
];
ports.tlshttp.containerPort = 8080;
ports.http.containerPort = 8080;
};
nitter-ro = {
image = nitterImage;
imagePullPolicy = "Always";
volumeMounts = [
{
name = "config";
mountPath = "/src/nitter.conf";
subPath = "nitter-ro.conf";
}
{
name = "accounts";
mountPath = "/src/guest_accounts.json";
subPath = "guest_accounts.json";
}
];
ports.http.containerPort = 8081;
};
};
};