#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:
|
||||
app: redis
|
||||
spec:
|
||||
nodeSelector:
|
||||
role: dck
|
||||
containers:
|
||||
- name: redis
|
||||
image: redis:7
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
volumeMounts:
|
||||
- name: redis-data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: redis-data
|
||||
hostPath:
|
||||
path: /dpool/services/redis/data
|
||||
type: DirectoryOrCreate
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
@ -30,4 +41,5 @@ spec:
|
|||
app: redis
|
||||
ports:
|
||||
- port: 6379
|
||||
targetPort: 6379
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue