diff --git a/cluster/apps/gotenberg/gotenberg-svc.yml b/cluster/apps/gotenberg/gotenberg-svc.yml new file mode 100644 index 0000000..cbaad53 --- /dev/null +++ b/cluster/apps/gotenberg/gotenberg-svc.yml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: gotenberg-service + namespace: default +spec: + selector: + app: gotenberg + type: ClusterIP + ports: + - port: 3000 + targetPort: 3000 diff --git a/cluster/apps/gotenberg/gotenberg.yml b/cluster/apps/gotenberg/gotenberg.yml new file mode 100644 index 0000000..e589de7 --- /dev/null +++ b/cluster/apps/gotenberg/gotenberg.yml @@ -0,0 +1,30 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: gotenberg + namespace: default +spec: + selector: + matchLabels: + app: gotenberg + template: + metadata: + labels: + app: gotenberg + spec: + securityContext: + runAsUser: 1001 + containers: + - name: gotenberg + image: gotenberg/gotenberg:8.22 + command: + - sh + - -c + - | + gotenberg --chromium-disable-javascript=true --chromium-allow-list=file:///tmp/.* + ports: + - containerPort: 3000 + securityContext: + readOnlyRootFilesystem: false + allowPrivilegeEscalation: false + privileged: false diff --git a/cluster/apps/paperless-ngx/paperless-ngx.yml b/cluster/apps/paperless-ngx/paperless-ngx.yml index d3c73ad..2765cce 100644 --- a/cluster/apps/paperless-ngx/paperless-ngx.yml +++ b/cluster/apps/paperless-ngx/paperless-ngx.yml @@ -41,6 +41,12 @@ spec: value: "https://ngx.akshun-lab.cc" - name: PAPERLESS_TIME_ZONE value: "Asia/Kolkata" + - name: PAPERLESS_TIKA_ENABLED + value: "1" + - name: PAPERLESS_TIKA_ENDPOINT + value: "http://tika-service:9998" + - name: PAPERLESS_TIKA_GOTENBERG_ENDPOINT + value: "http://gotenberg-service:3000" volumeMounts: - name: data mountPath: /usr/src/paperless/data diff --git a/cluster/apps/tika/tika-service.yml b/cluster/apps/tika/tika-service.yml new file mode 100644 index 0000000..dcc9ec0 --- /dev/null +++ b/cluster/apps/tika/tika-service.yml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: tika-service + namespace: default +spec: + type: ClusterIP + selector: + app: tika + ports: + - port: 9998 + targetPort: 9998 diff --git a/cluster/apps/tika/tika.yml b/cluster/apps/tika/tika.yml new file mode 100644 index 0000000..6cf585f --- /dev/null +++ b/cluster/apps/tika/tika.yml @@ -0,0 +1,19 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: tika + namespace: default +spec: + selector: + matchLabels: + app: tika + template: + metadata: + labels: + app: tika + spec: + containers: + - name: tika + image: apache/tika:3.2.3.0 + ports: + - containerPort: 9998