From e2004844d135c94721752491e3e0288d68fe26c8 Mon Sep 17 00:00:00 2001 From: Tamipes Date: Tue, 23 Jun 2026 00:23:57 +0200 Subject: [PATCH] doc: kubernetes dev cycle --- README.md | 6 ++++++ upload.sh | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100755 upload.sh diff --git a/README.md b/README.md index 54b2413..507883c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ # Development TODO: fill this out +### Kubernetes test deployment +```bash +./upload.sh +# sudo kubectl apply -f kube/test-deployment.yaml # Apply the test deployment if it wasn't already +sudo kubectl rollout restart deployment minecraft-ingress +``` ### Nix shell with tmux In the nix flake there is a devshell setup with cargo and tmux. When using tmux it uses a set tmux server path, so only this project uses it. diff --git a/upload.sh b/upload.sh new file mode 100755 index 0000000..084f6f6 --- /dev/null +++ b/upload.sh @@ -0,0 +1,8 @@ +USERNAME="tamipes" +URL="git.tami.moe" +IMG_NAME="minecraft-ingress" +nix build --extra-experimental-features "flakes nix-command" .#docker-image +sudo docker load -i result +sudo docker image tag mc-ingress "$URL/$USERNAME/$IMG_NAME:testing" +sudo docker image push "$URL/$USERNAME/$IMG_NAME:testing" +