-
Notifications
You must be signed in to change notification settings - Fork 0
/
chirpstack-redis.yaml
54 lines (52 loc) · 1009 Bytes
/
chirpstack-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
46
47
48
49
50
51
52
apiVersion: apps/v1
kind: Deployment
metadata:
name: chirpstack-redis
spec:
selector:
matchLabels:
app: chirpstack-redis
template:
metadata:
labels:
app: chirpstack-redis
spec:
containers:
- name: chirpstack-redis
image: redis:7
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 6379
volumeMounts:
- name: chirpstack-redis-data
mountPath: /data
volumes:
- name: chirpstack-redis-data
persistentVolumeClaim:
claimName: chirpstack-redis-data
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: chirpstack-redis-data
spec:
resources:
requests:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
---
apiVersion: v1
kind: Service
metadata:
name: chirpstack-redis-service
spec:
selector:
app: chirpstack-redis
ports:
- port: 6379
targetPort: 6379