-
Notifications
You must be signed in to change notification settings - Fork 21
docs: add cluster prerequisites and troubleshooting for node join #247
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
Open
nnamuhcs
wants to merge
1
commit into
Azure:main
Choose a base branch
from
nnamuhcs:docs/cluster-prerequisites
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,6 +50,26 @@ Your Flex Node machine and the AKS cluster must be able to reach each other. Con | |
| > **Note** | ||
| > On-premises machines usually reach the cluster's private node network through a site-to-site VPN, ExpressRoute, or equivalent routed connectivity. Establishing that link is a prerequisite for this quickstart. For advanced network scenarios such as cross-region, gateway, or custom CNI topologies, follow the [lab guides](docs/labs/README.md). | ||
|
|
||
| ### Prepare the cluster | ||
|
|
||
| Before you join any nodes, the target AKS cluster must be set up with the Flex Node cluster-side components. A plain AKS cluster does **not** have them, and `aks-flex-node start` (Step 6) will hang, then fail with `wait for daemon controller certificate: context deadline exceeded` (see [Troubleshooting](#troubleshooting)). | ||
|
|
||
| > **Note** | ||
| > AKS Flex Node is alpha. Automatic cluster preparation through the AKS resource provider is not yet available, so today you prepare the cluster yourself. The [lab guides](docs/labs/README.md) provide a fully validated end-to-end setup and are the recommended path. | ||
|
|
||
| The cluster needs three things: | ||
|
|
||
| 1. **A Flex-compatible CNI.** A default AKS CNI does not route pod traffic to Flex nodes. The validated CNI is [Unbounded-Net](https://github.com/Azure/unbounded); the [lab guides](docs/labs/README.md) create the cluster with `--network-plugin none` and install it. | ||
| 2. **The AKS Flex Controller** in `kube-system`, with the CSR approver enabled. It approves each node's daemon certificate and serves machine goal state. Deploy it from [`hack/controller-deployment/`](hack/controller-deployment/), ensuring the deployment runs with `--enable-csr-approver=true` (the checked-in manifest defaults to `false`): | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should remove mentioning for this |
||
|
|
||
| ```bash | ||
| kubectl apply -k hack/controller-deployment/ | ||
| kubectl -n kube-system rollout status deployment/aks-flex-controller | ||
| ``` | ||
|
Comment on lines
+63
to
+68
|
||
| 3. **A registered machine for each node.** The controller only approves a node whose machine is pre-registered in the `kube-system/aks-flex-machines` ConfigMap, keyed by node name. See [`docs/design/in-cluster-machine.md`](docs/design/in-cluster-machine.md) for the machine JSON shape and `hack/e2e/` for a working reference. | ||
|
|
||
| For the fully scripted version of all of the above, run `hack/e2e/run.sh infra`. | ||
|
|
||
| ### Step 1: Set your variables and connect to the cluster | ||
|
|
||
| **Run on: your workstation** | ||
|
|
@@ -318,6 +338,25 @@ kubectl delete node <node-name> | |
|
|
||
| </details> | ||
|
|
||
| ### Troubleshooting | ||
|
|
||
| **`aks-flex-node start` hangs, then fails with `wait for daemon controller certificate: context deadline exceeded`.** | ||
|
|
||
| The node's daemon requested a certificate that nothing approved. This almost always means the cluster side is not fully prepared (see [Prepare the cluster](#prepare-the-cluster)). Check, from your workstation: | ||
|
|
||
| ```bash | ||
| # Is the controller running? | ||
| kubectl -n kube-system get deployment aks-flex-controller | ||
|
|
||
| # Are daemon CSRs stuck Pending? (signer: kubernetes.io/kube-apiserver-client) | ||
| kubectl get csr | ||
|
|
||
| # Is this node registered as a machine? | ||
| kubectl -n kube-system get configmap aks-flex-machines -o json | jq -r '.data | keys[]?' | ||
|
Comment on lines
+354
to
+355
|
||
| ``` | ||
|
|
||
| If the controller is missing, the CSR approver is disabled (`--enable-csr-approver=false`), or the node has no machine entry, the daemon certificate is never issued and the agent times out. | ||
|
|
||
| ### Next steps | ||
|
|
||
| - **Other authentication modes** (managed identity, service principal, Azure Arc): see the [Usage Guide](docs/usage.md). | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't hanging the process is true? We could say the lifecycle daemon controller will be in crashing state, but this is not blocking the kubelet bootstrapping
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and user can get it working by manually approving the CSR generated by the lifecycle daemon controller