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
@@ -66,6 +66,7 @@ If you're interested in developing cluster-api-provider-azure and getting the la
66
66
An Azure Service Principal is needed for usage by the `clusterctl` tool and for populating the controller manifests. This utilizes [environment-based authentication](https://docs.microsoft.com/en-us/go/azure/azure-sdk-go-authorization#use-environment-based-authentication).
67
67
68
68
The following environment variables should be set:
69
+
69
70
-`AZURE_SUBSCRIPTION_ID`
70
71
-`AZURE_TENANT_ID`
71
72
-`AZURE_CLIENT_ID`
@@ -86,6 +87,7 @@ tar -xvf cluster-api-provider-azure-examples.tar
86
87
A set of sane defaults are utilized when generating manifests via `./azure/generate-yaml.sh`, but these can be overridden by exporting environment variables.
87
88
88
89
Here is a list of commonly overriden configuration parameters (the full list is available in `./azure/generate-yaml.sh`):
The created KIND cluster is ephemeral and is cleaned up automatically when done. During the cluster creation, the KIND configuration is written to a local directory and can be retrieved using `kind get kubeconfig-path --name="clusterapi"`.
241
+
The created KIND cluster is ephemeral and is cleaned up automatically when done. During the cluster creation, the kubectl context is set to "kind-clusterapi" and can be retrieved using `kubectl cluster-info --context kind-clusterapi`.
240
242
241
243
For a more in-depth look into what `clusterctl` is doing during this create step, please see the [clusterctl document](/docs/clusterctl.md).
242
244
@@ -245,21 +247,20 @@ For a more in-depth look into what `clusterctl` is doing during this create step
245
247
The kubeconfig for the new cluster is created in the directory from where the above `clusterctl create` was run.
246
248
247
249
Run the following command to point `kubectl` to the kubeconfig of the new cluster:
250
+
248
251
```bash
249
252
export KUBECONFIG=$(pwd)/kubeconfig
250
253
```
251
254
252
255
Alternatively, move the kubeconfig file to a desired location and set the `KUBECONFIG` environment variable accordingly.
253
256
254
-
255
257
## Troubleshooting
256
258
257
259
### Bootstrap running, but resources aren't being created
258
260
259
261
Logs can be tailed using [`kubectl`][kubectl]:
260
262
261
263
```bash
262
-
export KUBECONFIG=$(kind get kubeconfig-path --name="clusterapi")
0 commit comments