[Course][Udemy][Gourav Shah] Ultimate DevOps to MLOps Bootcamp - Build ML CI-CD Pipelines [ENG, 2025] : 08. Building Scalable Prod Inference Infrastructure with Kubernetes
Делаю:
2025.12.30
Инсталляция и создание kubernetes кластера kind
// Deploying Streamlit Frontent App with Kubernetes
$ kubectl create deployment streamlit --image=webmakaka/streamlit:latest --port=8501
// Exposing the Streamlit App with Kubernetes NodePort Service
$ kubectl create service nodeport streamlit --tcp=8501 --node-port=30000
// Creating Deployment Service for the Model wrapped in FastAPI
$ kubectl create deployment model --image=webmakaka/house-price-model:latest --port=8000
$ cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: model
name: model
spec:
ports:
- name: web
nodePort: 30100
port: 8000
protocol: TCP
targetPort: 8000
selector:
app: model
type: NodePort
status:
loadBalancer: {}
EOF
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
model-54fb689844-fvj4z 1/1 Running 0 88s
streamlit-94fb5b648-pt57q 1/1 Running 0 103s
// OK!
http://localhost:30100/docs
http://localhost:30000