openshift.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. apiVersion: image.openshift.io/v1
  2. kind: ImageStream
  3. metadata:
  4. name: kokoro-tts
  5. namespace: localai
  6. ---
  7. apiVersion: build.openshift.io/v1
  8. kind: BuildConfig
  9. metadata:
  10. name: kokoro-tts
  11. namespace: localai
  12. spec:
  13. runPolicy: Serial
  14. source:
  15. type: Git
  16. git:
  17. uri: https://git.pentou.eu/penta/kokoro-tts-chatbot.git
  18. ref: master
  19. strategy:
  20. type: Docker
  21. dockerStrategy: {}
  22. output:
  23. to:
  24. kind: ImageStreamTag
  25. name: kokoro-tts:cpu
  26. ---
  27. apiVersion: apps/v1
  28. kind: Deployment
  29. metadata:
  30. name: kokoro-tts
  31. namespace: localai
  32. spec:
  33. replicas: 1
  34. strategy:
  35. type: Recreate
  36. selector:
  37. matchLabels:
  38. app: kokoro-tts
  39. template:
  40. metadata:
  41. labels:
  42. app: kokoro-tts
  43. spec:
  44. nodeSelector:
  45. kubernetes.io/hostname: bureau.local.pentou.ovh
  46. automountServiceAccountToken: false
  47. containers:
  48. - name: tts
  49. image: image-registry.openshift-image-registry.svc:5000/localai/kokoro-tts:cpu
  50. ports:
  51. - containerPort: 8000
  52. securityContext:
  53. allowPrivilegeEscalation: false
  54. capabilities:
  55. drop: [ALL]
  56. runAsNonRoot: true
  57. seccompProfile:
  58. type: RuntimeDefault
  59. startupProbe:
  60. httpGet:
  61. path: /healthz
  62. port: 8000
  63. periodSeconds: 5
  64. failureThreshold: 60
  65. readinessProbe:
  66. httpGet:
  67. path: /healthz
  68. port: 8000
  69. periodSeconds: 5
  70. livenessProbe:
  71. httpGet:
  72. path: /healthz
  73. port: 8000
  74. periodSeconds: 20
  75. timeoutSeconds: 5
  76. ---
  77. apiVersion: v1
  78. kind: Service
  79. metadata:
  80. name: kokoro-tts
  81. namespace: localai
  82. spec:
  83. selector:
  84. app: kokoro-tts
  85. ports:
  86. - port: 8000
  87. targetPort: 8000
  88. ---
  89. apiVersion: networking.k8s.io/v1
  90. kind: NetworkPolicy
  91. metadata:
  92. name: kokoro-tts-ingress
  93. namespace: localai
  94. spec:
  95. podSelector:
  96. matchLabels:
  97. app: kokoro-tts
  98. policyTypes: [Ingress]
  99. ingress:
  100. - from:
  101. - podSelector:
  102. matchLabels:
  103. app: satoko-chatbot
  104. ports:
  105. - protocol: TCP
  106. port: 8000