-
Notifications
You must be signed in to change notification settings - Fork 79
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
Update tasks.sh #3961
base: main
Are you sure you want to change the base?
Update tasks.sh #3961
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -479,7 +479,7 @@ function taint_primaries() { | |
|
||
# Rook tolerations | ||
if kubectl get namespace rook-ceph &>/dev/null; then | ||
kubectl -n rook-ceph patch cephclusters rook-ceph --type=merge -p '{"spec":{"placement":{"all":{"tolerations":[{"key":"node-role.kubernetes.io/master","operator":"Exists"}]}}}}' | ||
kubectl -n rook-ceph patch cephclusters rook-ceph --type=merge -p '{"spec":{"placement":{"all":{"tolerations":[{"key":"node-role.kubernetes.io/control-plane","operator":"Exists"}]}}}}' | ||
cat <<EOF | kubectl -n rook-ceph patch deployment rook-ceph-operator -p "$(cat)" | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
|
@@ -490,32 +490,32 @@ spec: | |
template: | ||
spec: | ||
tolerations: | ||
- key: node-role.kubernetes.io/master | ||
- key: node-role.kubernetes.io/control-plane | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rather than remove the existing |
||
operator: Exists | ||
containers: | ||
- name: rook-ceph-operator | ||
env: | ||
- name: DISCOVER_TOLERATION_KEY | ||
value: node-role.kubernetes.io/master | ||
value: node-role.kubernetes.io/control-plane | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this may need to be updated to |
||
- name: CSI_PROVISIONER_TOLERATIONS | ||
value: | | ||
- key: node-role.kubernetes.io/master | ||
- key: node-role.kubernetes.io/control-plane | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rather than remove the existing |
||
operator: Exists | ||
- name: CSI_PLUGIN_TOLERATIONS | ||
value: | | ||
- key: node-role.kubernetes.io/master | ||
- key: node-role.kubernetes.io/control-plane | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rather than remove the existing |
||
operator: Exists | ||
EOF | ||
fi | ||
|
||
# EKCO tolerations | ||
if kubernetes_resource_exists kurl deployment ekc-operator; then | ||
kubectl -n kurl patch deployment ekc-operator --type=merge -p '{"spec":{"template":{"spec":{"tolerations":[{"key":"node-role.kubernetes.io/master","operator":"Exists"}]}}}}' | ||
kubectl -n kurl patch deployment ekc-operator --type=merge -p '{"spec":{"template":{"spec":{"tolerations":[{"key":"node-role.kubernetes.io/control-plane","operator":"Exists"}]}}}}' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rather than remove the existing |
||
fi | ||
|
||
|
||
# Taint all primaries | ||
kubectl taint nodes --overwrite --selector=node-role.kubernetes.io/master node-role.kubernetes.io/master=:NoSchedule | ||
kubectl taint nodes --overwrite --selector=node-role.kubernetes.io/control-plane node-role.kubernetes.io/control-plane=:NoSchedule | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it be possible to detect the kubernetes version and apply the proper taint for that version? |
||
|
||
# Delete pods with PVCs so they get rescheduled to worker nodes immediately | ||
# TODO: delete pods with PVCs on other primaries | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than remove the existing
node-role.kubernetes.io/master
toleration can we appendnode-role.kubernetes.io/control-plane
as an additional toleration?