Add redis for caching
This commit is contained in:
parent
f37cffaf94
commit
019cfea0bd
2 changed files with 34 additions and 0 deletions
|
@ -6,3 +6,4 @@ resources:
|
|||
- mariadb.yaml
|
||||
- replicator.yaml
|
||||
- namespace.yaml
|
||||
- redis.yaml
|
||||
|
|
33
deployments/operators/redis.yaml
Normal file
33
deployments/operators/redis.yaml
Normal file
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: redis
|
||||
namespace: home-server
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: redis
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: redis
|
||||
spec:
|
||||
containers:
|
||||
- name: redis
|
||||
image: redis:7
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: redis
|
||||
namespace: home-server
|
||||
spec:
|
||||
selector:
|
||||
app: redis
|
||||
ports:
|
||||
- port: 6379
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue