-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Feature/k8s win nodes hybrid cluster #2956
Conversation
…ocker to incompatible version
…ocker to incompatible version
… into feature/k8s_win
…ocker to incompatible version
… into feature/k8s_win
…ocker to incompatible version
… into feature/k8s_win
… nodes, also fix for download with missing container type
ci check this |
@@ -54,3 +54,8 @@ spec: | |||
- --default-params={"linear":{"nodesPerReplica":{{ dnsmasq_nodes_per_replica }},"preventSinglePointFailure":true}} | |||
- --logtostderr=true | |||
- --v={{ kube_log_level }} | |||
{% if kube_patch_win_nodes %} | |||
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows | |||
nodeSelector: |
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.
isn't safe to always add this selector ?
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.
In the past I have sent merge request with the selector added without if and someone else asked to add something like this.
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.
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.
where did you find this label: beta.kubernetes.io/os
is it documented somewhere, is it used by other installer (kops, kubeadm ?)
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.
I think it's perfectly legit to add it, https://kubernetes.io/docs/reference/kubernetes-api/labels-annotations-taints/#beta-kubernetes-io-os
@@ -89,6 +89,7 @@ | |||
--ignore-preflight-errors=all | |||
--allow-experimental-upgrades | |||
--allow-release-candidate-upgrades | |||
--force |
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.
?
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.
Looks it got inserted but I forgot to remove, anyway it is safe to have this line.
In past two tries to upgrade kubeadm, it failed without --force and asked to add --force flag (tried from v1.10.3 to v1.10.4 and from v1.10.4 to v1.10.5
Why is this specific to windows, can't we simply add the selector for all kind of installation (remove the 'if' and add the selector in all manifests |
agree with @ant31 on selectors also my comment would be about syntax:
not
and same goes for when statements
this way it's more readable and please squash your commits. |
@pablodav this syntax change was introduced when i joined project and not all places changed this so it would be grate if you could change. |
@@ -93,6 +93,7 @@ | |||
roles: | |||
- { role: kubespray-defaults} | |||
- { role: kubernetes-apps/rotate_tokens, tags: rotate_tokens, when: "secret_changed|default(false)" } | |||
- { role: win_nodes/kubernetes_patch, tags: win_nodes, when: "kubeadm_enabled and kube_patch_win_nodes" } |
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.
Thanks @Atoms
for when, only this needs to be changed?
Could be?
roles:
- role: kubespray-defaults
- role: kubernetes-apps/rotate_tokens
tags:
- rotate_tokens
when:
- secret_changed|default(false)
- role: win_nodes/kubernetes_patch
tags:
- win_nodes
when:
- kubeadm_enabled
- and kube_patch_win_nodes
I haven't found examples to understand this syntax better
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.
not in playbook file, but in tasks files, i think for roles still not working such syntax (need to check)
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.
Ok, haven't found other line I have changed to change now, probably could be reviewed in future PRs.
I'm in favor to do the nodeSelector to all deployments. |
CheckNodePIDPressure is not supported in v1.10
Add TF_VAR_ to terraform env
* Add tags for cert serial tasks This will help facilitate tag-based deployment of specific components. * fixup kubernetes node
…ocker to incompatible version
… nodes, also fix for download with missing container type
… into feature/k8s_win
@pablodav you did something wrong :) you don't need to add commits from another people :) |
You are right, looks like when I sync upstream using rebase it adds commits and the pull request is synced with those changes incorrectly, will create new clean pull request. |
refs #2889
nodeSelector, not added to all deployments yet, it could be evaluated later. (But could be required in future)