diff --git a/ci/k8s/ingress.yaml b/ci/k8s/ingress.yaml index 9b28e43..71b5227 100644 --- a/ci/k8s/ingress.yaml +++ b/ci/k8s/ingress.yaml @@ -74,3 +74,10 @@ spec: name: islandora-cache-warmer port: number: 8080 + - path: /mergepdf(/|$)(.*) + pathType: Prefix + backend: + service: + name: islandora-mergepdf + port: + number: 8080 diff --git a/ci/k8s/mergepdf.yaml b/ci/k8s/mergepdf.yaml new file mode 100644 index 0000000..7c6b27c --- /dev/null +++ b/ci/k8s/mergepdf.yaml @@ -0,0 +1,46 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: islandora-mergepdf +spec: + selector: + app: islandora-mergepdf + ports: + - protocol: TCP + port: 8887 + targetPort: 8080 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: islandora-mergepdf +spec: + replicas: 3 + selector: + matchLabels: + app: islandora-mergepdf + template: + metadata: + labels: + app: islandora-mergepdf + spec: + containers: + - name: scyllaridae-mergepdf + image: __DOCKER_REPOSITORY__/scyllaridae-mergepdf:main + imagePullPolicy: IfNotPresent + resources: + requests: + memory: "128Mi" + cpu: "500m" + limits: + memory: "1Gi" + ports: + - containerPort: 8080 + hostPort: 8887 + readinessProbe: + httpGet: + path: /healthcheck + port: 8080 + initialDelaySeconds: 5 + periodSeconds: 10