<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Michael Bright on Medium]]></title>
        <description><![CDATA[Stories by Michael Bright on Medium]]></description>
        <link>https://medium.com/@mjbrightfr?source=rss-832b8170d501------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Qibbw512IAqRPkrn.</url>
            <title>Stories by Michael Bright on Medium</title>
            <link>https://medium.com/@mjbrightfr?source=rss-832b8170d501------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 04:00:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mjbrightfr/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Kubernetes visualization at CodeEurope.pl]]></title>
            <link>https://mjbrightfr.medium.com/kubernetes-visualization-at-codeeurope-pl-e53e192dd910?source=rss-832b8170d501------2</link>
            <guid isPermaLink="false">https://medium.com/p/e53e192dd910</guid>
            <category><![CDATA[jsplumb]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Michael Bright]]></dc:creator>
            <pubDate>Thu, 06 Sep 2018 17:36:43 GMT</pubDate>
            <atom:updated>2018-09-06T17:36:43.775Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Kubernetes visualization at CodeEurope.pl</strong></p><p>[This post first appeared at <a href="http://mjbright.blogspot.com/2018/09/conference-codeeuropepl-developing.html">http://mjbright.blogspot.com/2018/09/conference-codeeuropepl-developing.html</a> ]</p><p>In April I had the chance to present at <strong>CodeEurope.pl</strong>, first in Warsaw on Apr 24th, and then in Wroclaw (“wroslof” was my best attempt at pronouncing Wroclaw) on Apr 26th.</p><p>It was a fun event, very well organized by Tomasz Kreczmar who headed up the team at <a href="http://www.absolvent.pl/">Absolvent.pl</a>, and it was a great experience to exchange with the other speakers on similar career tracks to myself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/0*oYreOu6Co0XFfpPL.jpg" /></figure><p><strong>So, why am I writing about this now?</strong></p><p>Well, I’m preparing for some talks at Pyconfr, in Lille in October and needed to finally clean up the demo I’d prepared for CodeEurope.pl. Although the slides were ready at the time I spent an intense but creative afternoon in a hotel preparing my demo.</p><p>Recently it took me a while to figure out how I’d run the demo — between jobs in April I’d created the demo on a borrowed MacBook using Minikube. I’ve since got it working (with dashboard ported) on Windows/DockerDesktop and Linux/Minikube (or multi-node Vagrant Kubernetes cluster).</p><p>So I wanted to take the time to properly document the setting up and running of the demo as I was pretty please with the result.</p><p>I’ve done that now, and that version is available at <a href="https://github.com/mjbright/ConferenceDemo.2018-04_codeeurope-microservices">https://github.com/mjbright/ConferenceDemo.2018-04_codeeurope-microservices</a>.</p><p>Slides from the presentation are available at <a href="https://mjbright.github.io/Talks/index.html#201804_codeeu">https://mjbright.github.io/Talks/index.html#201804_codeeu</a>.</p><p>I will be improving this demo and will post the new code and slides when that’s done. I intend to improve the visualization in particular with a clean slate implementation.</p><p>I’ll also post a video of the demo, but right now I have to prepare my 3 <a href="https://www.pycon.fr/2018/">Pyconfr</a> [<a href="https://www.pycon.fr/2018/en/index/">English version</a>] sessions … hope to see you in Lille!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*pjXoHG8D5uToAyIJ.PNG" /></figure><p><strong>Kubernetes Micro-service Demo with Visualization</strong></p><p>The demo was showing some typical operations you would perform when deploying an application to Kubernetes. In this case the application was a very simple Flask application communicating with a Redis backend acting as a counter.</p><p>Whilst that’s not rocket science it allowed to show</p><p>- <strong>Deployment</strong> of the application components</p><p>- <strong>Exposing</strong> the components as <strong>services</strong></p><p>- Using <strong>Nginx</strong> as an <strong>Ingress Controller</strong></p><p>- <strong>Scaling</strong> of the Flask pods</p><p>- <strong>Rolling upgrade</strong> of the Flask pods</p><p>- … and *piece de maitre* a cobbled together <strong>demo dashboard</strong></p><p><strong>Demo dashboard</strong></p><p>I decided to create a “demo dashboard” where I could run commands, invoke the service and visualize the results all in the same browser window.</p><p>To be honest I don’t want to reinvent the wheel, and I’d much rather use something like JupyterLab — I will certainly try that in the future — but I needed a quick and dirty solution. I’m quite pleased with what I cobbled together in a (long) afternoon and I will continue to develop that before Pyconfr next month.</p><p>The demo dashboard, see below, integrates:</p><p>- In the top line a <strong>button</strong> to invoke my Flask app service, alongside the <strong>output</strong> “counter value=…”</p><p>- An integrated terminal using <strong>ttyd</strong></p><p><strong>- </strong>A kubernetes <strong>visualizer</strong> derived from Brendans Burns’ <a href="https://github.com/brendandburns/gcp-live-k8s-visualizer"><strong>live-k8s-visualizer</strong></a> on github</p><p>Below is a screenshot showing the application button, and the output showing the current counter value. Below that we see the <strong><em>apply</em></strong> of flask-deployment.yaml to change the version of the flask-app image, thus provoking a rolling upgrade.</p><p>In the visualizer we can see the upgrade happening … the blue “flask-app:v2” Pods are being started whilst the green “flask-app:v1” Pods are still running. Once all v2 Pods are deployed the v1 Pods will disappear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*oVNLpM5_Yr9G_RKG.png" /></figure><p>Thanks to the CodeEurope team, and Tomasz, I really hope the event will be on again next year !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*WrrhJejYxZD09_5q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e53e192dd910" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>