#15 simplistic approach to single node redis cacher
This commit is contained in:
parent
04af60892e
commit
fd1505a934
1 changed files with 12 additions and 0 deletions
|
@ -14,11 +14,22 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: redis
|
app: redis
|
||||||
spec:
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
role: dck
|
||||||
containers:
|
containers:
|
||||||
- name: redis
|
- name: redis
|
||||||
image: redis:7
|
image: redis:7
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 6379
|
- containerPort: 6379
|
||||||
|
volumeMounts:
|
||||||
|
- name: redis-data
|
||||||
|
mountPath: /data
|
||||||
|
volumes:
|
||||||
|
- name: redis-data
|
||||||
|
hostPath:
|
||||||
|
path: /dpool/services/redis/data
|
||||||
|
type: DirectoryOrCreate
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
@ -30,4 +41,5 @@ spec:
|
||||||
app: redis
|
app: redis
|
||||||
ports:
|
ports:
|
||||||
- port: 6379
|
- port: 6379
|
||||||
|
targetPort: 6379
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue