apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: site
spec:
  replicas: {{ .Values.frontendReplicas }}
  template:
    metadata:
      labels:
        app: extendedmind
        tier: frontend
        role: server
        project: frontend-site
        version: ${project.version}
        group: org.extendedmind.frontend
    spec:
      containers:
      - name: site
        image: quay.io/{{ .Values.quayIoOrg }}/site:${project.version}
        ports:
        - name: koa
          containerPort: 3000
        env:
        - name: EXTENDEDMIND_URL
          value: {{ .Values.urlOrigin }}
        volumeMounts:
        - name: publicdir
          mountPath: /app/site-public
      volumes:
      - name: publicdir
        persistentVolumeClaim:
          claimName: shared

apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: site
spec:
  replicas: {{ .Values.frontendReplicas }}
  template:
    metadata:
      labels:
        app: extendedmind
        tier: frontend
        role: server
        project: frontend-site
        version: ${project.version}
        group: org.extendedmind.frontend
    spec:
      containers:
      - name: site
        image: quay.io/{{ .Values.quayIoOrg }}/site:${project.version}
        ports:
        - name: koa
          containerPort: 3000
        env:
        - name: EXTENDEDMIND_URL
          value: {{ .Values.urlOrigin }}
        volumeMounts:
        - name: publicdir
          mountPath: /app/site-public
          subPath: extendedmind
      volumes:
      - name: publicdir
        persistentVolumeClaim:
          claimName: shared

Use subPath 'extendedmind' under NFS to make it possible to mount other sites beside this.
Use subPath 'extendedmind' under NFS to make it possible to mount other sites beside this.
