pod to deployment

This commit is contained in:
NyxErinys 2026-05-27 02:10:33 -05:00
parent 5957426c30
commit d6cca37b8e
2 changed files with 53 additions and 42 deletions

View file

@ -55,7 +55,7 @@ in
systemd.services.k3s = { systemd.services.k3s = {
restartTriggers = [ restartTriggers = [
(builtins.attrNames config.services.k3s.manifests) (builtins.toJSON config.services.k3s.manifests)
]; ];
stopIfChanged = false; stopIfChanged = false;
after = [ "rpcbind.service" "network-online.target" ]; after = [ "rpcbind.service" "network-online.target" ];

View file

@ -2,14 +2,23 @@
{ {
ubuntu-test.content = [ ubuntu-test.content = [
{ {
apiVersion = "v1"; apiVersion = "apps/v1";
kind = "Pod"; kind = "Deployment";
metadata.name = "ubuntu-test"; metadata = {
name = "ubuntu-test";
labels.app = "ubuntu-test"
};
spec = {
selector.matchLabels.app = "ubuntu-test";
template = {
metadata = {
labels.app = "ubuntu-test";
};
spec = { spec = {
containers = [ containers = [
{ {
name = "ubuntu-test"; name = "ubuntu-test";
image = "ubuntu:latest"; image = "ubuntu:26.04";
command = [ "tail" "-f" "/dev/null" ]; command = [ "tail" "-f" "/dev/null" ];
volumeMounts = [ volumeMounts = [
{ {
@ -48,6 +57,8 @@
} }
]; ];
}; };
};
};
} }
]; ];
} }