openshift.yaml 741 B

12345678910111213141516171819202122232425262728293031323334353637
  1. apiVersion: v1
  2. kind: ServiceAccount
  3. metadata:
  4. name: whisper-stt-chatbot
  5. namespace: localai
  6. automountServiceAccountToken: false
  7. ---
  8. apiVersion: v1
  9. kind: PersistentVolumeClaim
  10. metadata:
  11. name: whisper-model-cache
  12. namespace: localai
  13. spec:
  14. accessModes: [ReadWriteOnce]
  15. storageClassName: ocs-storagecluster-ceph-rbd
  16. resources:
  17. requests:
  18. storage: 5Gi
  19. ---
  20. apiVersion: networking.k8s.io/v1
  21. kind: NetworkPolicy
  22. metadata:
  23. name: whisper-stt-ingress
  24. namespace: localai
  25. spec:
  26. podSelector:
  27. matchLabels:
  28. app: whisper-stt-chatbot
  29. policyTypes: [Ingress]
  30. ingress:
  31. - from:
  32. - podSelector:
  33. matchLabels:
  34. app: satoko-chatbot
  35. ports:
  36. - protocol: TCP
  37. port: 8000