From the course: Docker for Developers: Create and Manage Docker Containers

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Challenge: Working with Kubernetes

Challenge: Working with Kubernetes

(snappy electronic music) - [Instructor] Ready for another challenge? In this challenge, you'll work with Kubernetes using kubectl and minikube commands. Please note you should still have the app running in minikube from the previous videos to complete this challenge. Here are your challenge tasks. First, rebuild your Docker image and tag it with version four. Use the no-cache option to ensure the latest changes are included. Next, you'll need to push the image to your repository on Docker hub, as this is where Kubernetes will pull the image from. Then update the app deployment YAML file to use the new image and set the replicas to three. Next, apply the changes to the app deployment file so that they're synced with your Kubernetes environment. Then get a list of pods available in the my app namespace. Copy the name of the first pod available, and finally, view the logs for the pod with the name you just copied. For…

Contents