1
0
Fork 0
mirror of https://gitlab.com/shouptech/flux.git synced 2026-02-03 21:59:44 +00:00
flux/workloads/nextcloud/redis-deploy.yml
2020-02-17 19:10:02 -07:00

46 lines
1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
namespace: nextcloud
spec:
replicas: 1
selector:
matchLabels:
app: redis
template:
metadata:
labels:
app: redis
spec:
containers:
- image: redis:5.0.7-alpine
imagePullPolicy: IfNotPresent
name: redis
command:
- redis-server
args:
- /usr/local/etc/redis/redis.conf
livenessProbe:
tcpSocket:
port: 6379
initialDelaySeconds: 15
periodSeconds: 30
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 2
resources:
requests:
memory: "32Mi"
cpu: "100m"
limits:
memory: "256Mi"
ports:
- containerPort: 6379
volumeMounts:
- name: redis-conf
mountPath: /usr/local/etc/redis/
volumes:
- name: redis-conf
configMap:
name: redis