-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathredis.yml
61 lines (61 loc) · 1.2 KB
/
redis.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
---
kind: DeploymentConfig
apiVersion: v1
metadata:
name: redis
labels:
service: redis
spec:
selector:
service: redis
template:
metadata:
labels:
service: redis
name: redis
spec:
containers:
- name: redis
image: registry.fedoraproject.org/f28/redis
ports:
- containerPort: 6379
volumeMounts:
- mountPath: "/var/lib/redis/data"
name: redis-pv
resources:
requests:
memory: "400Mi"
cpu: "200m"
limits:
memory: "800Mi"
cpu: "400m"
volumes:
- name: redis-pv
persistentVolumeClaim:
claimName: redis-pvc
replicas: 1
strategy:
type: Recreate
---
apiVersion: v1
kind: Service
metadata:
name: redis
spec:
ports:
- name: "6379"
port: 6379
targetPort: 6379
selector:
service: redis
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redis-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi