2024-07-30 19:28:35 +00:00
|
|
|
{ myLib, ... }: {
|
2024-07-14 09:47:46 +00:00
|
|
|
kubernetes.resources = {
|
2024-07-14 13:31:58 +00:00
|
|
|
deployments.cyberchef.spec = {
|
2024-07-14 09:47:46 +00:00
|
|
|
replicas = 3;
|
|
|
|
selector.matchLabels.app = "cyberchef";
|
2024-03-27 19:43:59 +00:00
|
|
|
|
2024-07-14 09:47:46 +00:00
|
|
|
template = {
|
|
|
|
metadata.labels.app = "cyberchef";
|
2024-03-27 19:43:59 +00:00
|
|
|
|
2024-07-14 09:47:46 +00:00
|
|
|
spec.containers.cyberchef = {
|
2024-07-30 19:28:35 +00:00
|
|
|
image = myLib.globals.images.cyberchef;
|
2024-08-25 15:04:31 +00:00
|
|
|
imagePullPolicy = "Always";
|
2024-07-14 09:47:46 +00:00
|
|
|
ports.web.containerPort = 8000;
|
2024-03-27 19:43:59 +00:00
|
|
|
};
|
2024-07-14 09:47:46 +00:00
|
|
|
};
|
|
|
|
};
|
2024-03-27 19:43:59 +00:00
|
|
|
|
2024-07-14 13:31:58 +00:00
|
|
|
services.cyberchef.spec = {
|
2024-07-14 09:47:46 +00:00
|
|
|
selector.app = "cyberchef";
|
2024-03-27 19:43:59 +00:00
|
|
|
|
2024-07-14 09:47:46 +00:00
|
|
|
ports.web = {
|
|
|
|
port = 80;
|
|
|
|
targetPort = "web";
|
2024-04-14 19:43:31 +00:00
|
|
|
};
|
2024-03-27 19:43:59 +00:00
|
|
|
};
|
2024-07-14 09:47:46 +00:00
|
|
|
};
|
2024-03-27 19:43:59 +00:00
|
|
|
|
2024-07-14 13:31:58 +00:00
|
|
|
lab.ingresses.cyberchef = {
|
2024-07-14 09:47:46 +00:00
|
|
|
host = "cyberchef.kun.is";
|
2024-04-07 12:07:05 +00:00
|
|
|
|
2024-07-14 09:47:46 +00:00
|
|
|
service = {
|
2024-07-14 13:31:58 +00:00
|
|
|
name = "cyberchef";
|
2024-07-14 09:47:46 +00:00
|
|
|
portName = "web";
|
2024-03-27 19:43:59 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|