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

[Feature] Node selector & Tolerations support for helm chart #1755

Closed
Sharathmk99 opened this issue Apr 4, 2023 · 3 comments · Fixed by #1756
Closed

[Feature] Node selector & Tolerations support for helm chart #1755

Sharathmk99 opened this issue Apr 4, 2023 · 3 comments · Fixed by #1756
Labels
good first issue Good for newcomers

Comments

@Sharathmk99
Copy link
Contributor

Sharathmk99 commented Apr 4, 2023

Is your feature request related to a problem? Please describe.
Currently helm chart doesn't support nodeSelector and tolerations for all liqo servrices.
This is needed when cluster has dedicated nodes for services which are tainted

Describe the solution you'd like
Add common field in values.yaml

common:
    nodeSelector:
        dedicated: services
    tolerations:
    - key: "dedicated"
      operator: "Equal"
      value: "services"
      effect: "NoSchedule"

Update all deployment and statefulset

{{- if ((.Values.common).nodeSelector) }}
nodeSelector:
{{- toYaml .Values.common.nodeSelector | nindent 8 }}
{{- end }}
{{- if ((.Values.common).tolerations) }}
tolerations:
{{- toYaml .Values.common.tolerations | nindent 8 }}
{{- end }}

Describe alternatives you've considered
Forked helm chart and made changes

Additional context
Once this is supported we can use liqoctl as below

liqoctl .... --set common.nodeSelector.dedicated=services --set common.tolerations[0].key=dedicated,common.tolerations[0].operator=Equal,common.tolerations[0].value=services,common.tolerations[0].effect=NoSchedule
@cheina97 cheina97 added the good first issue Good for newcomers label Apr 4, 2023
@cheina97
Copy link
Member

cheina97 commented Apr 4, 2023

Hi @Sharathmk99, this is a good suggestion. I marked this issue as a good first issue, feel free to open a PR and propose your solution. It would be also really appreciated if you add the support for affinity to the helm chart.

@cheina97
Copy link
Member

cheina97 commented Apr 4, 2023

However, adding such changes to the helm chart will not change the virtual-kubelets created by Liqo. To add this feature to virtual-kubelets it is necessary to modify the liqo-controller-manager.

However, this change is not needed at the moment and may be applied in a future PR.

@Sharathmk99
Copy link
Contributor Author

However, adding such changes to the helm chart will not change the virtual-kubelets created by Liqo. To add this feature to virtual-kubelets it is necessary to modify the liqo-controller-manager.

However, this change is not needed at the moment and may be applied in a future PR.

That's good point. Will open separate issue for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants