-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the three_data_hall docs for the three data hall with unified …
…image (#2188) * Update the three_data_hall docs for the three data hall with unified image * Ensure that the unified image will always be used for 3dh testing
- Loading branch information
1 parent
f68e301
commit ff924de
Showing
14 changed files
with
476 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
apiVersion: apps.foundationdb.org/v1beta2 | ||
kind: FoundationDBCluster | ||
metadata: | ||
labels: | ||
cluster-group: test-cluster | ||
name: test-cluster | ||
spec: | ||
# The unified image supports to make use of node labels, so setting up a three data hall cluster | ||
# is easier with the unified image. | ||
imageType: unified | ||
version: 7.1.63 | ||
faultDomain: | ||
key: kubernetes.io/hostname | ||
processCounts: | ||
stateless: -1 | ||
databaseConfiguration: | ||
# Ensure that enough coordinators are available. The processes will be spread across the different zones. | ||
logs: 9 | ||
storage: 9 | ||
redundancy_mode: "three_data_hall" | ||
processes: | ||
general: | ||
customParameters: | ||
- "knob_disable_posix_kernel_aio=1" | ||
- "locality_data_hall=$NODE_LABEL_TOPOLOGY_KUBERNETES_IO_ZONE" | ||
volumeClaimTemplate: | ||
spec: | ||
resources: | ||
requests: | ||
storage: "16G" | ||
podTemplate: | ||
spec: | ||
securityContext: | ||
runAsUser: 4059 | ||
runAsGroup: 4059 | ||
fsGroup: 4059 | ||
serviceAccount: fdb-kubernetes | ||
# Make sure that the pods are spread equally across the different availability zones. | ||
topologySpreadConstraints: | ||
- maxSkew: 1 | ||
topologyKey: topology.kubernetes.io/zone | ||
whenUnsatisfiable: DoNotSchedule | ||
labelSelector: | ||
matchLabels: | ||
foundationdb.org/fdb-cluster-name: test-cluster | ||
containers: | ||
- name: foundationdb | ||
env: | ||
# This feature allows the fdb-kubernetes-monitor to read the labels from the node where | ||
# it is running. | ||
- name: ENABLE_NODE_WATCH | ||
value: "true" | ||
resources: | ||
requests: | ||
cpu: 250m | ||
memory: 128Mi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: fdb-kubernetes | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: fdb-kubernetes | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- "pods" | ||
verbs: | ||
- "get" | ||
- "watch" | ||
- "update" | ||
- "patch" | ||
- "list" | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: fdb-kubernetes | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: fdb-kubernetes | ||
subjects: | ||
- kind: ServiceAccount | ||
name: fdb-kubernetes | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: fdb-kubernetes | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- "nodes" | ||
verbs: | ||
- "get" | ||
- "watch" | ||
- "list" | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: fdb-kubernetes | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: fdb-kubernetes | ||
subjects: | ||
- kind: ServiceAccount | ||
name: fdb-kubernetes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.