This repository has been archived on 2021-08-31. You can view files and clone it, but cannot push or open issues or pull requests.
mattermost/contrib/kubernetes/mattermost.deployment.yaml
2016-10-08 19:12:56 +09:00

62 lines
1.5 KiB
YAML

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: mattermost-app
labels:
app: mattermost
tier: app
namespace: default
spec:
replicas: 1
template:
metadata:
name: mattermost-app
labels:
app: mattermost
tier: app
spec:
containers:
- name: mattermost-app
image: "mattermost/mattermost-prod-app:3"
env:
- name: DB_HOST
valueFrom:
secretKeyRef:
name: mattermost.env
key: db-host
- name: DB_PORT
valueFrom:
secretKeyRef:
name: mattermost.env
key: db-port
- name: MM_USERNAME
valueFrom:
secretKeyRef:
name: mattermost.env
key: mm-username
- name: MM_PASSWORD
valueFrom:
secretKeyRef:
name: mattermost.env
key: mm-password
- name: MM_DBNAME
valueFrom:
secretKeyRef:
name: mattermost.env
key: mm-dbname
volumeMounts:
# optional persistant storage
#- name: appdata
#mountPath: /mattermost/data
- name: etclocaltime
mountPath: /etc/localtime
readOnly: true
volumes:
# optional persistant storage
#- name: appdata
#persistentVolumeClaim:
# claimName: mattermost-app
- name: etclocaltime
hostPath:
path: /etc/localtime