Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion workload-identity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,25 @@ spec:
- "/bin/bash"
- "-c"
- "sleep infinity"
env:
- name: AZURE_CLIENT_ID
value: XXXXXXXXXXXXXX
- name: AZURE_TENANT_ID
value: XXXXXXXXXXXXXX
- name: AZURE_FEDERATED_TOKEN_FILE
value: /var/run/secrets/tokens/azure-identity-token
volumeMounts:
- mountPath: /var/run/secrets/tokens
name: azure-identity-token
volumes:
- name: azure-identity-token
projected:
defaultMode: 420
sources:
- serviceAccountToken:
audience: api://AzureADTokenExchange
expirationSeconds: 3600
path: azure-identity-token
EOF

# Get pod name and get a shell to container in pod
Expand Down Expand Up @@ -149,4 +168,4 @@ az group create -n test -l westeurope

# exit the container
exit
```
```