{ "apiVersion": "apps/v1", "kind": "Deployment", "metadata": { "labels": { "app.kubernetes.io/name": "ttsreader-kokoro", "app.kubernetes.io/part-of": "flowercore" }, "name": "ttsreader-kokoro", "namespace": "fc-ttsreader" }, "spec": { "replicas": 1, "revisionHistoryLimit": 3, "selector": { "matchLabels": { "app.kubernetes.io/name": "ttsreader-kokoro" } }, "strategy": { "type": "Recreate" }, "template": { "metadata": { "labels": { "app.kubernetes.io/name": "ttsreader-kokoro", "app.kubernetes.io/part-of": "flowercore" } }, "spec": { "containers": [ { "image": "ghcr.io/remsky/kokoro-fastapi-cpu:latest", "imagePullPolicy": "IfNotPresent", "livenessProbe": { "failureThreshold": 5, "httpGet": { "path": "/v1/audio/voices", "port": 8880, "scheme": "HTTP" }, "initialDelaySeconds": 180, "periodSeconds": 30, "successThreshold": 1, "timeoutSeconds": 15 }, "name": "kokoro", "ports": [ { "containerPort": 8880, "name": "http", "protocol": "TCP" } ], "readinessProbe": { "failureThreshold": 18, "httpGet": { "path": "/v1/audio/voices", "port": 8880, "scheme": "HTTP" }, "initialDelaySeconds": 30, "periodSeconds": 10, "successThreshold": 1, "timeoutSeconds": 5 }, "resources": { "limits": { "cpu": "2000m", "memory": "3Gi" }, "requests": { "cpu": "250m", "memory": "1Gi" } }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File" } ], "dnsConfig": { "nameservers": [ "10.43.0.10" ], "options": [ { "name": "ndots", "value": "2" } ], "searches": [ "fc-ttsreader.svc.cluster.local", "svc.cluster.local", "cluster.local" ] }, "dnsPolicy": "None", "restartPolicy": "Always", "schedulerName": "default-scheduler", "terminationGracePeriodSeconds": 30 } } } }