Skip to content

Commit c2f7a87

Browse files
author
smiletan
authored
Merge pull request #407 from intelligentfu8/fdb-example
[Doc][fdb]add fdb product used example
2 parents 0e8969a + ac43327 commit c2f7a87

File tree

2 files changed

+244
-0
lines changed

2 files changed

+244
-0
lines changed
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
apiVersion: apps.foundationdb.org/v1beta2
19+
kind: FoundationDBCluster
20+
metadata:
21+
name: test-cluster
22+
finalizers:
23+
- doris.io/compute-storage-separation
24+
spec:
25+
databaseConfiguration:
26+
redundancy_mode: "double"
27+
automationOptions:
28+
replacements:
29+
enabled: true
30+
#imageType: split
31+
minimumUptimeSecondsForBounce: 60
32+
processCounts:
33+
log: 4
34+
storage: 3
35+
stateless: 9
36+
processes:
37+
general:
38+
podTemplate:
39+
spec:
40+
containers:
41+
- name: foundationdb
42+
resources:
43+
requests:
44+
cpu: 1
45+
memory: 1Gi
46+
securityContext:
47+
runAsUser: 0
48+
- name: foundationdb-kubernetes-sidecar
49+
resources:
50+
limits:
51+
cpu: 100m
52+
memory: 128Mi
53+
requests:
54+
cpu: 100m
55+
memory: 128Mi
56+
securityContext:
57+
runAsUser: 0
58+
storage:
59+
podTemplate:
60+
spec:
61+
containers:
62+
- name: foundationdb
63+
resources:
64+
requests:
65+
cpu: 1
66+
memory: 8Gi
67+
securityContext:
68+
runAsUser: 0
69+
- name: foundationdb-kubernetes-sidecar
70+
resources:
71+
limits:
72+
cpu: 100m
73+
memory: 128Mi
74+
requests:
75+
cpu: 100m
76+
memory: 128Mi
77+
securityContext:
78+
runAsUser: 0
79+
volumeClaimTemplate:
80+
spec:
81+
#storageClassName: ${storageClassName}
82+
resources:
83+
requests:
84+
storage: 200Gi
85+
log:
86+
podTemplate:
87+
spec:
88+
containers:
89+
- name: foundationdb
90+
resources:
91+
requests:
92+
cpu: 1
93+
memory: 2Gi
94+
securityContext:
95+
runAsUser: 0
96+
- name: foundationdb-kubernetes-sidecar
97+
resources:
98+
limits:
99+
cpu: 100m
100+
memory: 128Mi
101+
requests:
102+
cpu: 100m
103+
memory: 128Mi
104+
securityContext:
105+
runAsUser: 0
106+
volumeClaimTemplate:
107+
spec:
108+
#storageClassName: ${storageClassName}
109+
resources:
110+
requests:
111+
storage: 100Gi
112+
routing:
113+
useDNSInClusterFile: true
114+
sidecarContainer:
115+
enableLivenessProbe: true
116+
enableReadinessProbe: false
117+
useExplicitListenAddress: true
118+
version: 7.1.38
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
apiVersion: apps.foundationdb.org/v1beta2
19+
kind: FoundationDBCluster
20+
metadata:
21+
name: test-cluster
22+
finalizers:
23+
- doris.io/compute-storage-separation
24+
spec:
25+
databaseConfiguration:
26+
redundancy_mode: "double"
27+
automationOptions:
28+
replacements:
29+
enabled: true
30+
#imageType: split
31+
minimumUptimeSecondsForBounce: 60
32+
processCounts:
33+
log: 4
34+
storage: 3
35+
stateless: 9
36+
processes:
37+
general:
38+
podTemplate:
39+
spec:
40+
containers:
41+
- name: foundationdb
42+
resources:
43+
requests:
44+
cpu: 1
45+
memory: 1Gi
46+
securityContext:
47+
runAsUser: 0
48+
- name: foundationdb-kubernetes-sidecar
49+
resources:
50+
limits:
51+
cpu: 100m
52+
memory: 128Mi
53+
requests:
54+
cpu: 100m
55+
memory: 128Mi
56+
securityContext:
57+
runAsUser: 0
58+
storage:
59+
podTemplate:
60+
spec:
61+
containers:
62+
- name: foundationdb
63+
resources:
64+
requests:
65+
cpu: 1
66+
memory: 8Gi
67+
securityContext:
68+
runAsUser: 0
69+
- name: foundationdb-kubernetes-sidecar
70+
resources:
71+
limits:
72+
cpu: 100m
73+
memory: 128Mi
74+
requests:
75+
cpu: 100m
76+
memory: 128Mi
77+
securityContext:
78+
runAsUser: 0
79+
volumeClaimTemplate:
80+
spec:
81+
#storageClassName: ${storageClassName}
82+
resources:
83+
requests:
84+
storage: 200Gi
85+
log:
86+
podTemplate:
87+
spec:
88+
containers:
89+
- name: foundationdb
90+
resources:
91+
requests:
92+
cpu: 1
93+
memory: 2Gi
94+
securityContext:
95+
runAsUser: 0
96+
- name: foundationdb-kubernetes-sidecar
97+
resources:
98+
limits:
99+
cpu: 100m
100+
memory: 128Mi
101+
requests:
102+
cpu: 100m
103+
memory: 128Mi
104+
securityContext:
105+
runAsUser: 0
106+
volumeClaimTemplate:
107+
spec:
108+
#storageClassName: ${storageClassName}
109+
resources:
110+
requests:
111+
storage: 100Gi
112+
routing:
113+
useDNSInClusterFile: true
114+
mainContainer:
115+
# use the foundationdb/fdb-kubernetes-monitor:7.1.38 as example to display how to config private repository image.
116+
imageConfigs:
117+
- baseImage: foundationdb/fdb-kubernetes-monitor
118+
tag: 7.1.38
119+
sidecarContainer:
120+
imageConfigs:
121+
- baseImage: foundationdb/fdb-kubernetes-monitor
122+
tag: 7.1.38
123+
enableLivenessProbe: true
124+
enableReadinessProbe: false
125+
useExplicitListenAddress: true
126+
version: 7.1.38

0 commit comments

Comments
 (0)