Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add podAntiAffinity for masters in demo cfg, fix yqlAgent count for 0.9.1 #392

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions config/samples/0.9.1/cluster_v1_demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ spec:
primaryMasters:
instanceCount: 3
cellTag: 1
affinity:
Copy link
Author

@futujaos futujaos Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without it, this error will appear:

The Ytsaurus "ytdemo" is invalid: spec.primaryMasters.affinity.podAntiAffinity: Required value: Masters should be placed on different nodes

i added fix to 0.9.1 and to file without version (is it latest version?), don't know if it's applicable to previous versions

podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: yt_component
operator: In
values:
- ytdemo-yt-master
topologyKey: "kubernetes.io/hostname"
volumeMounts:
- name: master-data
mountPath: /yt/master-data
Expand Down Expand Up @@ -90,6 +100,7 @@ spec:
image: ghcr.io/ytsaurus/query-tracker:0.0.6-relwithdebinfo

yqlAgents:
instanceCount: 1
image: ghcr.io/ytsaurus/query-tracker:0.0.6-relwithdebinfo

schedulers:
Expand Down
10 changes: 10 additions & 0 deletions config/samples/cluster_v1_demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ spec:
primaryMasters:
instanceCount: 3
cellTag: 1
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: yt_component
operator: In
values:
- ytdemo-yt-master
topologyKey: "kubernetes.io/hostname"
volumeMounts:
- name: master-data
mountPath: /yt/master-data
Expand Down
Loading