| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- apiVersion: image.openshift.io/v1
- kind: ImageStream
- metadata:
- name: kokoro-tts
- namespace: localai
- ---
- apiVersion: build.openshift.io/v1
- kind: BuildConfig
- metadata:
- name: kokoro-tts
- namespace: localai
- spec:
- runPolicy: Serial
- source:
- type: Binary
- binary: {}
- strategy:
- type: Docker
- dockerStrategy: {}
- output:
- to:
- kind: ImageStreamTag
- name: kokoro-tts:cpu
- resources:
- requests:
- cpu: '1'
- memory: 2Gi
- limits:
- cpu: '4'
- memory: 6Gi
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: kokoro-tts
- namespace: localai
- spec:
- replicas: 1
- strategy:
- type: Recreate
- selector:
- matchLabels:
- app: kokoro-tts
- template:
- metadata:
- labels:
- app: kokoro-tts
- spec:
- nodeSelector:
- kubernetes.io/hostname: bureau.local.pentou.ovh
- automountServiceAccountToken: false
- containers:
- - name: tts
- image: image-registry.openshift-image-registry.svc:5000/localai/kokoro-tts:cpu
- ports:
- - containerPort: 8000
- resources:
- requests:
- cpu: '2'
- memory: 2Gi
- limits:
- cpu: '4'
- memory: 4Gi
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop: [ALL]
- runAsNonRoot: true
- seccompProfile:
- type: RuntimeDefault
- startupProbe:
- httpGet:
- path: /healthz
- port: 8000
- periodSeconds: 5
- failureThreshold: 60
- readinessProbe:
- httpGet:
- path: /healthz
- port: 8000
- periodSeconds: 5
- livenessProbe:
- httpGet:
- path: /healthz
- port: 8000
- periodSeconds: 20
- timeoutSeconds: 5
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: kokoro-tts
- namespace: localai
- spec:
- selector:
- app: kokoro-tts
- ports:
- - port: 8000
- targetPort: 8000
- ---
- apiVersion: networking.k8s.io/v1
- kind: NetworkPolicy
- metadata:
- name: kokoro-tts-ingress
- namespace: localai
- spec:
- podSelector:
- matchLabels:
- app: kokoro-tts
- policyTypes: [Ingress]
- ingress:
- - from:
- - podSelector:
- matchLabels:
- app: satoko-chatbot
- ports:
- - protocol: TCP
- port: 8000
|