Skip to content
Snippets Groups Projects
Commit bc291f02 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

refactor: move pg and redis to same file

parent 93346d54
No related branches found
No related tags found
No related merge requests found
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: redis
name: redis
spec:
replicas: 1
selector:
matchLabels:
app: redis
role: master
tier: backend
template:
metadata:
labels:
app: redis
role: master
tier: backend
spec:
containers:
- image: redis
imagePullPolicy: Always
name: master
ports:
- containerPort: 6379
protocol: TCP
resources:
requests:
cpu: 100m
memory: 100M
---
apiVersion: v1
kind: Service
metadata:
labels:
app: redis
role: master
tier: backend
name: redis
spec:
ports:
- port: 6379
protocol: TCP
targetPort: 6379
selector:
app: redis
role: master
tier: backend
type: ClusterIP
......@@ -140,13 +140,6 @@ spec:
image: registry.opensource.zalan.do/acid/logical-backup:v1.6.2
imagePullPolicy: IfNotPresent
name: logical-backup
ports:
- containerPort: 8008
protocol: TCP
- containerPort: 5432
protocol: TCP
- containerPort: 8080
protocol: TCP
resources:
limits:
cpu: "3"
......@@ -162,4 +155,12 @@ spec:
serviceAccount: zalando-postgres
serviceAccountName: zalando-postgres
schedule: '15 2 * * *'
---
apiVersion: core.libre.sh/v1alpha1
kind: Redis
metadata:
name: ${FQDN}-redis
namespace: ${NS}
spec:
disableAuth: true
persistence: {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment