From 02dbea230c650b3d00e372a7609585bd219b6e9e Mon Sep 17 00:00:00 2001 From: Jp Date: Thu, 26 Feb 2026 11:27:10 +0800 Subject: [PATCH] fix(deploy): add sudo to kubectl apply command for proper permissions The deploy-server target was failing due to insufficient permissions on the remote server. Adding sudo ensures kubectl can apply the deployment configuration. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bbce8af..9a14422 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ deploy-server: @cat k8s/deployment.yaml >> /tmp/server_deploy.yaml @# Single SCP/SSH call to reduce password prompts scp /tmp/server_deploy.yaml $(SERVER_USER)@$(SERVER_IP):/tmp/server_deploy.yaml - ssh $(SERVER_USER)@$(SERVER_IP) "kubectl apply -f /tmp/server_deploy.yaml && rm /tmp/server_deploy.yaml" + ssh $(SERVER_USER)@$(SERVER_IP) "sudo kubectl apply -f /tmp/server_deploy.yaml && rm /tmp/server_deploy.yaml" @rm /tmp/server_deploy.yaml stop: