Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1 KB

part4-where-we-left-off.md

File metadata and controls

56 lines (38 loc) · 1 KB

name: part2

(remember) Our sample application

  • Let's re-clone the GitHub repository onto our node1

  • The repository also contains scripts and tools that we will use through the workshop

.lab[

  • Clone the repository on node1:
    git clone https://@@GITREPO@@

]

(You can also fork the repository on GitHub and clone your fork if you prefer that.)


Start a NGINX deployment to test our cluster

Let's validate our setup by creating and exposing NGINX.

.lab[

  • Create the Deployment and NodePort Service:

    kubectl create deployment nginx --image=nginx --replicas=2
    kubectl expose deployment nginx --port=80 --type=NodePort
  • Grab the host port 3xxxx from the service list:

    kubectl get services
  • Check the public website at the node1 IP and service port

]

Tip: NodePort is case sensitive.