Skip to content

Commit 59fb581

Browse files
committed
update k8s deployment creation scripts
1 parent c85cd33 commit 59fb581

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: run_kubernetes.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44

55
# Step 1:
66
# This is your Docker ID/path
7-
# dockerpath=<>
7+
dockerpath=calebikhuohon/ml-microservice-k8s
88

99
# Step 2
1010
# Run the Docker Hub container with kubernetes
11-
11+
kubectl create deployment ml-microservice-k8s --image=$dockerpath
1212

1313
# Step 3:
1414
# List kubernetes pods
15+
kubectl get pods
1516

1617
# Step 4:
1718
# Forward the container port to a host
18-
19+
kubectl port-forward deployments/ml-microservice-k8s 8000:80

0 commit comments

Comments
 (0)