How would one configure k8s node selector for storage, log and stateless pods?
Thanks.
How would one configure k8s node selector for storage, log and stateless pods?
Thanks.
In the FoundationDBCluster spec (fdb-kubernetes-operator/cluster_spec.md at main · FoundationDB/fdb-kubernetes-operator · GitHub) there is a setting called processes, in that setting you can define a PodTemplate and that can include a NodeSelector, e.g.:
apiVersion: apps.foundationdb.org/v1beta2
kind: FoundationDBCluster
metadata:
name: sample-cluster
spec:
version: 7.1.33
processes:
general:
podTemplate:
spec:
nodeSelctor:
test: stateless
log:
podTemplate:
spec:
nodeSelctor:
test: log
storage:
podTemplate:
spec:
nodeSelctor:
test: storage