Kubernetes Learning Note (iii)

Image for post
Image for post
Photo by Dimitry Anikin on Unsplash

In the last blogs, we created three yml files for Pod, Service, and Deployment. In this post, we are learning how to deploy them using kubectl commands.

On the updating image, how it works is that every time the master will inspect the name and kind, if it’s the same, master will not try to create new object, but to update the old one.

Also, for yml files, Pod you can only update image, but not other properties like containers, name, and port. For Deployment you have the freedom to change all the properties though, through the Pod Template.

Whole Deployment flow

🛥 🚤 ⛴ 🛳 ⛵ ⚓️ 🌊🛥 🚤 ⛴ 🛳 ⛵ ⚓️ 🌊🛥 🚤 ⛴ 🛳 ⛵ ⚓️ 🌊🛥 🚤 ⛴ 🛳 ⛵ ⚓️ 🌊🛥 🚤 ⛴ 🛳 ⛵ ⚓️ 🌊🛥 🚤 ⛴ 🛳 ⛵ ⚓️ 🌊🛥 🚤 ⛴ 🛳 ⛵ ⚓️ 🌊🚤

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store