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

Add Azure AKS Cluster Template #806

Merged
merged 3 commits into from
Dec 27, 2024
Merged

Conversation

eromanova
Copy link
Member

@eromanova eromanova commented Dec 18, 2024

This PR introduces the following changes:

  1. A new template for azure-aks clusters has been added.
  2. The ClusterDeployment spec now supports the option to skip propagating credentials by setting propagateCredentials: false. This is particularly needed for AKS clusters, as they do not require credential propagation.
  3. Added YAMLs with AKS credentials and managed cluster.

There are two API options for creating AKS clusters: ManagedCluster and ASOManagedCluster. The ASOManagedCluster approach was chosen because the ManagedCluster will eventually be deprecated. See CAPZ ManagedCluster vs. ASOManagedCluster.

ASO Credentials

ASO (azure service operator) requires Azure credentials to be defined in a Kubernetes Secret and does not support reading creds from AzureClusterIdentity (source: https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/main/docs/proposals/20230123-azure-service-operator.md#security-model).

Closes #744

@eromanova eromanova marked this pull request as ready for review December 19, 2024 12:35
@eromanova eromanova self-assigned this Dec 19, 2024
zerospiel
zerospiel previously approved these changes Dec 23, 2024
api/v1alpha1/managedcluster_types.go Outdated Show resolved Hide resolved
zerospiel
zerospiel previously approved these changes Dec 23, 2024
a13x5
a13x5 previously approved these changes Dec 26, 2024
Copy link
Contributor

@a13x5 a13x5 left a comment

Choose a reason for hiding this comment

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

LGTM

autoscaling:
enabled: false
minCount: 2
maxCount: 100
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: The default value is a bit large IMO, the same 5 as in system probably a better default.

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted to be close to the defaults that Azure suggests while creating the AKS cluster using their platform but I'm ok to decrease it.

@Kshatrix Kshatrix merged commit 6dd525c into Mirantis:main Dec 27, 2024
5 checks passed
@eromanova eromanova deleted the aks-template branch December 27, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

create AKS template
4 participants