/
cluster.yaml
84 lines (84 loc) · 2.74 KB
/
cluster.yaml
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
79
80
81
82
83
84
apiVersion: apps.foundationdb.org/v1beta2
kind: FoundationDBCluster
metadata:
name: test-cluster
spec:
version: 7.1.26
faultDomain:
# Use fake fault domains to support running in a single-node Kubernetes
# cluster.
key: foundationdb.org/none
routing:
defineDNSLocalityFields: true
processCounts:
# Disable stateless processes to save resources.
stateless: -1
# Enable a dedicated cluster controller process to test for surprising
# behavior with having a process class with an underscore.
cluster_controller: 1
minimumUptimeSecondsForBounce: 60
# Enable behavior that we will apply by default in the future.
sidecarContainer:
enableReadinessProbe: false
enableLivenessProbe: true
useExplicitListenAddress: true
labels:
filterOnOwnerReference: false
matchLabels:
foundationdb.org/fdb-cluster-name: test-cluster
processGroupIDLabels:
- foundationdb.org/fdb-process-group-id
processClassLabels:
- foundationdb.org/fdb-process-class
automationOptions:
replacements:
enabled: true
processes:
general:
customParameters:
# Disable AIO to work around limitations in Docker for Mac's volume
# options.
- "knob_disable_posix_kernel_aio=1"
volumeClaimTemplate:
spec:
resources:
requests:
# Use small volumes to save space.
storage: "16G"
podTemplate:
spec:
containers:
- name: foundationdb
# Use reduced resources to pack more processes on a node.
resources:
requests:
cpu: 100m
memory: 128Mi
# Use a root user to work around issues with local volume permissions.
securityContext:
runAsUser: 0
- name: foundationdb-kubernetes-sidecar
# Use reduced resources to pack more processes on a node.
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 100m
memory: 128Mi
# Use a root user to work around issues with local volume permissions.
securityContext:
runAsUser: 0
initContainers:
- name: foundationdb-kubernetes-init
# Use reduced resources to pack more processes on a node.
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 100m
memory: 128Mi
# Use a root user to work around issues with local volume permissions.
securityContext:
runAsUser: 0