116 lines
2.3 KiB
JSON
116 lines
2.3 KiB
JSON
{
|
|
"deployment": {
|
|
"cluster": "$CLUSTER",
|
|
"name": "deployment-portal-backend",
|
|
"instance": {
|
|
"count": 2,
|
|
"cpu": 0.25,
|
|
"memory": "500Mi"
|
|
},
|
|
"environmentVariables": [
|
|
{
|
|
"name": "DATASOURCE_URL",
|
|
"value": "$DATASOURCE_URL"
|
|
},
|
|
{
|
|
"name": "DATASOURCE_PASSWORD",
|
|
"value": "$DATASOURCE_PASSWORD"
|
|
},
|
|
{
|
|
"name": "DATASOURCE_USERNAME",
|
|
"value": "$DATASOURCE_USERNAME"
|
|
},
|
|
{
|
|
"name": "OKTA_CLIENT_ID",
|
|
"value": "$OKTA_CLIENT_ID"
|
|
},
|
|
{
|
|
"name": "OKTA_CLIENT_SECRET",
|
|
"value": "$OKTA_CLIENT_SECRET"
|
|
},
|
|
{
|
|
"name": "OKTA_URL",
|
|
"value": "$OKTA_URL"
|
|
},
|
|
{
|
|
"name": "ALLOWED_ORIGINS",
|
|
"value": "$ALLOWED_ORIGINS"
|
|
},
|
|
{
|
|
"name": "VAULT_ADDRESS",
|
|
"value": "$VAULT_ADDRESS"
|
|
},
|
|
{
|
|
"name": "VAULT_METATOKEN",
|
|
"value": "$VAULT_METATOKEN"
|
|
},
|
|
{
|
|
"name": "DDL_AUTO",
|
|
"value": "$DDL_AUTO"
|
|
},
|
|
{
|
|
"name": "KUBE_CONFIG",
|
|
"value": "$KUBE_CONFIG"
|
|
}
|
|
],
|
|
"namespace": "$NAMESPACE",
|
|
"exposedPorts": [
|
|
{
|
|
"name": "metrics",
|
|
"port": 4001
|
|
}
|
|
],
|
|
"loadBalancers": [
|
|
{
|
|
"type": "$LB_TYPE",
|
|
"accessPolicies": [
|
|
$ACCESS_POLICIES
|
|
],
|
|
"endpoint": "$SERVICE_ENDPOINT"
|
|
}
|
|
],
|
|
"allowEgress": [],
|
|
"healthChecks": {
|
|
"readinessCheck": {
|
|
"type": "http",
|
|
"port": "serviceport",
|
|
"path": "/health",
|
|
"successThreshold": 1,
|
|
"initialDelaySeconds": 90,
|
|
"periodSeconds": 30,
|
|
"failureThreshold": 3,
|
|
"httpHeaders": []
|
|
},
|
|
"livenessCheck": {
|
|
"type": "http",
|
|
"port": "metrics",
|
|
"path": "/actuator/health",
|
|
"successThreshold": 1,
|
|
"initialDelaySeconds": 90,
|
|
"periodSeconds": 30,
|
|
"failureThreshold": 3,
|
|
"httpHeaders": []
|
|
}
|
|
}
|
|
},
|
|
"extraResources": {
|
|
"environment": "$ENVIRONMENT",
|
|
"aws_access": {
|
|
"policies": [
|
|
{
|
|
"resource": "*",
|
|
"actions": [
|
|
"sts:*"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"team": {
|
|
"name": "Infra"
|
|
},
|
|
"labels": {
|
|
"micrometer-prometheus": "enabled"
|
|
},
|
|
"version": "v1"
|
|
} |