apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: backend
  name: backend
spec:
  replicas: 6
  selector:
    matchLabels:
      app: backend
  template:
    metadata:
      labels:
        app: backend
        version: "1"
    spec:
      containers:
      - image: httpd:alpine
        name: apache
        volumeMounts:
                - name: fichierswebstatiques
                  mountPath: /usr/local/apache2/htdocs
      volumes:
            - name: fichierswebstatiques
              persistentVolumeClaim:
                      claimName: volume-qui-dure
