-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
61 lines (60 loc) · 1.61 KB
/
deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: mattermost
namespace: gitlab
spec:
replicas: 1
template:
metadata:
labels:
app: mattermost
annotations:
pod.boostport.com/vault-approle: gitlab-mattermost
pod.boostport.com/vault-init-container: install
pod.beta.kubernetes.io/init-containers: '[
{
"name": "install",
"image": "boostport/kubernetes-vault-init:0.2.0",
"imagePullPolicy": "IfNotPresent",
"env": [
{
"name": "VAULT_ROLE_ID",
"value": "f3357628-90bf-65d1-fc62-897e159f82ad"
},
{
"name": "CREDENTIALS_PATH",
"value": "/secrets"
}
],
"volumeMounts": [
{
"name": "vault-token",
"mountPath": "/secrets"
}
]
}
]'
spec:
volumes:
- name: vault-token
emptyDir: {}
containers:
- image: nebtex/mattermost-docker
ports:
- containerPort: 80
imagePullPolicy: Always
name: mattermost
env:
- name: CONSUL_HTTP_ADDR
value: consul.kv:8500
- name: APP_NAME
value: mattermost
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
volumeMounts:
- name: vault-token
mountPath: /secrets