aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/Makefile
diff options
context:
space:
mode:
authorJose Fuentes Castillo <j-fuentes@users.noreply.github.com>2024-07-29 06:56:31 +0200
committerGitHub <noreply@github.com>2024-07-28 21:56:31 -0700
commit7ddfcad392abf5b4c2994c03f599d3a22e51ca96 (patch)
tree602b7c1c8bb2d6f93fa99ec14ef713d8e8e6e36d /kubernetes/Makefile
parent1ca951af8919b572ffb5b178a0286f517660ed74 (diff)
downloadkarakeep-7ddfcad392abf5b4c2994c03f599d3a22e51ca96.tar.zst
docs: Add Kubernetes installation with Kustomize (#324)
* Add kubernetes installation * Add kubernetes installation docs * Simplify config * Remove the patch to use only amd64 nodes and add sample env file
Diffstat (limited to 'kubernetes/Makefile')
-rw-r--r--kubernetes/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/kubernetes/Makefile b/kubernetes/Makefile
new file mode 100644
index 00000000..0ca00e2c
--- /dev/null
+++ b/kubernetes/Makefile
@@ -0,0 +1,24 @@
+# Define the output file
+OUTPUT_FILE := _manifest.yaml
+
+# Define the Kustomize build command
+KUSTOMIZE_BUILD := kustomize build .
+
+# The default target
+all: build
+
+$(OUTPUT_FILE):
+ $(KUSTOMIZE_BUILD) > $(OUTPUT_FILE)
+
+# Build the Kustomize configuration into the output file
+build: clean $(OUTPUT_FILE)
+
+# Deploy the manifest using kubectl apply
+deploy: $(OUTPUT_FILE)
+ kubectl apply -f $(OUTPUT_FILE)
+
+# Clean up the output file
+clean:
+ rm -f $(OUTPUT_FILE)
+
+.PHONY: all build deploy clean