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: Git git: uri: https://git.pentou.eu/penta/kokoro-tts-chatbot.git ref: master strategy: type: Docker dockerStrategy: {} output: to: kind: ImageStreamTag name: kokoro-tts:cpu --- 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 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