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

docs: Getting Started first cluster focuses on AKS ASO #5319

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

willie-yao
Copy link
Contributor

What type of PR is this?
/kind documentation

What this PR does / why we need it:
This PR rewrites the quickstart to use CAPI Operator to provision a CAPZ management cluster, and to use a helm chart to deploy an AzureASOManagedCluster.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #4866

Special notes for your reviewer:

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests
  • cherry-pick candidate

Release note:

Overhaul Quickstart UX using AzureASOManagedCluster

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/documentation Categorizes issue or PR as related to documentation. labels Dec 3, 2024
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 3, 2024
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.53%. Comparing base (983bf8b) to head (11ba88f).
Report is 15 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5319   +/-   ##
=======================================
  Coverage   52.53%   52.53%           
=======================================
  Files         272      272           
  Lines       29421    29422    +1     
=======================================
+ Hits        15456    15457    +1     
  Misses      13166    13166           
  Partials      799      799           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


Specify values for the CAPZ AKS-ASO helm chart in a `values.yaml` file. For exmaple:

```yaml
Copy link
Contributor

@dtzar dtzar Dec 4, 2024

Choose a reason for hiding this comment

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

I'd say to specify here ONLY the minimum values required to provision a cluster and use the default values file provided with the chart. Exception might be keeping location


Create a `values.yaml` file for the CAPI Operator helm chart like so:

```yaml
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice to have the bash command to create the file so it can just be executed.


If you are looking to install additional ASO CRDs, set `ADDITIONAL_ASO_CRDS` to the list of CRDs you want to install. Refer to adding additional CRDs for Azure Service Operator [here](./topics/aso.md#Using-aso-for-non-capz-resources).
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's keep this and include it in the CAPI-Operator install values file.

helm install quick-start capi/azure-aks-aso -f values.yaml
```

For more information on the `azure-aks-aso` helm chart, see the [chart documentation](https://github.com/mboersma/cluster-api-charts/tree/main/charts/azure-aks-aso#azure-aks-aso-chart).
Copy link
Contributor

Choose a reason for hiding this comment

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

You can remove the clusterctl comments since we don't even use this in these steps.


If you are looking to install additional ASO CRDs, set `ADDITIONAL_ASO_CRDS` to the list of CRDs you want to install. Refer to adding additional CRDs for Azure Service Operator [here](./topics/aso.md#Using-aso-for-non-capz-resources).
The recommended way to build a cluster is to install a CAPZ management cluster using [Cluster API Operator](https://github.com/kubernetes-sigs/cluster-api-operator), then utilizing a helm chart to create a workload cluster, specifically an [ASO Managed Cluster](./managed/asomanagedcluster.md).
Copy link
Contributor

@dtzar dtzar Dec 4, 2024

Choose a reason for hiding this comment

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

Need to add in pre-requisites that people have helm installed at top of this page and remove requirement for clusterctl

@dtzar
Copy link
Contributor

dtzar commented Dec 4, 2024

Would appreciate a blurb somewhere in the quickstart (such as an optional/advanced next step at the end) like: "To see how CAPZ can be utilized in a platform engineering environment to provision AKS clusters with GitOps practices using ArgoCD and Backstage, see the AKS-platform-engineering sample repository".

If you are looking to install additional ASO CRDs, set `ADDITIONAL_ASO_CRDS` to the list of CRDs you want to install. Refer to adding additional CRDs for Azure Service Operator [here](./topics/aso.md#Using-aso-for-non-capz-resources).
The recommended way to build a cluster is to install a CAPZ management cluster using [Cluster API Operator](https://github.com/kubernetes-sigs/cluster-api-operator), then utilizing a helm chart to create a workload cluster, specifically an [ASO Managed Cluster](./managed/asomanagedcluster.md).

To create a cluster manually, check out the [Cluster API Quick Start](https://cluster-api.sigs.k8s.io/user/quick-start.html) for in-depth instructions. Make sure to select the "Azure" tabs. If you are looking to install additional ASO CRDs, set `ADDITIONAL_ASO_CRDS` to the list of CRDs you want to install. Refer to adding additional CRDs for Azure Service Operator [here](./topics/aso.md#Using-aso-for-non-capz-resources).
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this line. Instead add in comment at top of the page something like: "This quickstart is for provisioning a managed (AKS) cluster with the CAPI-operator and helm. See the CAPI quickstart to provision a self-managed cluster on Azure using clusterctl. The identity instructions can apply to either self-managed or managed cluster provisioning."

@jackfrancis jackfrancis changed the title WIP: Overhaul Quickstart UX using AzureASOManagedCluster docs: Getting Started first cluster focuses on AKS ASO Dec 6, 2024
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 6, 2024
@jackfrancis
Copy link
Contributor

/lgtm
/approve

@dtzar @mbrow137 feel free to submit any follow-ups to this

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 6, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: f003a54767a17f7605c0147749b2516bc5e63bad

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jackfrancis

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 6, 2024
docs/book/src/getting-started.md Outdated Show resolved Hide resolved
docs/book/src/getting-started.md Outdated Show resolved Hide resolved
docs/book/src/getting-started.md Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 10, 2024
Copy link
Contributor

@mboersma mboersma left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 10, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 5d2de7b508556b8415c7896fca675902ded70a5d

@k8s-ci-robot k8s-ci-robot merged commit 3ac9ff9 into kubernetes-sigs:main Dec 10, 2024
20 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.18 milestone Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/documentation Categorizes issue or PR as related to documentation. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Overhaul Quickstart UX using AzureASOManagedCluster
5 participants