-
Notifications
You must be signed in to change notification settings - Fork 0
/
wuvt-site-redis-prod.yaml
67 lines (67 loc) · 1.44 KB
/
wuvt-site-redis-prod.yaml
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
62
63
64
65
66
67
apiVersion: v1
kind: Pod
metadata:
name: wuvt-site-redis-prod-mgmt
spec:
containers:
- name: redis
image: redis:4-alpine
command:
- sh
stdin: true
tty: true
volumeMounts:
- name: redis-data
mountPath: /data
volumes:
- name: redis-data
hostPath:
path: /media/local-storage/wuvt-site-redis-prod-data
nodeName: columbia
tolerations:
- key: node-role.kubernetes.io/dbserver
operator: Exists
effect: NoSchedule
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: wuvt-site-redis
instance: prod
name: wuvt-site-redis-prod
spec:
replicas: 1
template:
metadata:
labels:
app: wuvt-site-redis
instance: prod
spec:
containers:
- name: redis
image: redis:4-alpine
args:
- '--requirepass $(REDIS_PASSWORD)'
- '--rename-command CONFIG ""'
- '--appendonly yes'
env:
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: wuvt-site-redis-prod
key: password
ports:
- containerPort: 6379
volumeMounts:
- name: redis-data
mountPath: /data
volumes:
- name: redis-data
hostPath:
path: /media/local-storage/wuvt-site-redis-prod-data
nodeName: columbia
tolerations:
- key: node-role.kubernetes.io/dbserver
operator: Exists
effect: NoSchedule