From 067eb27169ffa8f403c786f5fb3b7870d1046249 Mon Sep 17 00:00:00 2001 From: A B Date: Tue, 27 May 2025 11:55:39 +0000 Subject: [PATCH] Added stirling-pdf --- k8s/apps/stirling-pdf/app.yaml | 21 +++++++++ k8s/apps/stirling-pdf/kustomization.yaml | 15 +++++++ k8s/apps/stirling-pdf/values.yaml | 56 ++++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 k8s/apps/stirling-pdf/app.yaml create mode 100644 k8s/apps/stirling-pdf/kustomization.yaml create mode 100644 k8s/apps/stirling-pdf/values.yaml diff --git a/k8s/apps/stirling-pdf/app.yaml b/k8s/apps/stirling-pdf/app.yaml new file mode 100644 index 0000000..4a81f59 --- /dev/null +++ b/k8s/apps/stirling-pdf/app.yaml @@ -0,0 +1,21 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: stirling-pdf + namespace: argocd +spec: + project: apps + destination: + namespace: stirling-pdf + server: https://kubernetes.default.svc + source: + repoURL: ssh://git@gt.hexor.cy:30022/ab/homelab.git + targetRevision: HEAD + path: k8s/apps/stirling-pdf + syncPolicy: + automated: + selfHeal: true + prune: true + syncOptions: + - CreateNamespace=true + diff --git a/k8s/apps/stirling-pdf/kustomization.yaml b/k8s/apps/stirling-pdf/kustomization.yaml new file mode 100644 index 0000000..dfd33f3 --- /dev/null +++ b/k8s/apps/stirling-pdf/kustomization.yaml @@ -0,0 +1,15 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - app.yaml + +helmCharts: + - name: stirling-pdf-chart + repo: https://stirling-tools.github.io/Stirling-PDF-chart + version: 2.0.0 + releaseName: stirling-pdf + namespace: stirling-pdf + valuesFile: values.yaml + includeCRDs: true + diff --git a/k8s/apps/stirling-pdf/values.yaml b/k8s/apps/stirling-pdf/values.yaml new file mode 100644 index 0000000..88665a1 --- /dev/null +++ b/k8s/apps/stirling-pdf/values.yaml @@ -0,0 +1,56 @@ +replicaCount: 1 + +image: + registry: docker.stirlingpdf.com + repository: stirlingtools/stirling-pdf + tag: "latest" + pullPolicy: Always + +securityContext: + enabled: true + fsGroup: 1000 + +ingress: + enabled: true + ingressClassName: "traefik" + pathType: "Prefix" + + annotations: + cert-manager.io/cluster-issuer: "letsencrypt" + traefik.ingress.kubernetes.io/router.middlewares: kube-system-https-redirect@kubernetescrd + labels: + app: stirling-pdf + + hosts: + - name: pdf.hexor.cy + path: / + tls: true + tlsSecret: pdf-hexor-cy-tls + +resources: + limits: + cpu: 500m + memory: 512Mi + requests: + cpu: 250m + memory: 256Mi + +probes: + liveness: + enabled: true + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 3 + readiness: + enabled: true + initialDelaySeconds: 5 + periodSeconds: 5 + timeoutSeconds: 3 + failureThreshold: 3 + +envs: + - name: UI_APP_NAME + value: "Stirling PDF" + - name: UI_HOME_DESCRIPTION + value: "Your locally hosted one-stop-shop for all your PDF needs."