86 lines
1.9 KiB
Nix
86 lines
1.9 KiB
Nix
{
|
|
kubernetes.resources = {
|
|
configMaps.freshrss.data = {
|
|
TZ = "Europe/Amsterdam";
|
|
CRON_MIN = "2,32";
|
|
ADMIN_EMAIL = "pim@kunis.nl";
|
|
PUBLISHED_PORT = "443";
|
|
};
|
|
|
|
secrets.freshrss.stringData.adminPassword = "ref+sops://secrets/sops.yaml#/freshrss/password";
|
|
|
|
deployments.freshrss = {
|
|
metadata.labels.app = "freshrss";
|
|
|
|
spec = {
|
|
selector.matchLabels.app = "freshrss";
|
|
|
|
strategy = {
|
|
type = "RollingUpdate";
|
|
|
|
rollingUpdate = {
|
|
maxSurge = 0;
|
|
maxUnavailable = 1;
|
|
};
|
|
};
|
|
|
|
template = {
|
|
metadata.labels.app = "freshrss";
|
|
|
|
spec = {
|
|
containers.freshrss = {
|
|
image = "freshrss/freshrss:1.24.1";
|
|
imagePullPolicy = "Always";
|
|
envFrom = [{ configMapRef.name = "freshrss"; }];
|
|
ports.web.containerPort = 80;
|
|
|
|
env = {
|
|
ADMIN_PASSWORD.valueFrom.secretKeyRef = {
|
|
name = "freshrss";
|
|
key = "adminPassword";
|
|
};
|
|
|
|
ADMIN_API_PASSWORD.valueFrom.secretKeyRef = {
|
|
name = "freshrss";
|
|
key = "adminPassword";
|
|
};
|
|
};
|
|
|
|
volumeMounts = [{
|
|
name = "data";
|
|
mountPath = "/var/www/FreshRSS/data";
|
|
}];
|
|
};
|
|
|
|
volumes.data.persistentVolumeClaim.claimName = "freshrss";
|
|
|
|
securityContext = {
|
|
fsGroup = 33;
|
|
fsGroupChangePolicy = "OnRootMismatch";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
services.freshrss.spec = {
|
|
selector.app = "freshrss";
|
|
|
|
ports.web = {
|
|
port = 80;
|
|
targetPort = "web";
|
|
};
|
|
};
|
|
};
|
|
|
|
lab = {
|
|
ingresses.freshrss = {
|
|
host = "rss.kun.is";
|
|
|
|
service = {
|
|
name = "freshrss";
|
|
portName = "web";
|
|
};
|
|
};
|
|
};
|
|
}
|