forked from Azure/Bridge-To-Kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert mi test app docker to dotnet 7.0 (Azure#609)
- Loading branch information
1 parent
988e40f
commit caadcaf
Showing
3 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: mi-webapp | ||
namespace: mi-webapp | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: mi-webapp | ||
template: | ||
metadata: | ||
labels: | ||
app: mi-webapp | ||
# Label for pod identity | ||
aadpodidbinding: mi-test | ||
spec: | ||
containers: | ||
- image: mindarodev.azurecr.io/samples/mi-webapp:v3 | ||
imagePullPolicy: IfNotPresent | ||
name: mi-webapp | ||
env: | ||
# the below environment variable values come from the below sub and rg: | ||
# Sub: Mindaro Testing (c2e0f009-a61a-4578-8a6d-5715ee782648) | ||
# RG: testing-scenario | ||
# Storage account name: mitestsa | ||
# Managed identity name: mi-test | ||
- name: STORAGE_ACCOUNT_NAME | ||
value: "mitestsa" | ||
- name: STORAGE_CONTAINER_NAME | ||
value: "mitestsa-container" | ||
- name: MI_CLIENT_ID | ||
value: "a2cc59eb-fa11-485c-9bee-c84aa4cb97d0" | ||
ports: | ||
- containerPort: 80 | ||
|
||
--- | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: mi-webapp-service | ||
namespace: mi-webapp | ||
spec: | ||
selector: | ||
app: mi-webapp | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: 80 | ||
type: LoadBalancer | ||
|
||
--- | ||
# AzureIdentity resource for pod identity | ||
apiVersion: "aadpodidentity.k8s.io/v1" | ||
kind: AzureIdentity | ||
metadata: | ||
name: mi-test | ||
spec: | ||
type: 0 | ||
resourceID: "/subscriptions/c2e0f009-a61a-4578-8a6d-5715ee782648/resourcegroups/MC_testing-scenario_testing-scenarios-arm_westeurope/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mi-test" | ||
clientID: "a2cc59eb-fa11-485c-9bee-c84aa4cb97d0" | ||
--- | ||
# AzureIdentityBinding resource for pod identity | ||
apiVersion: "aadpodidentity.k8s.io/v1" | ||
kind: AzureIdentityBinding | ||
metadata: | ||
name: mi-test-binding | ||
spec: | ||
azureIdentity: mi-test | ||
selector: mi-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters