| |

Talks With Microsoft – Kubernetes

Recently in my current role, I’ve been chatting with some engineers at Microsoft & it’s been a great experience to learn from some of the best in the field. I’ve precisely been querying them regarding Azure, Azure DevOps & AKS, in addition to surrounding technologies, practices, etc. One thing that I have learned a lot about it Kubernetes, including topics such as how to prevent noisy neighbours within your cluster, how to control the west-east traffic & so on.

Having gone over just how the ingress/egress controllers actually work was quite interesting to learn & to be perfectly honest, it’s not what I would’ve expected prior to one of the conference meetings that we held. Previously I had imagined something totally different & to be totally transparent I feel a little stupid for thinking that in the first place.

NetworkPolicy’s, again, another area which I had little knowledge on, I wasn’t sure if that was for handling some form of networking external to the cluster, internal or both, etc. Now I have a better understanding & now I’m aware that with this approach, you can control the traffic within the cluster itself, you can define what pod can talk to what-other pod & it’s great! From this meeting I’ve learned that it’s always best to block everything initially, then slowly open up to pods that need to talk to that specific pod. To aid my point, here’s some code provided by Steve Leonard from Microsoft. In his example you can see that he’s specifying that the front end can talk to the middle-tier application, which can then talk to the back end, but the front end can’t communicate with the backend directly.

Going back to noisy neighbours, this is something that Steve has also covered with us & to prevent problems such as noisy neighbours, one simple solution is to take advantage of LimitRange’s. With a LimitRange, as the name would suggest, you can limit the amount of resources that a pod or a container is able to utilise. In the real world, this is beautiful, having experienced issues related to noisy neighbours within a Kubernetes cluster, it’s hard to imagine not taking advantage of this API.

Conclusion

For the most part, I’m really beginning to love using kubernetes within the Azure ecosystem, however, as Steve has said himself, it’s still a very new technology. From the perspective of an enterprise company, it’s great, but it would be even better if it was more mature & there were less changes. I mean of course, like any new technology, there’s going to be a lot of change initially. So I’m really looking forward to seeing how Kubernetes evolves in the oncoming years, I’m honestly somewhat excited to see it mature, to see more very well documented examples online, more documentation, etc.

Similar Posts

  • | | |

    Node Containers

    I feel somewhat ashamed of myself that I’m only now learning about this problem(s) with process shut down with Node & Docker. After finding Bret Fisher’s talk(s) about Node & Docker best practices, I couldn’t believe that there’s a bit of an issue with process signal making it all the way through to the application….

  • | |

    Tools & Pipelines

    Let’s talk about developer tools, ranging from IDE’s through to code analysis tools including technologies such as SonarQube & SonarLint. Considering the time, I’ll keep this post rather brief, so let’s kick this off by starting with the basics. The reason as to why CI/CD pipelines are so important is simply down to the fact…

  • |

    The DevOps Analogy

    This won’t be a long post, rather a silly little thought process that I just wanted to share with you guys! 🙂 Since working for Lloyds, I’ve taken on a large number of DevOps focused tasks & it’s been odd, when family, friends or anyone that’s not technologically literate asks me what I do, I…

  • |

    Why I Like Spring II

    Okay, so in my previous article, I stated some of the things that I like about Spring, although, it doesn’t stop there, Spring is just beautiful for MSA and/or distributed applications. Not to mention how popular Spring is, Spring may just be the most popular Java framework at this moment in time, having used more…

Leave a Reply

Your email address will not be published. Required fields are marked *