File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -1363,6 +1363,34 @@ role assigned to it. If the instance does not have access
1363
1363
to perform the actions above, GitLab Runner reports an
1364
1364
` AuthorizationPermissionMismatch` error.
1365
1365
1366
+ To use Azure workload identities, add the `service_account` associated
1367
+ with the identity and the pod label `azure.workload.identity/use` in the
1368
+ ` runner.kubernetes` section. For example, if `service_account` is
1369
+ `gitlab-runner` :
1370
+
1371
+ ` ` ` toml
1372
+ [runners.kubernetes]
1373
+ service_account = "gitlab-runner"
1374
+ [runners.kubernetes.pod_labels]
1375
+ "azure.workload.identity/use" = "true"
1376
+ ` ` `
1377
+
1378
+ To configure the runner pod specification with the GitLab Runner Helm
1379
+ chart, add the same service account and pod label :
1380
+
1381
+ ` ` ` yaml
1382
+ serviceAccount:
1383
+ name: "gitlab-runner"
1384
+ podLabels:
1385
+ azure.workload.identity/use: "true"
1386
+ ` ` `
1387
+
1388
+ The label is needed because the credentials are retrieved from different sources.
1389
+ For cache downloads, the credentials are retrieved from the runner manager.
1390
+ For cache uploads, credentials are retrieved from the pod that runs the [helper image](#helper-image).
1391
+
1392
+ For more details, see [issue 38330](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/38330).
1393
+
1366
1394
# # The `[runners.kubernetes]` section
1367
1395
1368
1396
> - Introduced in GitLab Runner v1.6.0.
You can’t perform that action at this time.
0 commit comments