You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kubectl get secret -n kube-system "bootstrap-token-${TOKEN_ID}"
352
354
```
353
355
354
-
For private clusters, if your workstation cannot reach the private API endpoint, run the RBAC/token creation from the admin VM and render the config from `az aks show` plus `az aks get-credentials --admin --file <path>`. The `kubernetes.version` value must be the full patch version, such as `1.34.7`, not the major/minor alias such as `1.34`; `aks-flex-node` uses this value to download Kubernetes binaries.
356
+
For private clusters, if your workstation cannot reach the private API endpoint, run the RBAC/token creation from the admin VM and render the config from `az aks show` plus `az aks get-credentials --admin --file <path>`. The `components.kubernetes` value must be the full patch version, such as `1.34.7`, not the major/minor alias such as `1.34`; `aks-flex-node` uses this value to download Kubernetes binaries.
kubectl get secret -n kube-system "bootstrap-token-${TOKEN_ID}"
407
409
```
408
410
409
-
For private clusters, if your workstation cannot reach the private API endpoint, run the RBAC/token creation from the admin VM and render the config from `az aks show` plus `az aks get-credentials --admin --file <path>`. The `kubernetes.version` value must be the full patch version, such as `1.34.7`, not the major/minor alias such as `1.34`; `aks-flex-node` uses this value to download Kubernetes binaries.
411
+
For private clusters, if your workstation cannot reach the private API endpoint, run the RBAC/token creation from the admin VM and render the config from `az aks show` plus `az aks get-credentials --admin --file <path>`. The `components.kubernetes` value must be the full patch version, such as `1.34.7`, not the major/minor alias such as `1.34`; `aks-flex-node` uses this value to download Kubernetes binaries.
@@ -52,6 +53,11 @@ This applies the bootstrap-related `ClusterRoleBinding` objects for the `system:
52
53
`generate-node-config` fetches AKS metadata and renders a config file. It requires exactly one auth mode.
53
54
54
55
Use `--output <path>` to write a config file with mode `0600`. If omitted, the config is written to stdout.
56
+
The helper writes `azure.resourceManagerEndpoint` with the public ARM endpoint and writes the selected agent pool name to `azure.targetAgentPoolName`. If `--agent-pool-name` is omitted, it defaults to the historical `aksflexnodes` pool name.
57
+
58
+
| Flag | Required | Description |
59
+
|------|----------|-------------|
60
+
|`--agent-pool-name`| no | FlexNode agent pool name written into the generated config. Defaults to `aksflexnodes`. |
55
61
56
62
### Bootstrap Token
57
63
@@ -60,11 +66,12 @@ Use `--output <path>` to write a config file with mode `0600`. If omitted, the c
60
66
--resource-group "$RESOURCE_GROUP" \
61
67
--cluster-name "$CLUSTER_NAME" \
62
68
--subscription "$SUBSCRIPTION_ID" \
69
+
--agent-pool-name "$AGENT_POOL_NAME" \
63
70
--bootstrap-token \
64
71
--output ./aks-flex-node-config.json
65
72
```
66
73
67
-
Bootstrap-token mode creates a Kubernetes bootstrap token `Secret`, reads the AKS API server and CA data from kubeconfig, and includes those values in the generated config.
74
+
Bootstrap-token mode creates a Kubernetes bootstrap token `Secret`, reads the AKS API server and CA data from kubeconfig, and includes those values plus the AKS DNS service IP in the generated config.
68
75
69
76
### Managed Identity
70
77
@@ -73,6 +80,7 @@ Bootstrap-token mode creates a Kubernetes bootstrap token `Secret`, reads the AK
73
80
--resource-group "$RESOURCE_GROUP" \
74
81
--cluster-name "$CLUSTER_NAME" \
75
82
--subscription "$SUBSCRIPTION_ID" \
83
+
--agent-pool-name "$AGENT_POOL_NAME" \
76
84
--identity \
77
85
--output ./aks-flex-node-config.json
78
86
```
@@ -84,6 +92,7 @@ For user-assigned managed identity, pass the client ID with `--username`:
84
92
--resource-group "$RESOURCE_GROUP" \
85
93
--cluster-name "$CLUSTER_NAME" \
86
94
--subscription "$SUBSCRIPTION_ID" \
95
+
--agent-pool-name "$AGENT_POOL_NAME" \
87
96
--identity \
88
97
--username "<managed-identity-client-id>" \
89
98
--output ./aks-flex-node-config.json
@@ -98,6 +107,7 @@ Service principal flags follow the `az login --service-principal` convention:
98
107
--resource-group "$RESOURCE_GROUP" \
99
108
--cluster-name "$CLUSTER_NAME" \
100
109
--subscription "$SUBSCRIPTION_ID" \
110
+
--agent-pool-name "$AGENT_POOL_NAME" \
101
111
--service-principal \
102
112
--username "<client-id>" \
103
113
--password "<client-secret>" \
@@ -114,6 +124,7 @@ Service principal flags follow the `az login --service-principal` convention:
0 commit comments