107 lines
2.7 KiB
JSON
107 lines
2.7 KiB
JSON
{
|
|
"apiVersion": "apps/v1",
|
|
"kind": "Deployment",
|
|
"metadata": {
|
|
"labels": {
|
|
"app": "gx10-tts"
|
|
},
|
|
"name": "gx10-tts",
|
|
"namespace": "tts"
|
|
},
|
|
"spec": {
|
|
"progressDeadlineSeconds": 600,
|
|
"replicas": 1,
|
|
"revisionHistoryLimit": 10,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"app": "gx10-tts"
|
|
}
|
|
},
|
|
"strategy": {
|
|
"rollingUpdate": {
|
|
"maxSurge": "25%",
|
|
"maxUnavailable": "25%"
|
|
},
|
|
"type": "RollingUpdate"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"labels": {
|
|
"app": "gx10-tts"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"env": [
|
|
{
|
|
"name": "TTS_PORT",
|
|
"value": "8500"
|
|
},
|
|
{
|
|
"name": "PIPER_VOICE",
|
|
"value": "en_US-amy-medium"
|
|
},
|
|
{
|
|
"name": "TARGET_RATE",
|
|
"value": "16000"
|
|
}
|
|
],
|
|
"image": "localhost/fc-gx10-tts:v20260614",
|
|
"imagePullPolicy": "Never",
|
|
"livenessProbe": {
|
|
"failureThreshold": 3,
|
|
"httpGet": {
|
|
"path": "/health",
|
|
"port": 8500,
|
|
"scheme": "HTTP"
|
|
},
|
|
"initialDelaySeconds": 10,
|
|
"periodSeconds": 20,
|
|
"successThreshold": 1,
|
|
"timeoutSeconds": 5
|
|
},
|
|
"name": "tts",
|
|
"ports": [
|
|
{
|
|
"containerPort": 8500,
|
|
"name": "http",
|
|
"protocol": "TCP"
|
|
}
|
|
],
|
|
"readinessProbe": {
|
|
"failureThreshold": 3,
|
|
"httpGet": {
|
|
"path": "/health",
|
|
"port": 8500,
|
|
"scheme": "HTTP"
|
|
},
|
|
"initialDelaySeconds": 3,
|
|
"periodSeconds": 5,
|
|
"successThreshold": 1,
|
|
"timeoutSeconds": 3
|
|
},
|
|
"resources": {
|
|
"limits": {
|
|
"cpu": "4",
|
|
"memory": "2Gi"
|
|
},
|
|
"requests": {
|
|
"cpu": "500m",
|
|
"memory": "512Mi"
|
|
}
|
|
},
|
|
"terminationMessagePath": "/dev/termination-log",
|
|
"terminationMessagePolicy": "File"
|
|
}
|
|
],
|
|
"dnsPolicy": "ClusterFirst",
|
|
"restartPolicy": "Always",
|
|
"schedulerName": "default-scheduler",
|
|
"securityContext": {},
|
|
"terminationGracePeriodSeconds": 30
|
|
}
|
|
}
|
|
}
|
|
}
|