name: part2
-
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.)
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.