pvc calibre-web
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: calibre-web
namespace: test
spec:
accessModes:
- ReadWriteOnce
storageClassName: nfs
resources:
requests:
storage: 1500Gi
Deployment calibre-web
apiVersion: apps/v1
kind: Deployment
metadata:
name: calibre-web
namespace: test
labels:
app: calibre
spec:
selector:
matchLabels:
app: calibre
replicas: 1
template:
metadata:
labels:
app: calibre
spec:
containers:
- name: calibre-web
image: janeczku/calibre-web
ports:
- name: web
containerPort: 8083
volumeMounts:
- mountPath: /books
name: books
restartPolicy: Always
volumes:
- name: books
persistentVolumeClaim:
claimName: calibre-web
svc calibre-web
apiVersion: v1
kind: Service
metadata:
labels:
app: calibre
name: calibre-web
namespace: test
spec:
ports:
- name: calibre-web
port: 8083
protocol: TCP
targetPort: 8083
nodePort: 30048
selector:
app: calibre
type: NodePort