re enable container app
This commit is contained in:
parent
ee02dc06d1
commit
7d1b90e25d
1 changed files with 67 additions and 67 deletions
|
@ -18,73 +18,73 @@ resource environment 'Microsoft.App/managedEnvironments@2024-03-01' = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// resource app 'Microsoft.App/containerApps@2024-03-01' = {
|
resource app 'Microsoft.App/containerApps@2024-03-01' = {
|
||||||
// name: 'acr-${context.locationAbbreviation}-${context.environment}-${context.projectName}-app'
|
name: 'acr-${context.locationAbbreviation}-${context.environment}-${context.projectName}-app'
|
||||||
// location: context.location
|
location: context.location
|
||||||
// identity: {
|
identity: {
|
||||||
// type: 'SystemAssigned'
|
type: 'SystemAssigned'
|
||||||
// }
|
}
|
||||||
// properties: {
|
properties: {
|
||||||
// environmentId: environment.id
|
environmentId: environment.id
|
||||||
|
|
||||||
// configuration: {
|
configuration: {
|
||||||
// activeRevisionsMode: 'Single'
|
activeRevisionsMode: 'Single'
|
||||||
|
|
||||||
// ingress: {
|
ingress: {
|
||||||
// external: true
|
external: true
|
||||||
// targetPort: 8080
|
targetPort: 8080
|
||||||
// transport: 'http2'
|
transport: 'http2'
|
||||||
// allowInsecure: false
|
allowInsecure: false
|
||||||
// traffic: [
|
traffic: [
|
||||||
// {
|
{
|
||||||
// weight: 100
|
weight: 100
|
||||||
// latestRevision: true
|
latestRevision: true
|
||||||
// }
|
}
|
||||||
// ]
|
]
|
||||||
// corsPolicy: {
|
corsPolicy: {
|
||||||
// allowedOrigins: [
|
allowedOrigins: [
|
||||||
// // 'https://localhost:3000'
|
// 'https://localhost:3000'
|
||||||
// '*'
|
'*'
|
||||||
// ]
|
]
|
||||||
// allowCredentials: true
|
allowCredentials: true
|
||||||
// allowedHeaders: ['*']
|
allowedHeaders: ['*']
|
||||||
// allowedMethods: ['Get, POST']
|
allowedMethods: ['Get, POST']
|
||||||
// maxAge: 0
|
maxAge: 0
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// registries: [
|
registries: [
|
||||||
// {
|
{
|
||||||
// identity: 'system'
|
identity: 'system'
|
||||||
// server: registry.properties.loginServer
|
server: registry.properties.loginServer
|
||||||
// }
|
}
|
||||||
// ]
|
]
|
||||||
// }
|
}
|
||||||
|
|
||||||
// template: {
|
template: {
|
||||||
// containers: [
|
containers: [
|
||||||
// {
|
{
|
||||||
// image: '${registry.properties.loginServer}/${context.projectName}-${appName}:${version}'
|
image: '${registry.properties.loginServer}/${context.projectName}-${appName}:${version}'
|
||||||
// name: '${context.projectName}-${appName}'
|
name: '${context.projectName}-${appName}'
|
||||||
// resources: {
|
resources: {
|
||||||
// cpu: json('0.25')
|
cpu: json('0.25')
|
||||||
// memory: '0.5Gi'
|
memory: '0.5Gi'
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// ]
|
]
|
||||||
// scale: {
|
scale: {
|
||||||
// minReplicas: 1
|
minReplicas: 1
|
||||||
// maxReplicas: 2
|
maxReplicas: 2
|
||||||
// rules: [
|
rules: [
|
||||||
// {
|
{
|
||||||
// name: 'http-rule'
|
name: 'http-rule'
|
||||||
// http: {
|
http: {
|
||||||
// metadata: {
|
metadata: {
|
||||||
// concurrentRequests: '50'
|
concurrentRequests: '50'
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// ]
|
]
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue