apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: kubecms
  name: kubecms-backoffice
  labels:
    app: kubecms
    service: kubecms-backoffice
spec:
  replicas: 1
  selector:
    matchLabels:
      app: kubecms
      service: kubecms-backoffice
  template:
    metadata:
      labels:
        app: kubecms
        service: kubecms-backoffice
    spec:
      volumes:
      - name: kubecms-backoffice-volume
        persistentVolumeClaim:
          claimName: kubecms-backoffice-pvc
      containers:
      - name: kubecms-backoffice
        image: kubecms/kubecms-backoffice:latest
        ports:
        - containerPort: 80
        volumeMounts:
        - name: kubecms-backoffice-volume
          mountPath: /data/kubecms/backoffice/