diff --git a/k8s/nextgen/20-mattermost.yaml b/k8s/nextgen/20-mattermost.yaml index 72687f8..0af6590 100644 --- a/k8s/nextgen/20-mattermost.yaml +++ b/k8s/nextgen/20-mattermost.yaml @@ -23,6 +23,18 @@ spec: targetPort: 8065 type: ClusterIP --- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: mattermost-plugins-pvc + namespace: nextgen +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi +--- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: @@ -95,5 +107,14 @@ spec: value: "false" - name: MM_SERVICESETTINGS_SITEURL value: "https://chat.techarvest.co.zw" + - name: MM_PLUGINSETTINGS_ENABLEUPLOADS + value: "true" ports: - containerPort: 8065 + volumeMounts: + - name: mattermost-plugins + mountPath: /mattermost/plugins + volumes: + - name: mattermost-plugins + persistentVolumeClaim: + claimName: mattermost-plugins-pvc