add exposed port

This commit is contained in:
NyxErinys 2026-05-27 03:16:49 -05:00
parent 9069837f2f
commit 0a51eebcb0

View file

@ -20,6 +20,12 @@
name = "ubuntu-test";
image = "ubuntu:26.04";
command = [ "tail" "-f" "/dev/null" ];
ports = [
{
name = "test-port";
containerPort = 80;
}
];
volumeMounts = [
{
mountPath = "/test";
@ -60,5 +66,22 @@
};
};
}
{
apiVersion = "v1";
kind = "Service";
metadata.name = "test-service";
spec = {
type = "NodePort";
selector.app = "ubuntu-test";
ports = [
{
name = "test-port";
portocol = "TCP";
port = 80;
nodePort = 32767;
}
];
};
}
];
}