43 lines
840 B
YAML
43 lines
840 B
YAML
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: bentopdf-service
|
|
namespace: converters
|
|
spec:
|
|
selector:
|
|
app: bentopdf
|
|
ports:
|
|
- port: 8080
|
|
targetPort: 8080
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: bentopdf-deployment
|
|
namespace: converters
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: bentopdf
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: bentopdf
|
|
spec:
|
|
containers:
|
|
- image: bentopdf/bentopdf:latest
|
|
imagePullPolicy: Always
|
|
name: bentopdf
|
|
ports:
|
|
- containerPort: 8080
|
|
resources:
|
|
requests:
|
|
memory: "50Mi"
|
|
cpu: "50m"
|
|
ephemeral-storage: "100Mi"
|
|
limits:
|
|
memory: "700Mi"
|
|
cpu: "700m"
|
|
ephemeral-storage: "5Gi"
|