Skip to content

Commit

Permalink
Add k8s yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Oct 10, 2024
1 parent abe4c8a commit 8f5bda0
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/k8s/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,10 @@ spec:
name: islandora-cache-warmer
port:
number: 8080
- path: /mergepdf(/|$)(.*)
pathType: Prefix
backend:
service:
name: islandora-mergepdf
port:
number: 8080
46 changes: 46 additions & 0 deletions ci/k8s/mergepdf.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8f5bda0

Please sign in to comment.