aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/kustomization.yaml
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/kustomization.yaml
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/kustomization.yaml')
-rw-r--r--kubernetes/kustomization.yaml51
1 files changed, 51 insertions, 0 deletions
diff --git a/kubernetes/kustomization.yaml b/kubernetes/kustomization.yaml
new file mode 100644
index 00000000..4155f71f
--- /dev/null
+++ b/kubernetes/kustomization.yaml
@@ -0,0 +1,51 @@
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+
+namespace: hoarder
+
+configMapGenerator:
+- envs:
+ - .env
+ name: hoarder-env
+
+resources:
+- namespace.yaml
+- web-deployment.yaml
+- web-service.yaml
+- redis-deployment.yaml
+- redis-service.yaml
+- chrome-deployment.yaml
+- meilisearch-deployment.yaml
+- meilisearch-service.yaml
+- workers-deployment.yaml
+- redis-pvc.yaml
+- meilisearch-pvc.yaml
+- data-pvc.yaml
+
+replacements:
+- source:
+ fieldPath: data.HOARDER_VERSION
+ kind: ConfigMap
+ name: hoarder-env
+ version: v1
+ targets:
+ - fieldPaths:
+ - spec.template.spec.containers.0.image
+ options:
+ delimiter: ':'
+ index: 1
+ select:
+ group: apps
+ kind: Deployment
+ name: web
+ version: v1
+ - fieldPaths:
+ - spec.template.spec.containers.0.image
+ options:
+ delimiter: ':'
+ index: 1
+ select:
+ group: apps
+ kind: Deployment
+ name: workers
+ version: v1