Machine Learning Zoomcamp 2024

Homework 10: Kubernetes and TensorFlow Serving Statistics

Distribution of scores and reported study time for this homework.

Submissions

100

Median total score

7

Average total score

8

Score distribution

All values are points.

Questions score

Min
5
Median
7.0
Max
7
Q1
7.0
Avg
6.9
Q3
7.0

Learning in public score

Min
-
Median
0.0
Max
7
Q1
0.0
Avg
1.3
Q3
1.0

Total score

Min
5
Median
7.0
Max
15
Q1
7.0
Avg
8.3
Q3
8.0

Time distribution

All values are hours reported by students.

Lectures

Min
1.0
Median
5.5
Max
30.0
Q1
3.0
Avg
7.6
Q3
10.0

Homework

Min
0.0
Median
2.0
Max
20.0
Q1
2.0
Avg
3.4
Q3
4.0

Question breakdown

Correctness and answer distribution per question.

1. <value> of the probability of getting a subscription

92 / 99 correct (92.9%)

1 0.287 3 (3.0%)
2 0.530 3 (3.0%)
3 0.757 92 (92.9%)
4 0.960 1 (1.0%)

2. Version of `kind`

99 / 99 correct (100.0%)

Answer Count
0.26.0 31
0.25.0 21
kind version 0.26.0 9
0.20.0 5
kind version 0.25.0 3
v0.26.0 3
v0.25.0 2
kind version 0.27.0-alpha+1c5a56b30145d9 2
kind version 0.27.0-alpha.4+1c5a56b30145d9 2
kind v0.25.0 go1.22.9 windows/amd64 1
v1.30.2 1
1.31.2 1
kind version 0.17.0 1
v1.30.0 1
0.17.0 1
kind v0.20.0 1
Kind version 0.25.0 1
v0.19.0 1
kind version 0.20.0 1
1.32.0 1
0.27.0-alpha+1c5a56b30145d9 1
C:\Program Files\kind>kind version, kind v0.26.0 go1.23.4 windows/amd64 1
0.27.0 1
kind v0.19.0 1
kind v0.26.0 go1.23.4 darwin/arm64 1

3. The smallest deployable computing unit

96 / 99 correct (97.0%)

1 Node 1 (1.0%)
2 Pod 96 (97.0%)
3 Deployment 0 (0.0%)
4 Service 2 (2.0%)

4. `Type` of the running service

97 / 99 correct (98.0%)

1 NodePort 0 (0.0%)
2 ClusterIP 97 (98.0%)
3 ExternalName 1 (1.0%)
4 LoadBalancer 1 (1.0%)

5. Command to upload docker image

99 / 99 correct (100.0%)

1 kind create cluster 0 (0.0%)
2 kind build node-image 0 (0.0%)
3 kind load docker-image 99 (100.0%)
4 kubectl apply 0 (0.0%)

6. Create deployment (<Port>)

99 / 99 correct (100.0%)

Answer Count
9696 83
8080 2
80 2
<Port>: 9696 2
apiVersion: apps/v1 kind: Deployment metadata: name: subscription spec: selector: matchLabels: app: subscription replicas: 1 template: metadata: labels: app: subscription spec: containers: - name: subscription image: zoomcamp-model:3.11.5-hw10 resources: requests: memory: "64Mi" cpu: "100m" limits: memory: "1024Mi" cpu: "400m" ports: - containerPort: 9696 What is the value for ? ==> 9696Port = 9696. Apply this deployment: kubectl apply -f deployment.yaml Get a list of running Pods: kubectl get all | grep pod/subscription 1
subscription-65747b554-6q7mh 1
ports: - containerPort: 9696 1
kubectl apply -f <your-deployment-yaml-file.yaml> 1

7. Service selector (<???>)

99 / 99 correct (100.0%)

Answer Count
subscription 71
service 3
subscription-service 2
Subscription 2
kubectl apply -f service.yaml 1
app: subscription 1
web 1
# service.yaml apiVersion: v1 kind: Service metadata: name: subscription-service spec: type: LoadBalancer selector: app: subscription ports: - port: 80 targetPort: 9696 <???> --> subscription Apply config file: kubectl apply -f service.yaml 1
subscribtion 1
selector: app: subscription 1
credit 1
9696 1
2 1
app: <your-app-name> 1
service.yaml 1
zoomcamp-model 1
{'has_subscribed': True, 'has_subscribed_probability': 0.756743795240796} 1
YAML 1

Calculated: 24 December 2024, 08:07