--- apiVersion: apps/v1 kind: Deployment metadata: name: stt-ui namespace: ai-ml labels: app: stt-ui component: demo-ui spec: replicas: 1 selector: matchLabels: app: stt-ui template: metadata: labels: app: stt-ui component: demo-ui spec: containers: - name: gradio image: gitea-http.gitea.svc.cluster.local:3000/daviestechlabs/gradio-ui:latest imagePullPolicy: Always command: ["python", "stt.py"] ports: - containerPort: 7860 name: http protocol: TCP env: - name: WHISPER_URL # Ray Serve endpoint - routes to /whisper prefix value: "http://ai-inference-serve-svc.ai-ml.svc.cluster.local:8000/whisper" - name: MLFLOW_TRACKING_URI value: "http://mlflow.mlflow.svc.cluster.local:80" resources: requests: cpu: "100m" memory: "256Mi" limits: cpu: "500m" memory: "512Mi" livenessProbe: httpGet: path: / port: 7860 initialDelaySeconds: 10 periodSeconds: 30 readinessProbe: httpGet: path: / port: 7860 initialDelaySeconds: 5 periodSeconds: 10 imagePullSecrets: - name: ghcr-registry --- apiVersion: v1 kind: Service metadata: name: stt-ui namespace: ai-ml labels: app: stt-ui spec: type: ClusterIP ports: - port: 80 targetPort: 7860 protocol: TCP name: http selector: app: stt-ui --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: stt-ui namespace: ai-ml annotations: external-dns.alpha.kubernetes.io/hostname: stt-ui.lab.daviestechlabs.io spec: parentRefs: - name: envoy-internal namespace: network sectionName: https-lab hostnames: - stt-ui.lab.daviestechlabs.io rules: - matches: - path: type: PathPrefix value: / backendRefs: - name: stt-ui port: 80