- Here is a video tutorial; continue reading for a list of written instructions.
Exercises to complete:
- Create pod.
- Create pod with different version of the image.
- Display pods.
- Use the watch command to watch the changes live.
Create pod. Remember that pod’s name has to be unique.
1
|
kubectl run apache1 --image=httpd
|
httpd is in fact apache web server
Create pod with different version of the image.
1
|
kubectl run apache1-older --image=httpd:2.2
|
Display pods.
Use the watch command to watch the changes live.
1
|
watch kubecetl get pods
|
ctrl+c exists watch window