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

Does CA support auto-discovery of Azure VMSSs? #2051

Closed
sonnysideup opened this issue May 20, 2019 · 9 comments
Closed

Does CA support auto-discovery of Azure VMSSs? #2051

sonnysideup opened this issue May 20, 2019 · 9 comments
Labels
area/provider/azure Issues or PRs related to azure provider lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@sonnysideup
Copy link

The documentation in this project indicates that auto-discovery is only supported for aws and gce are supported, but the code for the Azure provider seems to indicate otherwise.

type AzureManager struct {
config *Config
azClient *azClient
env azure.Environment
asgCache *asgCache
lastRefresh time.Time
asgAutoDiscoverySpecs []cloudprovider.LabelAutoDiscoveryConfig
explicitlyConfigured map[string]bool
}

// Fetch automatically discovered ASGs. These ASGs should be unregistered if
// they no longer exist in Azure.
func (m *AzureManager) fetchAutoAsgs() error {
groups, err := m.getFilteredAutoscalingGroups(m.asgAutoDiscoverySpecs)

Is it possible that the docs have been update since #542 was merged? I believe this should support VMSS in the same way it supports AWS ASGs now.

/cc @robinkraft

@MaciekPytel
Copy link
Contributor

cc: @feiskyer

@feiskyer
Copy link
Member

@sonnysideup It's an initial working version for vmss, e.g. by setting --node-group-auto-discovery=label:<key>=<value>, but still not fully supported yet. e.g. minSize and maxSize couldn't be set now.

@feiskyer
Copy link
Member

/sig azure

@sonnysideup
Copy link
Author

...but still not fully supported yet. e.g. minSize and maxSize couldn't be set now.

@feiskyer, thank you for your response. Just to make sure I understand this behavior, please let me frame an example and ask some questions:

Example Setup

  1. CA is deployed into K8s (in Azure) with the setting --node-group-auto-discovery=label:foo=bar.
  2. I then create a VMSS with the label foo=bar and set the min/max values on that resource during creation.

Questions

  • If we can't set minSize nor maxSize, how will this behave when the CA starts managing my VMSS?
  • If it's not fully-supported, what is currently supported?

@feiskyer
Copy link
Member

It could discovery vmss based on labels, but setting minSize and maxSize is not supported yet.

@k8s-ci-robot k8s-ci-robot added area/provider/azure Issues or PRs related to azure provider and removed sig/azure labels Aug 6, 2019
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 4, 2019
@fiunchinho
Copy link
Contributor

Can this be closed now after merging #2121?

@feiskyer
Copy link
Member

/close

@k8s-ci-robot
Copy link
Contributor

@feiskyer: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/provider/azure Issues or PRs related to azure provider lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

6 participants