-
Notifications
You must be signed in to change notification settings - Fork 0
/
redis.yaml
37 lines (37 loc) · 895 Bytes
/
redis.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
kind: "ReplicationController"
apiVersion: "v1"
metadata:
name: "redis-master"
labels:
app: "redis"
role: "master"
spec:
replicas: 1
selector:
app: "redis"
role: "master"
template:
metadata:
labels:
app: "redis"
role: "master"
spec:
containers:
- name: "redis-master"
image: "wallnerryan/redis"
env:
- name: GET_HOSTS_FROM
value: env
command: ["/usr/bin/redis-server", "--appendonly","yes"]
ports:
- name: "redis-server"
containerPort: 6379
volumeMounts:
- name: "redis-master-data"
mountPath: "/var/lib/redis"
volumes:
- name: "redis-master-data"
gcePersistentDisk:
# This disk must already exist.
pdName: datadisk-cluster
fsType: ext4