Actually commit nitter bot deployment manifest
All checks were successful
Lint / lint (push) Successful in 22s

This commit is contained in:
Gabriel Simmer 2024-04-06 00:30:38 +01:00
parent 75854e0e46
commit 1bca7fcaf5
Signed by: arch
SSH key fingerprint: SHA256:m3OEcdtrnBpMX+2BDGh/byv3hrCekCLzDYMdvGEKPPQ

36
homelab/nitter-bot.nix Normal file
View file

@ -0,0 +1,36 @@
let
appName = "nitter-bot";
appImage = "git.gmem.ca/arch/nitter-bot:latest";
in
{
lib,
config,
kubenix,
...
}: {
kubernetes.resources.statefulSets.nitter-bot.spec = {
selector.matchLabels.app = appName;
serviceName = appName;
template = {
metadata.labels.app = appName;
spec = {
containers = {
nitter-bot = {
image = appImage;
envFrom = [{secretRef.name = "nitter-bot";}];
resources = {
requests = {
cpu = "1m";
memory = "32Mi";
};
limits = {
cpu = "1";
memory = "128Mi";
};
};
};
};
};
};
};
}