-
-
Notifications
You must be signed in to change notification settings - Fork 67
/
redis.yaml
45 lines (45 loc) · 816 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
38
39
40
41
42
43
44
45
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: colossus-redis-cluster
spec:
selector:
matchLabels:
app: redis
role: main
tier: backend
replicas: 1
template:
metadata:
labels:
app: redis
role: main
tier: backend
spec:
containers:
- name: main
image: k8s.gcr.io/redis:e2e
imagePullPolicy: Always
resources:
requests:
cpu: 100m
memory: 100Mi
ports:
- containerPort: 6379
---
apiVersion: v1
kind: Service
metadata:
name: colossus-redis-cluster
labels:
app: redis
role: main
tier: backend
spec:
ports:
- port: 6379
targetPort: 6379
selector:
app: redis
role: main
tier: backend