Skip to content

Commit

Permalink
Merge pull request #5146 from KOREAN139/refactor/set-machinepool-true…
Browse files Browse the repository at this point in the history
…-as-default

refactor(manager): set machinepool true as default
  • Loading branch information
k8s-ci-robot authored Oct 3, 2024
2 parents 553cd0f + aef33ac commit 80fca66
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- --leader-elect
- "--diagnostics-address=${CAPZ_DIAGNOSTICS_ADDRESS:=:8443}"
- "--insecure-diagnostics=${CAPZ_INSECURE_DIAGNOSTICS:=false}"
- "--feature-gates=MachinePool=${EXP_MACHINE_POOL:=false},AKSResourceHealth=${EXP_AKS_RESOURCE_HEALTH:=false},EdgeZone=${EXP_EDGEZONE:=false},ASOAPI=${EXP_ASO_API:=true}"
- "--feature-gates=MachinePool=${EXP_MACHINE_POOL:=true},AKSResourceHealth=${EXP_AKS_RESOURCE_HEALTH:=false},EdgeZone=${EXP_EDGEZONE:=false},ASOAPI=${EXP_ASO_API:=true}"
- "--v=0"
image: controller:latest
imagePullPolicy: Always
Expand Down
2 changes: 1 addition & 1 deletion docs/book/src/developers/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ You can optionally set the following variables:
| `KUBERNETES_VERSION` | Desired Kubernetes version to test. You can pass in a definitive released version, e.g., "v1.24.0". If you want to use pre-released CI bits of a particular release you may use the "latest-" prefix, e.g., "latest-1.24"; you may use the very latest built CI bits from the kubernetes/kubernetes master branch by passing in "latest". If you provide a `KUBERNETES_VERSION` environment variable, you may not also use `CI_VERSION` (below). Use only one configuration variable to declare the version of Kubernetes to test. |
| `CI_VERSION` | Provide a custom CI version of Kubernetes (e.g., `v1.25.0-alpha.0.597+aa49dffc7f24dc`). If not specified, this will be determined from the KUBERNETES_VERSION above if it is an unreleased version. If you provide a `CI_VERSION` environment variable, you may not also use `KUBERNETES_VERSION` (above). |
| `TEST_CCM` | Build a cluster that uses custom versions of the Azure cloud-provider cloud-controller-manager and node-controller-manager images |
| `EXP_MACHINE_POOL` | Use [Machine Pool](../self-managed/machinepools.md) for worker machines. |
| `EXP_MACHINE_POOL` | Use [Machine Pool](../self-managed/machinepools.md) for worker machines. Defaults to true. |
| `TEST_WINDOWS` | Build a cluster that has Windows worker nodes. |
| `REGISTRY` | Registry to push any custom k8s images or cloud provider images built. |
| `CLUSTER_TEMPLATE` | Use a custom cluster template. It can be a path to a template under templates/, a path on the host or a link. If the value is not set, the script will choose the appropriate cluster template based on existing environment variables. |
Expand Down
7 changes: 4 additions & 3 deletions docs/book/src/managed/managedcluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@ export AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE="default"
export CLUSTER_IDENTITY_NAME="cluster-identity"
```

Managed clusters require the Cluster API "MachinePool" feature flag enabled. You can do that via an environment variable thusly:
Managed clusters require the Cluster API "MachinePool" feature flag enabled. The feature flag is enabled by default, but you can configure it using the following environment variable:

```bash
export EXP_MACHINE_POOL=true
export EXP_MACHINE_POOL=true
```


Create a local kind cluster to run the management cluster components:

```bash
Expand Down Expand Up @@ -416,4 +417,4 @@ To learn more about OIDC and AKS refer [AKS Docs on OIDC issuer](https://learn.m
CAPZ no longer supports passing custom headers to AKS APIs with `infrastructure.cluster.x-k8s.io/custom-header-` annotations.
Custom headers are deprecated in AKS in favor of new features first landing in preview API versions:

https://github.com/Azure/azure-rest-api-specs/pull/18232
https://github.com/Azure/azure-rest-api-specs/pull/18232
8 changes: 7 additions & 1 deletion docs/book/src/self-managed/machinepools.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# MachinePools
- **Feature status:** Experimental
- **Feature status:** Experimental (Beta)
- **Feature gate:** MachinePool=true
- **Default value:** true (enabled)

> In Cluster API (CAPI) v1alpha2, users can create MachineDeployment, MachineSet or Machine custom
> resources. When you create a MachineDeployment or MachineSet, Cluster API components react and
Expand Down Expand Up @@ -31,6 +32,11 @@
*Source: [MachinePool API Proposal](https://github.com/kubernetes-sigs/cluster-api/blob/bf51a2502f9007b531f6a9a2c1a4eae1586fb8ca/docs/proposals/20190919-machinepool-api.md)*

> In Cluster API (CAPI) v1.7.0, MachinePool feature flag's default settings become true and promoted
> to Beta from Alpha. To disable this feature, you can use `EXP_MACHINE_POOL=false`.
*Source: [Cluster API v1.7.0 Release Note](https://github.com/kubernetes-sigs/cluster-api/releases/tag/v1.7.0)*

## AzureMachinePool
Cluster API Provider Azure (CAPZ) has experimental support for `MachinePool` through the infrastructure
types `AzureMachinePool` and `AzureMachinePoolMachine`. An `AzureMachinePool` corresponds to a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ spec:
- "--diagnostics-address=:8080"
- "--insecure-diagnostics"
- "--leader-elect"
- "--feature-gates=MachinePool=${EXP_MACHINE_POOL:=false},AKSResourceHealth=${EXP_AKS_RESOURCE_HEALTH:=false},EdgeZone=${EXP_EDGEZONE:=false},ASOAPI=${EXP_ASO_API:=true}"
- "--feature-gates=MachinePool=${EXP_MACHINE_POOL:=true},AKSResourceHealth=${EXP_AKS_RESOURCE_HEALTH:=false},EdgeZone=${EXP_EDGEZONE:=false},ASOAPI=${EXP_ASO_API:=true}"
- "--enable-tracing"

0 comments on commit 80fca66

Please sign in to comment.