Public Notes
Browse publicly shared notes from the community
RUNNING1. $ go mod tidy2. $ go run main.goTESTING$ kubectl get pod,svc -l app=demoNAME READY STATUS RESTARTS AGEpod/example-pod 1/1 Run
RUNNING1. $ go mod tidy2. $ go run main.goTESTING$ kubectl get pod,svc -l app=demoNAME READY STATUS RESTARTS AGEpod/example-pod 1/1 Run
RUNNING1. $ go mod tidy2. $ go run main.goTESTING$ kubectl get pod,svc -l app=demoNAME READY STATUS RESTARTS AGEpod/example-pod 1/1 Run
RUNNING1. $ go mod tidy2. $ go run main.goTESTING$ kubectl get pod,svc -l app=demoNAME READY STATUS RESTARTS AGEpod/example-pod 1/1 Run
Here’s a clear, structured explanation of what your code, Dockerfile, and Kubernetes setup are doing, why each part matters, and how the whole system
Here’s a clear, structured explanation of what your code, Dockerfile, and Kubernetes setup are doing, why each part matters, and how the whole system
ORCHESTRATION WITH K8S:I. CREATE OWN NAMESPACE# File: test-namespace.yamlapiVersion: v1kind: Namespacemetadata: name: testCreation:$ kubectl apply -f
ORCHESTRATION WITH K8S:I. CREATE OWN NAMESPACE# File: test-namespace.yamlapiVersion: v1kind: Namespacemetadata: name: testCreation:$ kubectl apply -f
# DockerfileFROM golang:1.20 AS builderWORKDIR /appCOPY go.mod go.sum ./RUN go mod downloadCOPY . .RUN go build -o main .# Start a new stage from scra
# DockerfileFROM golang:1.20 AS builderWORKDIR /appCOPY go.mod go.sum ./RUN go mod downloadCOPY . .RUN go build -o main .# Start a new stage from scra
# DockerfileFROM golang:1.20 AS builderWORKDIR /appCOPY go.mod go.sum ./RUN go mod downloadCOPY . .RUN go build -o main .# Start a new stage from scra
# DockerfileFROM golang:1.20 AS builderWORKDIR /appCOPY go.mod go.sum ./RUN go mod downloadCOPY . .RUN go build -o main .# Start a new stage from scra
DOCKER # dockerfileFROM python:3.11-slimWORKDIR /appCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txtCOPY . .CMD ["python", "a
DOCKER # dockerfileFROM python:3.11-slimWORKDIR /appCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txtCOPY . .CMD ["python", "a
RUNNING:$ python main.pyCREATE USER$ curl -X 'POST' 'http://127.0.0.1:8000/users/?name=John'RESPONSE{ "id": 1, "name": "John"}CREATE POST WITH ID:1$ c
RUNNING:$ python main.pyCREATE USER$ curl -X 'POST' 'http://127.0.0.1:8000/users/?name=John'RESPONSE{ "id": 1, "name": "John"}CREATE POST WITH ID:1$ c
Here’s a clear, structured explanation of what your FastAPI + SQLAlchemy async application is doing. I’ll walk through each part so you understand how
Here’s a clear, structured explanation of what your FastAPI + SQLAlchemy async application is doing. I’ll walk through each part so you understand how
RUNNING$ uvicorn main:app --reloadREQUESTcurl -X POST http://127.0.0.1:8000/ask \-H "Content-Type: application/json" \-d '{"question": "What is RAG?"}
RUNNING$ uvicorn main:app --reloadREQUESTcurl -X POST http://127.0.0.1:8000/ask \-H "Content-Type: application/json" \-d '{"question": "What is RAG?"}