-
Notifications
You must be signed in to change notification settings - Fork 40
/
rethinkdb-replica.3.yml
78 lines (78 loc) · 1.82 KB
/
rethinkdb-replica.3.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
75
76
77
78
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
db: rethinkdb
name: rethinkdb-replica-3
spec:
replicas: 1
template:
metadata:
labels:
db: rethinkdb
role: replica
instance: three
spec:
containers:
- image: rosskukulinski/rethinkdb-kubernetes:2.3.5
args:
- "--cache-size"
- "100"
imagePullPolicy: Always
name: rethinkdb
env:
- 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
name: storage
volumes:
- gcePersistentDisk:
fsType: ext4
pdName: rethinkdb-storage-3
name: storage