Practical tasks to learn more about DevOps

Difficulty: [ ]

Task 01. Start Kubernetes locally.

Looking to the near future and seeing that Kubernetes becomes started for container orchestration tool you decided to learn more about it and later migrate the blog into this platform.

As a first step, you decided to run Kubernetes locally on your computer.

Task

  • Install minikube: Follow instructions from documentation
  • Run pod with nginx container: Start new pod with nginx container and make sure that it’s running.
  • Check logs of nginx container
  • Make port forwarding of nginx pod: Try to access nginx inside pod using your web browser and tools provided by Kubernetes.
  • Check resources used by nginx pod: Try to find Kubernetes command that will allow you to see resource usage by pod.
  • get information of when did pod started
  • remove nginx pod

Additional tasks if you feel that it was too easy.

  1. Setup dashboard to see Kubernetes and pods info inside your browser.

Tips:

  • Create alias for kubectl command as k to faster typing. documentation
  • Check out kubernetes resources using great console tool called k9s
  • To easily switch between contexts(profiles) use kubectx

FAQ

  • N/A

Heroes of the task: