Skip to content

Commit

Permalink
Update examples and better document how to run a multi-region FDB clu…
Browse files Browse the repository at this point in the history
…ster
  • Loading branch information
johscheuer committed Mar 21, 2023
1 parent 8fd3885 commit d409b96
Show file tree
Hide file tree
Showing 22 changed files with 129 additions and 72 deletions.
4 changes: 2 additions & 2 deletions config/deployment/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ spec:
- name: fdb-binaries
mountPath: /var/output-files
- name: foundationdb-kubernetes-init-7-1
image: foundationdb/foundationdb-kubernetes-sidecar:7.1.15-1
image: foundationdb/foundationdb-kubernetes-sidecar:7.1.27-1
args:
- "--copy-library"
- "7.1"
Expand All @@ -75,7 +75,7 @@ spec:
- "--copy-binary"
- "fdbrestore"
- "--output-dir"
- "/var/output-files/7.1.15"
- "/var/output-files/7.1.27"
- "--init-mode"
volumeMounts:
- name: fdb-binaries
Expand Down
4 changes: 2 additions & 2 deletions config/samples/backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ spec:
secret:
secretName: fdb-kubernetes-operator-secrets
snapshotPeriodSeconds: 3600
version: 6.3.22
version: 7.1.26
---
apiVersion: apps.foundationdb.org/v1beta2
kind: FoundationDBCluster
Expand Down Expand Up @@ -123,4 +123,4 @@ spec:
enableLivenessProbe: true
enableReadinessProbe: false
useExplicitListenAddress: true
version: 6.3.22
version: 7.1.26
10 changes: 5 additions & 5 deletions config/samples/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
- name: FDB_CLUSTER_FILE
value: /var/dynamic-conf/fdb.cluster
- name: FDB_API_VERSION
value: "610"
value: "630"
- name: FDB_NETWORK_OPTION_TRACE_LOG_GROUP
value: test-cluster-client
- name: FDB_NETWORK_OPTION_EXTERNAL_CLIENT_DIRECTORY
Expand All @@ -58,13 +58,13 @@ spec:
- --copy-file
- fdb.cluster
- --copy-library
- "6.2"
- --copy-library
- "6.3"
- --copy-library
- "7.1"
- --init-mode
- --require-not-empty
- fdb.cluster
image: foundationdb/foundationdb-kubernetes-sidecar:6.3.24-1
image: foundationdb/foundationdb-kubernetes-sidecar:7.1.26-1
name: foundationdb-kubernetes-init
volumeMounts:
- mountPath: /var/input-files
Expand Down Expand Up @@ -149,4 +149,4 @@ spec:
enableLivenessProbe: true
enableReadinessProbe: false
useExplicitListenAddress: true
version: 6.3.22
version: 7.1.26
2 changes: 1 addition & 1 deletion config/samples/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ spec:
enableLivenessProbe: true
enableReadinessProbe: false
useExplicitListenAddress: true
version: 6.3.22
version: 7.1.26
4 changes: 2 additions & 2 deletions config/samples/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ spec:
- --copy-binary
- fdbrestore
- --output-dir
- /var/output-files/7.1.15
- /var/output-files/7.1.27
- --init-mode
image: foundationdb/foundationdb-kubernetes-sidecar:7.1.15-1
image: foundationdb/foundationdb-kubernetes-sidecar:7.1.27-1
name: foundationdb-kubernetes-init-7-1
volumeMounts:
- mountPath: /var/output-files
Expand Down
4 changes: 2 additions & 2 deletions config/samples/restore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
secret:
secretName: fdb-kubernetes-operator-secrets
snapshotPeriodSeconds: 3600
version: 6.3.22
version: 7.1.26
---
apiVersion: apps.foundationdb.org/v1beta2
kind: FoundationDBCluster
Expand Down Expand Up @@ -124,7 +124,7 @@ spec:
enableLivenessProbe: true
enableReadinessProbe: false
useExplicitListenAddress: true
version: 6.3.22
version: 7.1.26
---
apiVersion: apps.foundationdb.org/v1beta2
kind: FoundationDBRestore
Expand Down
2 changes: 1 addition & 1 deletion config/tests/backup/base/backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: FoundationDBBackup
metadata:
name: test-cluster
spec:
version: 6.3.22
version: 7.1.26
clusterName: test-cluster
snapshotPeriodSeconds: 3600
blobStoreConfiguration:
Expand Down
2 changes: 1 addition & 1 deletion config/tests/base/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: FoundationDBCluster
metadata:
name: test-cluster
spec:
version: 6.3.22
version: 7.1.26
faultDomain:
# Use fake fault domains to support running in a single-node Kubernetes
# cluster.
Expand Down
8 changes: 4 additions & 4 deletions config/tests/client/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ spec:
automountServiceAccountToken: false
initContainers:
- name: foundationdb-kubernetes-init
image: foundationdb/foundationdb-kubernetes-sidecar:6.3.24-1
image: foundationdb/foundationdb-kubernetes-sidecar:7.1.26-1
args:
- "--copy-file"
- "fdb.cluster"
- "--copy-library"
- "6.2"
- "--copy-library"
- "6.3"
- "--copy-library"
- "7.1"
- "--init-mode"
- "--require-not-empty"
- "fdb.cluster"
Expand All @@ -41,7 +41,7 @@ spec:
- name: FDB_CLUSTER_FILE
value: /var/dynamic-conf/fdb.cluster
- name: FDB_API_VERSION
value: "610"
value: "630"
- name: FDB_NETWORK_OPTION_TRACE_LOG_GROUP
value: test-cluster-client
- name: FDB_NETWORK_OPTION_EXTERNAL_CLIENT_DIRECTORY
Expand Down
4 changes: 2 additions & 2 deletions config/tests/dns/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
automountServiceAccountToken: false
initContainers:
- name: foundationdb-kubernetes-init-7-1
image: foundationdb/foundationdb-kubernetes-sidecar:7.1.25-1
image: foundationdb/foundationdb-kubernetes-sidecar:7.1.26-1
imagePullPolicy: IfNotPresent
args:
- "--copy-file"
Expand All @@ -40,7 +40,7 @@ spec:
- name: FDB_CLUSTER_FILE
value: /var/dynamic-conf/fdb.cluster
- name: FDB_API_VERSION
value: "610"
value: "710"
- name: FDB_NETWORK_OPTION_TRACE_LOG_GROUP
value: test-cluster-client
- name: FDB_NETWORK_OPTION_TRACE_ENABLE
Expand Down
3 changes: 0 additions & 3 deletions config/tests/dns/dns.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
- op: add
path: "/spec/version"
value: 7.1.25
- op: add
path: "/spec/routing/useDNSInClusterFile"
value: true
Expand Down
2 changes: 1 addition & 1 deletion config/tests/multi_dc/final.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
cluster-group: test-cluster
name: test-cluster-$dc
spec:
version: 7.1.25
version: 7.1.26
faultDomain:
key: foundationdb.org/none
processGroupIDPrefix: $dc
Expand Down
2 changes: 1 addition & 1 deletion config/tests/multi_dc/stage_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
cluster-group: test-cluster
name: test-cluster-$dc
spec:
version: 7.1.25
version: 7.1.26
faultDomain:
key: foundationdb.org/none
processGroupIDPrefix: $dc
Expand Down
2 changes: 1 addition & 1 deletion config/tests/multi_kc/final.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
cluster-group: test-cluster
name: test-cluster-$zone
spec:
version: 7.1.25
version: 7.1.26
faultDomain:
key: foundationdb.org/kubernetes-cluster
value: $zone
Expand Down
2 changes: 1 addition & 1 deletion config/tests/multi_kc/stage_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
cluster-group: test-cluster
name: test-cluster-$zone
spec:
version: 7.1.25
version: 7.1.26
faultDomain:
key: foundationdb.org/kubernetes-cluster
value: $zone
Expand Down
4 changes: 2 additions & 2 deletions docs/manual/backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ kind: FoundationDBBackup
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
clusterName: sample-cluster
blobStoreConfiguration:
accountName: account@object-store.example:443
Expand Down Expand Up @@ -105,7 +105,7 @@ kind: FoundationDBBackup
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
clusterName: sample-cluster
blobStoreConfiguration:
accountName: account@object-store.example:443
Expand Down
36 changes: 18 additions & 18 deletions docs/manual/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
spec:
storageServersPerPod: 2
```
Expand All @@ -31,7 +31,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
processes:
general:
volumeClaimTemplate:
Expand All @@ -47,7 +47,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
processes:
general:
volumeClaimTemplate:
Expand All @@ -65,7 +65,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
processes:
log:
volumeClaimTemplate:
Expand All @@ -87,7 +87,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
processes:
general:
podTemplate:
Expand Down Expand Up @@ -124,7 +124,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
mainContainer:
imageConfigs:
- baseImage: docker.example/foundationdb
Expand All @@ -143,7 +143,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
mainContainer:
imageConfigs:
- baseImage: docker.example/foundationdb
Expand All @@ -160,11 +160,11 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
mainContainer:
imageConfigs:
- baseImage: docker.example/foundationdb
- version: 6.2.30
- version: 7.1.26
tag: "build-20210711161700"
- version: 6.3.0
tag: "build-20210712161700"
Expand All @@ -180,7 +180,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
mainContainer:
imageConfigs:
- baseImage: docker.example/foundationdb
Expand Down Expand Up @@ -369,7 +369,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
labels:
# The default match labels are {"fdb-cluster-name": "sample-cluster"}
matchLabels:
Expand All @@ -390,7 +390,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
labels:
matchLabels:
my-cluster: sample-cluster
Expand All @@ -411,7 +411,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
labels:
matchLabels:
this-cluster: sample-cluster
Expand All @@ -428,7 +428,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
labels:
matchLabels:
this-cluster: sample-cluster
Expand All @@ -450,7 +450,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
labels:
processClassLabels:
# Default: ["fdb-process-class", "foundationdb.org/fdb-process-class"]
Expand All @@ -470,7 +470,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
labels:
processClassLabels:
- my-class
Expand All @@ -485,7 +485,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
labels:
processClassLabels:
- this-class
Expand All @@ -511,7 +511,7 @@ kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 6.2.30
version: 7.1.26
useUnifiedImage: true
```

Expand Down
Loading

0 comments on commit d409b96

Please sign in to comment.