diff --git a/kubernetes/node-server-example/README.md b/kubernetes/node-server-example/README.md index c15c0d4..5218812 100755 --- a/kubernetes/node-server-example/README.md +++ b/kubernetes/node-server-example/README.md @@ -1,32 +1,43 @@ -# Deploying a Node.js K8s Cluster with Kubectl +## deploying a node.js K8s cluster with kubectl + +
-Build the image: +1. Build the image: ``` make build: ``` +
-Run the container: +2. Run the container: ``` make run ``` -Check whether the server worked +
+ +3. Check whether the server worked ``` make curl ``` +
-Check container's status +4. Check container's status ``` $ make status ``` +
-#### Other useful commands +--- + +### useful commands + +
Exec inside the container: @@ -40,8 +51,13 @@ Check images in disk: $ docker images ``` +
-### Pushing the Registry to Kubernetes +---- + +### pushing the registry to kubernetes + +
In a real production system, we’ll want to build images in one place, then run these images in the Kubernetes cluster. @@ -66,7 +82,13 @@ Also, check out the service status with: $ kubectl get services ``` -### Clean up +
+ +--- + +### cleanning up + +
Removing the service and the deployment when you are done: