2024-03-27 19:43:59 +00:00
|
|
|
{
|
|
|
|
kubernetes.resources = {
|
|
|
|
deployments.cyberchef.spec = {
|
|
|
|
replicas = 3;
|
|
|
|
selector.matchLabels.app = "cyberchef";
|
|
|
|
|
|
|
|
template = {
|
|
|
|
metadata.labels.app = "cyberchef";
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
containers.cyberchef = {
|
|
|
|
image = "mpepping/cyberchef";
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
containerPort = 8000;
|
|
|
|
protocol = "TCP";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.cyberchef.spec = {
|
|
|
|
selector.app = "cyberchef";
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
protocol = "TCP";
|
|
|
|
port = 80;
|
|
|
|
targetPort = 8000;
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
2024-04-07 12:07:05 +00:00
|
|
|
ingresses.cyberchef = {
|
|
|
|
metadata.annotations."cert-manager.io/cluster-issuer" = "letsencrypt";
|
2024-03-27 19:43:59 +00:00
|
|
|
|
2024-04-07 12:07:05 +00:00
|
|
|
spec = {
|
|
|
|
ingressClassName = "traefik";
|
2024-03-27 19:43:59 +00:00
|
|
|
|
2024-04-07 12:07:05 +00:00
|
|
|
rules = [{
|
|
|
|
host = "cyberchef.kun.is";
|
2024-03-27 19:43:59 +00:00
|
|
|
|
2024-04-07 12:07:05 +00:00
|
|
|
http.paths = [{
|
|
|
|
path = "/";
|
|
|
|
pathType = "Prefix";
|
|
|
|
|
|
|
|
backend.service = {
|
|
|
|
name = "cyberchef";
|
|
|
|
port.number = 80;
|
|
|
|
};
|
|
|
|
}];
|
2024-03-27 19:43:59 +00:00
|
|
|
}];
|
2024-04-07 12:07:05 +00:00
|
|
|
|
|
|
|
tls = [{
|
|
|
|
secretName = "cyberchef-tls";
|
|
|
|
hosts = [ "cyberchef.kun.is" ];
|
|
|
|
}];
|
|
|
|
};
|
2024-03-27 19:43:59 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|