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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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 ManagedCluster 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
Comment on lines +64 to +66
// PropagateCredentials indicates whether credentials should be propagated
// for use by CCM (Cloud Controller Manager).
// +kubebuilder:default:=true
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// PropagateCredentials indicates whether credentials should be propagated
// for use by CCM (Cloud Controller Manager).
// +kubebuilder:default:=true
// +kubebuilder:default:=true
// PropagateCredentials indicates whether credentials should be propagated
// for use by CCM (Cloud Controller Manager).

Sorry for the very nit comment, it is up to you whether to change or not :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

create AKS template
2 participants