|
21 | 21 | - [Tilt for dev in CAPZ](#tilt-for-dev-in-capz)
|
22 | 22 | - [Tilt for dev in both CAPZ and CAPI](#tilt-for-dev-in-both-capz-and-capi)
|
23 | 23 | - [Deploying a workload cluster](#deploying-a-workload-cluster)
|
| 24 | + - [Tilt for dev using internal load balancer (ILB) for intra-cluster node-apiserver traffic](#tilt-for-dev-using-internal-load-balancer-ilb-for-intra-cluster-node-apiserver-traffic) |
| 25 | + - [Flavors for dev using internal load balancer (ILB) for intra-cluster node-apiserver traffic](#flavors-for-dev-using-internal-load-balancer-ilb-for-intra-cluster-node-apiserver-traffic) |
24 | 26 | - [Viewing Telemetry](#viewing-telemetry)
|
25 | 27 | - [Debugging](#debugging)
|
26 | 28 | - [Manual Testing](#manual-testing)
|
@@ -151,6 +153,17 @@ development will span both CAPZ and CAPI, then follow the [CAPI and CAPZ instruc
|
151 | 153 |
|
152 | 154 | #### Tilt for dev in CAPZ
|
153 | 155 |
|
| 156 | +<aside class="note warning"> |
| 157 | + <h2>Warning</h2> |
| 158 | + <p> |
| 159 | + To use an internal load balancer (ILB) intra-cluster node-apiserver traffic in your workload cluster, follow the |
| 160 | + instructions in the |
| 161 | + <a href="#tilt-for-dev-using-internal-load-balancer-ilb-for-intra-cluster-node-apiserver-traffic"> |
| 162 | + Tilt for Dev: Internal LB for Cluster VNet Communication |
| 163 | + </a> section. |
| 164 | + </p> |
| 165 | +</aside> |
| 166 | + |
154 | 167 | If you want to develop in CAPZ and get a local development cluster working quickly, this is the path for you.
|
155 | 168 |
|
156 | 169 | Create a file named `tilt-settings.yaml` in the root of the CAPZ repository with the following contents:
|
@@ -247,6 +260,36 @@ make delete-workload-cluster
|
247 | 260 |
|
248 | 261 | > Check out the [self-managed](../self-managed/troubleshooting.md) and [managed](../managed/troubleshooting.md) troubleshooting guides for common errors you might run into.
|
249 | 262 |
|
| 263 | +#### Tilt for dev using internal load balancer (ILB) for intra-cluster node-apiserver traffic |
| 264 | + |
| 265 | +This flow is for developers who want to leverage the internal load balancer for intra-cluster node-apiserver traffic. |
| 266 | +You can achieve this by setting the `EXP_APISERVER_ILB` environment variable to `true` in your shell (run `export EXP_APISERVER_ILB=true`) and then create the CAPZ management cluster. |
| 267 | + |
| 268 | +We also encourage you to use AKS cluster as your management cluster. |
| 269 | + |
| 270 | +Outline of the steps: |
| 271 | +- `make clean` |
| 272 | +- `make generate` |
| 273 | +- Set `REGISTRY` in your env. Preferably an Azure Container Registry. |
| 274 | +- Run `docker-build-all` to build all the images. |
| 275 | +- Run `make acr-login` to login to your ACR. |
| 276 | +- Run `docker-push-all` to push all the images to your ACR. |
| 277 | +- Run `make aks-create` to create an AKS cluster. _Notice the changes that get applied to the `tilt-settings.yaml` file._ |
| 278 | +- Run `export EXP_APISERVER_ILB=true` in your shell. |
| 279 | +- Run `make tilt-up` to start Tilt. |
| 280 | + |
| 281 | +``` |
| 282 | +TODO: |
| 283 | +1. Come up with a shorter make target to do all the above steps for MS Tenants. |
| 284 | +2. VNet peering should be exported out as a shell script for users to run. |
| 285 | +``` |
| 286 | + |
| 287 | +##### Flavors for dev using internal load balancer (ILB) for intra-cluster node-apiserver traffic |
| 288 | + |
| 289 | +There are two flavors available for development in CAPZ for MSFT Tenant: |
| 290 | +- [apiserver-ilb](../../../../templates/cluster-template-apiserver-ilb.yaml): VM based default flavor that brings up native K8s clusters with Linux nodes. |
| 291 | +- [apiserver-ilb-windows](../../../../templates/cluster-template-windows-apiserver-ilb.yaml): VM based flavor that brings up native K8s clusters with Linux and Windows nodes. |
| 292 | + |
250 | 293 | #### Viewing Telemetry
|
251 | 294 |
|
252 | 295 | The CAPZ controller emits tracing and metrics data. When run in Tilt, the KinD management cluster is
|
|
0 commit comments