-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebdis.yml
60 lines (60 loc) · 1.49 KB
/
webdis.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
apiVersion: v1
data:
webdis.json: "{\n\t\"redis_host\":\t\"proxy\",\n\n\t\"redis_port\":\t6379,\n\t\"redis_auth\":\tnull,\n\n\t\"http_host\":\t\"0.0.0.0\",\n\t\"http_port\":\t7379,\n\n\t\"threads\":\t5,\n\t\"pool_size\":
20,\n\n\t\"daemonize\":\tfalse,\n\t\"websockets\":\tfalse,\n\n\t\"database\":\t0,\n\n\t\"acl\":
[\n\t\t{\n\t\t\t\"disabled\":\t[\"DEBUG\"]\n\t\t},\n\n\t\t{\n\t\t\t\"http_basic_auth\":\t\"user:password\",\n\t\t\t\"enabled\":\t\t[\"DEBUG\"]\n\t\t}\n\t],\n\n\t\"verbosity\":
4,\n\t\"logfile\": \"/dev/stderr\"\n}\n"
kind: ConfigMap
metadata:
name: webdis
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: webdis
labels:
app: webdis
name: webdis
spec:
replicas: 1
selector:
matchLabels:
app: webdis
name: webdis
template:
metadata:
name: webdis
labels:
app: webdis
name: webdis
spec:
containers:
- command: ["/usr/local/bin/webdis","/config/webdis.json"]
name: webdis
image: nicolas/webdis:latest
ports:
- containerPort: 7379
imagePullPolicy: Always
volumeMounts:
- mountPath: /config
name: config
volumes:
- name: config
configMap:
name: webdis
items:
- key: webdis.json
path: webdis.json
---
apiVersion: v1
kind: Service
metadata:
name: webdis
spec:
ports:
- port: 8000
protocol: TCP
targetPort: 7379
selector:
name: webdis
type: ClusterIP