83 lines
2.3 KiB
YAML
83 lines
2.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
name: mattermost
|
|
namespace: mattermost
|
|
spec:
|
|
progressDeadlineSeconds: 600
|
|
replicas: 1
|
|
revisionHistoryLimit: 10
|
|
selector:
|
|
matchLabels:
|
|
app: mattermost
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
app: mattermost
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: MM_SQLSETTINGS_DRIVERNAME
|
|
value: postgres
|
|
- name: MM_SQLSETTINGS_DATASOURCE
|
|
value: postgres://mattermost:mattermost@postgres:5432/mattermost?sslmode=disable&connect_timeout=10
|
|
image: gitea.lab.cudanet.org/cudanet/mattermost/mattermost:v11.4.0_2
|
|
imagePullPolicy: IfNotPresent
|
|
name: mattermost
|
|
ports:
|
|
- containerPort: 8065
|
|
protocol: TCP
|
|
resources: {}
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
volumeMounts:
|
|
- mountPath: /opt/mattermost/config
|
|
name: mattermost
|
|
subPath: config
|
|
- mountPath: /opt/mattermost/data
|
|
name: mattermost
|
|
subPath: data
|
|
- mountPath: /opt/mattermost/logs
|
|
name: mattermost
|
|
subPath: logs
|
|
- mountPath: /opt/mattermost/plugins
|
|
name: mattermost
|
|
subPath: plugins
|
|
- mountPath: /opt/mattermost/client/plugins
|
|
name: mattermost
|
|
subPath: client-plugins
|
|
- mountPath: /opt/mattermost/bleve-indexes
|
|
name: mattermost
|
|
subPath: bleve-indexes
|
|
dnsPolicy: ClusterFirst
|
|
initContainers:
|
|
- command:
|
|
- sh
|
|
- -c
|
|
- mkdir -p /mnt/mm/config /mnt/mm/data /mnt/mm/logs /mnt/mm/plugins /mnt/mm/client-plugins
|
|
/mnt/mm/bleve-indexes
|
|
image: busybox:latest
|
|
imagePullPolicy: Always
|
|
name: init-directories
|
|
resources: {}
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
volumeMounts:
|
|
- mountPath: /mnt/mm
|
|
name: mattermost
|
|
restartPolicy: Always
|
|
schedulerName: default-scheduler
|
|
securityContext: {}
|
|
terminationGracePeriodSeconds: 30
|
|
volumes:
|
|
- name: mattermost
|
|
persistentVolumeClaim:
|
|
claimName: mattermost
|