-
Notifications
You must be signed in to change notification settings - Fork 40
/
rethinkdb-admin.yml
74 lines (74 loc) · 1.73 KB
/
rethinkdb-admin.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
db: rethinkdb
name: rethinkdb-admin
spec:
replicas: 1
template:
metadata:
labels:
db: rethinkdb
role: admin
spec:
containers:
- image: rosskukulinski/rethinkdb-kubernetes:2.3.5
imagePullPolicy: Always
name: rethinkdb
env:
- name: PROXY
value: "true"
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: RETHINK_CLUSTER
value: rethinkdb
ports:
- containerPort: 8080
name: admin
- containerPort: 28015
name: driver
- containerPort: 29015
name: cluster
livenessProbe:
exec:
command:
- /probe
failureThreshold: 3
initialDelaySeconds: 15
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
exec:
command:
- /probe
failureThreshold: 3
initialDelaySeconds: 15
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
resources:
limits:
cpu: 100m
memory: 256Mi
requests:
cpu: 100m
memory: 256Mi
volumeMounts:
- mountPath: /data/rethinkdb_data
name: storage
volumes:
- name: storage
emptyDir: {}