forked from OT-CONTAINER-KIT/redis-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathredis-shake.deploy.yml
39 lines (39 loc) · 993 Bytes
/
redis-shake.deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis-shake
spec:
selector:
matchLabels:
app.kubernetes.io/name: redis-shake
template:
metadata:
labels:
app.kubernetes.io/name: redis-shake
spec:
containers:
- command:
- /bin/sh
- -c
- |-
cp -auv /filters /redis-shake /*.toml .
exec sleep infinity
image: muicoder/redis-shake:stable
imagePullPolicy: Always
name: redis-shake
volumeMounts:
- mountPath: /usr/local/bin
name: config
- mountPath: /usr/local/bin/data
name: data
workingDir: /usr/local/bin
enableServiceLinks: false
terminationGracePeriodSeconds: 0
volumes:
- hostPath:
path: /opt/redis-shake
type: DirectoryOrCreate
name: config
- emptyDir:
sizeLimit: 16Gi
name: data