Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Conversation

morvencao
Copy link
Member

  • add nodeSelector
  • add tolerations
  • fix a few yaml format issues

For nodeSelector and toleration, define default values in global section to be applied to all deployments/daemonsets so that all pods can be scheduled to a particular nodes. Each component can overwrite these default values by adding its own block in the relevant section below and setting the desired values.

@howardjohn
Copy link
Member

The change looks good, and we definitely need some of the fixes that got added here.

My concern is that Kustomize is the perfect solution for toleration, affinity etc. We already support affinty so we should probably keep that, but do we want to add more (fairly complicated) fields that can be instead replaced by Kustomize? Given we already have affinity maybe it makes sense to get toleration as well (as in: we should have toleration+affinity or neither, not one or the other).

@costinm @sdake any thoughts?

global.yaml Outdated
@@ -251,6 +251,12 @@ global:
# the desired values.
defaultNodeSelector: {}

# Default node tolerations to be applied to all deployments so that all pods can be
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this makes any sense with the new installer - each component is installed independently, and it would have different settings. We also want to move this kind of 'global override' to kustomize and reduce API surface in values.yaml

Copy link
Member Author

Choose a reason for hiding this comment

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

remove global default value.

Copy link
Contributor

@costinm costinm left a comment

Choose a reason for hiding this comment

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

I would remove the 'default' from global to simplify. Unless there is a case where all components in Istio would need the same value.

We already have issues with the default CPU allocation - which is not right for any component, let's avoid repeating mistakes.

@costinm
Copy link
Contributor

costinm commented May 14, 2019

Looks good otherwise.

@morvencao
Copy link
Member Author

Can we get this merged? Since it also contains quite a few some bugs about template.

@mergify mergify bot merged commit 6927333 into istio:master May 16, 2019
@morvencao morvencao deleted the br_add_toleration branch May 16, 2019 03:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants