mirror of
https://gitlab.com/shouptech/flux.git
synced 2026-02-03 21:59:44 +00:00
40 lines
916 B
YAML
40 lines
916 B
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
|
|
ports:
|
|
- containerPort: 6379
|
|
volumeMounts:
|
|
- name: redis-conf
|
|
mountPath: /usr/local/etc/redis/
|
|
volumes:
|
|
- name: redis-conf
|
|
configMap:
|
|
name: redis
|