#15 Add REDIS to database namespace
This commit is contained in:
parent
5d1514beea
commit
658f0bfd7f
1 changed files with 40 additions and 0 deletions
|
@ -58,3 +58,43 @@ spec:
|
||||||
- name: mariadb-operator-crds
|
- name: mariadb-operator-crds
|
||||||
namespace: mariadb-system
|
namespace: mariadb-system
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## REDIS
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: redis
|
||||||
|
namespace: database
|
||||||
|
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: database
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: redis
|
||||||
|
ports:
|
||||||
|
- port: 6379
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## PostgreSQL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue