-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upload docker image and deploy kubernets
- Loading branch information
longtony
committed
Nov 19, 2023
1 parent
4f1e504
commit 4391742
Showing
11 changed files
with
87 additions
and
14 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
23 changes: 22 additions & 1 deletion
23
project-ml-microservice-kubernetes/output_txt_files/docker_out.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
<paste log output from Docker prediction, here> | ||
<paste log output from Docker prediction, here> | ||
REPOSITORY TAG IMAGE ID CREATED SIZE | ||
api latest a05ce67946c3 7 seconds ago 1.26GB | ||
<none> <none> e15b07d66fc6 14 minutes ago 1.26GB | ||
* Serving Flask app "app" (lazy loading) | ||
* Environment: production | ||
WARNING: Do not use the development server in a production environment. | ||
Use a production WSGI server instead. | ||
* Debug mode: on | ||
* Running on http://0.0.0.0:80/ (Press CTRL+C to quit) | ||
* Restarting with stat | ||
* Debugger is active! | ||
* Debugger PIN: 194-414-639 | ||
[2023-11-19 11:38:58,322] INFO in app: JSON payload: | ||
{'CHAS': {'0': 0}, 'RM': {'0': 6.575}, 'TAX': {'0': 296.0}, 'PTRATIO': {'0': 15.3}, 'B': {'0': 396.9}, 'LSTAT': {'0': 4.98}} | ||
[2023-11-19 11:38:58,343] INFO in app: Inference payload DataFrame: | ||
CHAS RM TAX PTRATIO B LSTAT | ||
0 0 6.575 296.0 15.3 396.9 4.98 | ||
[2023-11-19 11:38:58,354] INFO in app: Scaling Payload: | ||
CHAS RM TAX PTRATIO B LSTAT | ||
0 0 6.575 296.0 15.3 396.9 4.98 | ||
172.17.0.1 - - [19/Nov/2023 11:38:58] "POST /predict HTTP/1.1" 200 - |
34 changes: 33 additions & 1 deletion
34
project-ml-microservice-kubernetes/output_txt_files/kubernetes_out.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,33 @@ | ||
<paste log output from Kubernetes-mediated prediction, here> | ||
<paste log output from Kubernetes-mediated prediction, here> | ||
pod/api-microservices created | ||
NAMESPACE NAME READY STATUS RESTARTS AGE | ||
default api-microservices 1/1 Running 0 12s | ||
kube-system coredns-66bff467f8-cbzpm 1/1 Running 0 19h | ||
kube-system coredns-66bff467f8-nppkt 1/1 Running 0 19h | ||
kube-system etcd-khaled-virtual-machine 1/1 Running 0 12m | ||
kube-system kube-apiserver-khaled-virtual-machine 1/1 Running 0 19h | ||
kube-system kube-controller-manager-khaled-virtual-machine 1/1 Running 1 19h | ||
kube-system kube-proxy-c7lr2 1/1 Running 0 19h | ||
kube-system kube-scheduler-khaled-virtual-machine 1/1 Running 1 19h | ||
kube-system storage-provisioner 1/1 Running 1 19h | ||
Forwarding from 127.0.0.1:8000 -> 80 | ||
Forwarding from [::1]:8000 -> 80 | ||
|
||
* Serving Flask app "app" (lazy loading) | ||
* Environment: production | ||
WARNING: Do not use the development server in a production environment. | ||
Use a production WSGI server instead. | ||
* Debug mode: on | ||
* Running on http://0.0.0.0:80/ (Press CTRL+C to quit) | ||
* Restarting with stat | ||
* Debugger is active! | ||
* Debugger PIN: 161-774-587 | ||
[2023-11-19 19:38:23,813] INFO in app: JSON payload: | ||
{'CHAS': {'0': 0}, 'RM': {'0': 6.575}, 'TAX': {'0': 296.0}, 'PTRATIO': {'0': 15.3}, 'B': {'0': 396.9}, 'LSTAT': {'0': 4.98}} | ||
[2023-11-19 19:38:23,864] INFO in app: Inference payload DataFrame: | ||
CHAS RM TAX PTRATIO B LSTAT | ||
0 0 6.575 296.0 15.3 396.9 4.98 | ||
[2023-11-19 19:38:23,872] INFO in app: Scaling Payload: | ||
CHAS RM TAX PTRATIO B LSTAT | ||
0 0 6.575 296.0 15.3 396.9 4.98 | ||
172.17.0.1 - - [19/Nov/2023 19:38:23] "POST /predict HTTP/1.1" 200 - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
wget https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64 | ||
sudo mv hadolint-Linux-x86_64 /usr/local/bin/hadolint | ||
sudo chmod +x /usr/local/bin/hadolint | ||
|
||
|
||
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | ||
sudo install minikube-linux-amd64 /usr/local/bin/minikube |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters