| 1234567891011121314151617181920 |
- [
- {"op":"test","path":"/spec/template/spec/containers/0/name","value":"whisper-stt-chatbot"},
- {"op":"replace","path":"/spec/replicas","value":1},
- {"op":"add","path":"/spec/template/spec/serviceAccountName","value":"whisper-stt-chatbot"},
- {"op":"add","path":"/spec/template/spec/automountServiceAccountToken","value":false},
- {"op":"add","path":"/spec/strategy","value":{"type":"Recreate"}},
- {"op":"replace","path":"/spec/template/spec/containers/0/resources","value":{"limits":{"nvidia.com/gpu":"1"}}},
- {"op":"replace","path":"/spec/template/spec/volumes","value":[{"name":"hf-cache","persistentVolumeClaim":{"claimName":"whisper-model-cache"}}]},
- {"op":"replace","path":"/spec/template/spec/containers/0/env","value":[
- {"name":"HF_HOME","value":"/tmp/hf-cache"},
- {"name":"HUGGINGFACE_HUB_CACHE","value":"/tmp/hf-cache"},
- {"name":"WHISPER_LOG_LEVEL","value":"INFO"},
- {"name":"WHISPER_VAD","value":"true"},
- {"name":"MODEL_SIZE","value":"small"}
- ]},
- {"op":"replace","path":"/spec/template/spec/containers/0/args","value":["app:app","--host","0.0.0.0","--port","8000","--log-level","info"]},
- {"op":"add","path":"/spec/template/spec/containers/0/startupProbe","value":{"httpGet":{"path":"/healthz","port":8000},"periodSeconds":10,"timeoutSeconds":5,"failureThreshold":90}},
- {"op":"add","path":"/spec/template/spec/containers/0/readinessProbe","value":{"httpGet":{"path":"/healthz","port":8000},"periodSeconds":10,"timeoutSeconds":5}},
- {"op":"add","path":"/spec/template/spec/containers/0/livenessProbe","value":{"httpGet":{"path":"/healthz","port":8000},"periodSeconds":30,"timeoutSeconds":5,"failureThreshold":5}}
- ]
|