With docker, we used docker run ...
for each docker instance. We came at some point to situation where our commands
became too long with many parameters or that running the same command again and again was time-consuming and mroe
error-prone. That is where stopped using imperative approach and started to use declarative
approach with
docker-compose
yaml files. Same is with imperative approach using kubectl ....
as I showed you in the previous
blog post about Kubernetes basics. This time lets look into how we can
achieve same more advanced stuff but with declarative approach with Kubernetes Resource definition files.