---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  annotations:
    fabric8.io/git-commit: d70a5c7d7d059c24034049574e1126d007d2eac2
    fabric8.io/metrics-path: dashboard/file/kubernetes-pods.json/?var-project=mattermost&var-version=4.0.103
    fabric8.io/scm-con-url: scm:git:git@github.com:fabric8io/fabric8-platform.git/apps/mattermost
    fabric8.io/scm-url: http://github.com/fabric8io/fabric8-platform/apps/mattermost
    fabric8.io/git-branch: release-v4.0.103
    fabric8.io/scm-devcon-url: scm:git:git@github.com:fabric8io/fabric8-platform.git/apps/mattermost
    fabric8.io/scm-tag: app-console-2.0.1
  labels:
    provider: fabric8
    project: mattermost
    version: 4.0.103
    group: io.fabric8.platform.apps
  name: mattermost
spec:
  replicas: 1
  selector:
    matchLabels:
      project: mattermost
      provider: fabric8
      group: io.fabric8.platform.apps
  template:
    metadata:
      annotations:
        fabric8.io/git-commit: d70a5c7d7d059c24034049574e1126d007d2eac2
        fabric8.io/metrics-path: dashboard/file/kubernetes-pods.json/?var-project=mattermost&var-version=4.0.103
        fabric8.io/scm-con-url: scm:git:git@github.com:fabric8io/fabric8-platform.git/apps/mattermost
        fabric8.io/scm-url: http://github.com/fabric8io/fabric8-platform/apps/mattermost
        fabric8.io/git-branch: release-v4.0.103
        fabric8.io/scm-devcon-url: scm:git:git@github.com:fabric8io/fabric8-platform.git/apps/mattermost
        fabric8.io/scm-tag: app-console-2.0.1
        pod.alpha.kubernetes.io/init-containers: '[{"image":"busybox","imagePullPolicy":"IfNotPresent","name":"fmp-volume-permission","command":["chmod","777","/mattermost/data/"],"volumeMounts":[{"mountPath":"/mattermost/data/","name":"mattermost-data"}]}]'
      labels:
        app: mattermost
        tier: app
        provider: fabric8
        project: mattermost
        version: 4.0.103
        group: io.fabric8.platform.apps
      name: mattermost-app
    spec:
      containers:
      - env:
        - name: MM_SQLSETTINGS_DATASOURCE
          valueFrom:
            secretKeyRef:
              key: mm-datasource
              name: mattermost
        image: fabric8/mattermost:vbc557c5
        livenessProbe:
          httpGet:
            path: /
            port: 8065
          initialDelaySeconds: 60
          timeoutSeconds: 10
        name: mattermost-app
        readinessProbe:
          httpGet:
            path: /
            port: 8065
          initialDelaySeconds: 10
          timeoutSeconds: 10
        volumeMounts:
        - mountPath: /mattermost/data/
          name: mattermost-data
          readOnly: true
        - mountPath: /mattermost/config/
          name: mattermost-config
      volumes:
      - name: mattermost-data
        persistentVolumeClaim:
          claimName: mattermost-data
      - configMap:
          items:
          - key: config.json
            path: config.json
          name: mattermost
        name: mattermost-config
