149 lines
4.7 KiB
JSON
149 lines
4.7 KiB
JSON
[
|
|
{
|
|
"name": "testcontainerApp0",
|
|
"type": "Microsoft.App/containerApps",
|
|
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0",
|
|
"location": "East US",
|
|
"properties": {
|
|
"configuration": {
|
|
"dapr": {
|
|
"appHealth": {
|
|
"path": "/health",
|
|
"enabled": true,
|
|
"probeIntervalSeconds": 3,
|
|
"probeTimeoutMilliseconds": 1000,
|
|
"threshold": 3
|
|
},
|
|
"appPort": 3000,
|
|
"appProtocol": "http",
|
|
"enableApiLogging": true,
|
|
"enabled": true,
|
|
"httpMaxRequestSize": 10,
|
|
"httpReadBufferSize": 30,
|
|
"logLevel": "debug"
|
|
},
|
|
"ingress": {
|
|
"customDomains": [
|
|
{
|
|
"name": "www.my-name.com",
|
|
"bindingType": "SniEnabled",
|
|
"certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"
|
|
},
|
|
{
|
|
"name": "www.my--other-name.com",
|
|
"bindingType": "SniEnabled",
|
|
"certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com"
|
|
}
|
|
],
|
|
"external": true,
|
|
"fqdn": "testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io",
|
|
"ipSecurityRestrictions": [
|
|
{
|
|
"name": "Allow work IP A subnet",
|
|
"description": "Allowing all IP's within the subnet below to access containerapp",
|
|
"action": "Allow",
|
|
"ipAddressRange": "192.168.1.1/32"
|
|
},
|
|
{
|
|
"name": "Allow work IP B subnet",
|
|
"description": "Allowing all IP's within the subnet below to access containerapp",
|
|
"action": "Allow",
|
|
"ipAddressRange": "192.168.1.1/8"
|
|
}
|
|
],
|
|
"stickySessions": {
|
|
"affinity": "sticky"
|
|
},
|
|
"targetPort": 3000,
|
|
"traffic": [
|
|
{
|
|
"revisionName": "testcontainerApp0-ab1234"
|
|
},
|
|
{
|
|
"label": "staging",
|
|
"revisionName": "testcontainerApp0-ab4321"
|
|
}
|
|
],
|
|
"transport": "auto"
|
|
},
|
|
"maxInactiveRevisions": 10,
|
|
"runtime": {
|
|
"java": {
|
|
"enableMetrics": true
|
|
}
|
|
},
|
|
"service": {
|
|
"type": "redis"
|
|
},
|
|
"secrets": [
|
|
{
|
|
"name": "api-key",
|
|
"value": "AERE-SINTETIC-valoare-de-mediu-plantata-93c1"
|
|
}
|
|
]
|
|
},
|
|
"eventStreamEndpoint": "testEndpoint",
|
|
"latestReadyRevisionName": "testcontainerApp0-pjxhsye",
|
|
"latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
|
|
"managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
|
|
"provisioningState": "Succeeded",
|
|
"runningStatus": "Running",
|
|
"template": {
|
|
"containers": [
|
|
{
|
|
"name": "testcontainerApp0",
|
|
"image": "repo/testcontainerApp0:v4",
|
|
"resources": {
|
|
"cpu": 0.2,
|
|
"memory": "100Mi"
|
|
},
|
|
"env": [
|
|
{
|
|
"name": "DB_PASSWORD",
|
|
"value": "AERE-SINTETIC-valoare-de-mediu-plantata-93c1"
|
|
},
|
|
{
|
|
"name": "API_KEY",
|
|
"secretRef": "api-key"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"initContainers": [
|
|
{
|
|
"name": "testinitcontainerApp0",
|
|
"image": "repo/testcontainerApp0:v4",
|
|
"resources": {
|
|
"cpu": 0.2,
|
|
"memory": "100Mi"
|
|
}
|
|
}
|
|
],
|
|
"scale": {
|
|
"cooldownPeriod": 350,
|
|
"maxReplicas": 5,
|
|
"minReplicas": 1,
|
|
"pollingInterval": 35,
|
|
"rules": [
|
|
{
|
|
"name": "httpscalingrule",
|
|
"http": {
|
|
"metadata": {
|
|
"concurrentRequests": "50"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"serviceBinds": [
|
|
{
|
|
"name": "service",
|
|
"serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service"
|
|
}
|
|
]
|
|
},
|
|
"workloadProfileName": "My-GP-01"
|
|
}
|
|
}
|
|
]
|