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
@@ -84,6 +84,10 @@ type ManagedClusterSpec struct {
// By default the remaining services will be deployed even if conflict is detected.
// If set to true, the deployment will stop after encountering the first conflict.
StopOnConflict bool `json:"stopOnConflict,omitempty"`
// PropagateCredentials indicates whether credentials should be propagated
// for use by CCM (Cloud Controller Manager).
// 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.

i cannot see the kubebuilder default directive, nor where it is being defaulted via the mutation webhook, could you show me where it is being defaulted to such a value? and why should the field be nullable in the case when true is the default value?

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